Reorganize components/safe_browsing into a layered component
This reorganizes components/safe_browsing into core/ and content/
subdirectories. Re-factoring in future CLs will remove the remaining
content/ dependencies from components/safe_browsing/core/. This will allow
components/safe_browsing/core/ to be used from within ios/, where content/
dependencies are forbidden.
Design doc: go/ios-safe-browsing-dd
All changes outside components/safe_browsing in this CL are for updating
components/safe_browsing.
Within components/safe_browsing, the changes involve moving files,
updating #includes, moving or splitting BUILD.gn files, copying
DEPS files, and fixing pre-existing presumbit errors.
A future CL will add restrictions to DEPS files within
components/safe_browsing/core to prevent the introduction of new content/
dependencies.
TBR=boliu,thakis,kolos,jkarlin,mbarbella,mkwst
Change-Id: I25db07e2be2d764e5ffaa2a2a9b6634ada8c65c5
Bug: 1028755
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943623
Reviewed-by: Ali Juma <[email protected]>
Reviewed-by: Nico Weber <[email protected]>
Reviewed-by: Bo <[email protected]>
Reviewed-by: Josh Karlin <[email protected]>
Reviewed-by: Varun Khaneja <[email protected]>
Commit-Queue: Ali Juma <[email protected]>
Cr-Commit-Position: refs/heads/master@{#728969}
diff --git a/chrome/browser/extensions/BUILD.gn b/chrome/browser/extensions/BUILD.gn
index 5550e5e..a617df4 100644
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -764,9 +764,9 @@
"//chrome/browser/extensions/api:api_registration",
"//chrome/common",
"//chrome/common/extensions/api",
- "//components/safe_browsing:csd_proto",
- "//components/safe_browsing:webprotect_proto",
- "//components/safe_browsing/db:util",
+ "//components/safe_browsing/core:csd_proto",
+ "//components/safe_browsing/core:webprotect_proto",
+ "//components/safe_browsing/core/db:util",
"//components/signin/core/browser",
"//content/public/browser",
"//mojo/public/cpp/bindings",
@@ -836,11 +836,11 @@
"//components/rappor",
"//components/resources",
"//components/safe_browsing:buildflags",
- "//components/safe_browsing:csd_proto",
- "//components/safe_browsing:features",
- "//components/safe_browsing/common:safe_browsing_prefs",
- "//components/safe_browsing/db:database_manager",
- "//components/safe_browsing/web_ui:web_ui",
+ "//components/safe_browsing/content/web_ui:web_ui",
+ "//components/safe_browsing/core:csd_proto",
+ "//components/safe_browsing/core:features",
+ "//components/safe_browsing/core/common:safe_browsing_prefs",
+ "//components/safe_browsing/core/db:database_manager",
"//components/search_engines",
"//components/services/patch/content",
"//components/services/unzip/content",