Commit 32dbbcb7 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Remove references to thrid_party/WebKit in various code

This CL enables _CheckForRelativeIncludes presubmit check for
third_party/blink.

Change-Id: Ida579dad3adb3d156b3ab6f800fdfd7e4c0559a2
Bug: 622551
Reviewed-on: https://chromium-review.googlesource.com/c/1356719Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612622}
parent 460a5861
...@@ -317,7 +317,6 @@ check_targets = [ ...@@ -317,7 +317,6 @@ check_targets = [
"//third_party/Python-Markdown/*", "//third_party/Python-Markdown/*",
# "//third_party/SPIRV-Tools/*", # 30ish errors # "//third_party/SPIRV-Tools/*", # 30ish errors
"//third_party/WebKit/*",
"//third_party/abseil-cpp/*", "//third_party/abseil-cpp/*",
"//third_party/accessibility-audit/*", "//third_party/accessibility-audit/*",
"//third_party/accessibility_test_framework/*", "//third_party/accessibility_test_framework/*",
......
...@@ -1978,7 +1978,6 @@ hooks = [ ...@@ -1978,7 +1978,6 @@ hooks = [
'src/third_party/blink/tools', # See http://crbug.com/625877. 'src/third_party/blink/tools', # See http://crbug.com/625877.
'src/third_party/catapult', 'src/third_party/catapult',
'src/third_party/closure_compiler/build', 'src/third_party/closure_compiler/build',
'src/third_party/WebKit/Tools/Scripts', # See http://crbug.com/625877.
'src/tools', 'src/tools',
], ],
}, },
......
...@@ -15,7 +15,7 @@ _EXCLUDED_PATHS = ( ...@@ -15,7 +15,7 @@ _EXCLUDED_PATHS = (
r"^native_client_sdk[\\/]src[\\/]tools[\\/].*.mk", r"^native_client_sdk[\\/]src[\\/]tools[\\/].*.mk",
r"^net[\\/]tools[\\/]spdyshark[\\/].*", r"^net[\\/]tools[\\/]spdyshark[\\/].*",
r"^skia[\\/].*", r"^skia[\\/].*",
r"^third_party[\\/](WebKit|blink)[\\/].*", r"^third_party[\\/]blink[\\/].*",
r"^third_party[\\/]breakpad[\\/].*", r"^third_party[\\/]breakpad[\\/].*",
r"^v8[\\/].*", r"^v8[\\/].*",
r".*MakeFile$", r".*MakeFile$",
...@@ -1551,7 +1551,7 @@ def _CheckAddedDepsHaveTargetApprovals(input_api, output_api): ...@@ -1551,7 +1551,7 @@ def _CheckAddedDepsHaveTargetApprovals(input_api, output_api):
virtual_depended_on_files = set() virtual_depended_on_files = set()
file_filter = lambda f: not input_api.re.match( file_filter = lambda f: not input_api.re.match(
r"^third_party[\\/](WebKit|blink)[\\/].*", f.LocalPath()) r"^third_party[\\/]blink[\\/].*", f.LocalPath())
for f in input_api.AffectedFiles(include_deletes=False, for f in input_api.AffectedFiles(include_deletes=False,
file_filter=file_filter): file_filter=file_filter):
filename = input_api.os_path.basename(f.LocalPath()) filename = input_api.os_path.basename(f.LocalPath())
...@@ -2178,9 +2178,7 @@ def _CheckUselessForwardDeclarations(input_api, output_api): ...@@ -2178,9 +2178,7 @@ def _CheckUselessForwardDeclarations(input_api, output_api):
for f in input_api.AffectedFiles(include_deletes=False): for f in input_api.AffectedFiles(include_deletes=False):
if (f.LocalPath().startswith('third_party') and if (f.LocalPath().startswith('third_party') and
not f.LocalPath().startswith('third_party/blink') and not f.LocalPath().startswith('third_party/blink') and
not f.LocalPath().startswith('third_party\\blink') and not f.LocalPath().startswith('third_party\\blink')):
not f.LocalPath().startswith('third_party/WebKit') and
not f.LocalPath().startswith('third_party\\WebKit')):
continue continue
if not f.LocalPath().endswith('.h'): if not f.LocalPath().endswith('.h'):
...@@ -2734,8 +2732,8 @@ def _CheckForRelativeIncludes(input_api, output_api): ...@@ -2734,8 +2732,8 @@ def _CheckForRelativeIncludes(input_api, output_api):
bad_files = {} bad_files = {}
for f in input_api.AffectedFiles(include_deletes=False): for f in input_api.AffectedFiles(include_deletes=False):
if (f.LocalPath().startswith('third_party') and if (f.LocalPath().startswith('third_party') and
not f.LocalPath().startswith('third_party/WebKit') and not f.LocalPath().startswith('third_party/blink') and
not f.LocalPath().startswith('third_party\\WebKit')): not f.LocalPath().startswith('third_party\\blink')):
continue continue
if not CppChecker.IsCppFile(f.LocalPath()): if not CppChecker.IsCppFile(f.LocalPath()):
......
...@@ -1377,11 +1377,11 @@ class ForwardDeclarationTest(unittest.TestCase): ...@@ -1377,11 +1377,11 @@ class ForwardDeclarationTest(unittest.TestCase):
def testBlinkHeaders(self): def testBlinkHeaders(self):
mock_input_api = MockInputApi() mock_input_api = MockInputApi()
mock_input_api.files = [ mock_input_api.files = [
MockAffectedFile('third_party/WebKit/header.h', [ MockAffectedFile('third_party/blink/header.h', [
'class DummyClass;', 'class DummyClass;',
'struct DummyStruct;', 'struct DummyStruct;',
]), ]),
MockAffectedFile('third_party\\WebKit\\header.h', [ MockAffectedFile('third_party\\blink\\header.h', [
'class DummyClass;', 'class DummyClass;',
'struct DummyStruct;', 'struct DummyStruct;',
]) ])
...@@ -1445,7 +1445,7 @@ class RelativeIncludesTest(unittest.TestCase): ...@@ -1445,7 +1445,7 @@ class RelativeIncludesTest(unittest.TestCase):
def testRelativeIncludeWebKitProducesError(self): def testRelativeIncludeWebKitProducesError(self):
mock_input_api = MockInputApi() mock_input_api = MockInputApi()
mock_input_api.files = [ mock_input_api.files = [
MockAffectedFile('third_party/WebKit/test.cpp', MockAffectedFile('third_party/blink/test.cpp',
['#include "../header.h']), ['#include "../header.h']),
] ]
......
...@@ -10,10 +10,10 @@ _ios_conceptually_bad_dependencies = [ ...@@ -10,10 +10,10 @@ _ios_conceptually_bad_dependencies = [
"//dbus/*", "//dbus/*",
"//jingle:jingle", "//jingle:jingle",
"//media/*", "//media/*",
"//third_party/blink/*",
"//third_party/ffmpeg/*", "//third_party/ffmpeg/*",
"//third_party/hunspell_dictionaries/*", "//third_party/hunspell_dictionaries/*",
"//third_party/webgl/*", "//third_party/webgl/*",
"//third_party/WebKit/*",
"//third_party/webrtc:webrtc", "//third_party/webrtc:webrtc",
] ]
......
...@@ -68,7 +68,7 @@ source_set("tests") { ...@@ -68,7 +68,7 @@ source_set("tests") {
] ]
if (is_ios) { if (is_ios) {
assert_no_deps = [ "//third_party/WebKit/*" ] assert_no_deps = [ "//third_party/blink/*" ]
} else { } else {
sources += [ sources += [
"pickle_unittest.cc", "pickle_unittest.cc",
......
...@@ -37,7 +37,7 @@ if (is_nacl) { ...@@ -37,7 +37,7 @@ if (is_nacl) {
# Skia is one of the easiest dependencies to accidentally add since a # Skia is one of the easiest dependencies to accidentally add since a
# bunch of graphics and GPU code uses it. # bunch of graphics and GPU code uses it.
"//skia/*", "//skia/*",
"//third_party/WebKit/*", "//third_party/blink/*",
] ]
} }
......
...@@ -34,7 +34,7 @@ function getFillColor(d) { ...@@ -34,7 +34,7 @@ function getFillColor(d) {
const colors = d3.scale.category20(); const colors = d3.scale.category20();
let colorIndex = 1; let colorIndex = 1;
const COLOR_MAPPING = [ const COLOR_MAPPING = [
[["third_party/WebKit"], colors(colorIndex++), "Blink"], [["third_party/blink"], colors(colorIndex++), "Blink"],
[["v8"], colors(colorIndex++), "V8"], [["v8"], colors(colorIndex++), "V8"],
[["base"], colors(colorIndex++), "//base"], [["base"], colors(colorIndex++), "//base"],
[["content"], colors(colorIndex++), "//content"], [["content"], colors(colorIndex++), "//content"],
......
...@@ -168,12 +168,6 @@ PATH_SPECIFIC_WHITELISTED_LICENSES = { ...@@ -168,12 +168,6 @@ PATH_SPECIFIC_WHITELISTED_LICENSES = {
'UNKNOWN', 'UNKNOWN',
], ],
# TODO(tkent): Remove this entry after the move is completed.
# crbug.com/622551
'third_party/WebKit': [
'UNKNOWN',
],
# https://bugs.chromium.org/p/swiftshader/issues/detail?id=1 # https://bugs.chromium.org/p/swiftshader/issues/detail?id=1
'third_party/swiftshader': [ 'third_party/swiftshader': [
'UNKNOWN', 'UNKNOWN',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment