forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Move browser_protocol.pdl to third_party/blink/public/devtool…
…s_protocol" This reverts commit 3e9d66e. Reason for revert: Widespread bot failures for Step "isolate tests" error like: isolate: isolate /b/s/w/ir/cache/builder/src/out/Release/devtools_type_check.isolate: partitioning deps: lstat /b/s/w/ir/cache/builder/src/third_party/blink/renderer/core/inspector/browser_protocol.pdl: no such file or directory Bug: 1028446 Original change's description: > Move browser_protocol.pdl to third_party/blink/public/devtools_protocol > > Bug: 1018108 > > This still retains a copy of protocol.json for compatibility with > devtools front_end. > Also, remove a presubmit for front-end compilation upon a change to PDL > since the front-end is in another repository now. > > Change-Id: I2faea62feca80776d2fc0a0b4ea00a90439ae005 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898538 > Commit-Queue: Andrey Kosyakov <caseq@chromium.org> > Reviewed-by: Jochen Eisinger <jochen@chromium.org> > Reviewed-by: Dmitry Gozman <dgozman@chromium.org> > Cr-Commit-Position: refs/heads/master@{#718903} TBR=dgozman@chromium.org,caseq@chromium.org,pfeldman@chromium.org,jochen@chromium.org Change-Id: I39435e4be7dde62ffd48d1f72a0ecbbac9165ae1 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1018108 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935479 Reviewed-by: Trent Apted <tapted@chromium.org> Commit-Queue: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#718977}
- Loading branch information
Showing
13 changed files
with
94 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 2017 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
|
||
def _CompileDevtoolsFrontend(input_api, output_api): | ||
# Need to get all affected files from change (not just within this subtree) | ||
local_paths = [f.AbsoluteLocalPath() for f in input_api.change.AffectedFiles()] | ||
devtools = input_api.os_path.realpath( | ||
input_api.os_path.join(input_api.PresubmitLocalPath(), "..", "..", "..", "..", "devtools-frontend", "src")) | ||
|
||
# If a devtools file is changed, the PRESUBMIT hook in Source/devtools | ||
# will run closure compiler | ||
if (any("browser_protocol.pdl" in path for path in local_paths) and | ||
all(devtools not in path for path in local_paths)): | ||
compile_path = input_api.os_path.join( | ||
input_api.PresubmitLocalPath(), "..", "..", "..", "..", "devtools-frontend", "src", "scripts", "test", "run_type_check.py") | ||
out, _ = input_api.subprocess.Popen( | ||
[input_api.python_executable, compile_path], stdout=input_api.subprocess.PIPE, | ||
stderr=input_api.subprocess.STDOUT).communicate() | ||
if "ERROR" in out or "WARNING" in out: | ||
return [output_api.PresubmitError(out)] | ||
if "NOTE" in out: | ||
return [output_api.PresubmitPromptWarning(out)] | ||
return [] | ||
|
||
|
||
def CheckChangeOnUpload(input_api, output_api): | ||
results = [] | ||
results.extend(_CompileDevtoolsFrontend(input_api, output_api)) | ||
return results | ||
|
||
|
||
def CheckChangeOnCommit(input_api, output_api): | ||
return [] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
third_party/blink/renderer/core/inspector/inspector_protocol_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters