Fix gn check for //chrome/browser/safe_browsing:safe_browsing

This CL adds a number of deps to the target
//chrome/browser/safe_browsing:safe_browsing
It also adds the safe_browsing target to allow_circular_includes_from
for //chrome/browser:browser, since these are tightly coupled. The
remaining gn check errors are only due to circular dependencies with:
  //chrome/browser/ui:ui
  //chrome/browser/extensions:extensions
Both of which will be fixed in future CLs

Bug: 919683
Change-Id: Iec1c1737aceef070aca082260b587dc96250bc16
Reviewed-on: https://chromium-review.googlesource.com/c/1428480
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Varun Khaneja <vakh@chromium.org>
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625396}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index a00948e..5d65f80 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1711,6 +1711,7 @@
   allow_circular_includes_from = [
     "//chrome/browser/ui",
     "//chrome/browser/ui/webui/bluetooth_internals",
+    "//chrome/browser/safe_browsing",
   ]
 
   public_deps = [
diff --git a/chrome/browser/safe_browsing/BUILD.gn b/chrome/browser/safe_browsing/BUILD.gn
index 79395b0..39785c8 100644
--- a/chrome/browser/safe_browsing/BUILD.gn
+++ b/chrome/browser/safe_browsing/BUILD.gn
@@ -17,10 +17,32 @@
 
   deps = [
     "//chrome/app:generated_resources",
+    "//chrome/common",
+    "//chrome/common:constants",
+    "//chrome/common/safe_browsing:file_type_policies",
+    "//components/browser_sync",
     "//components/chrome_cleaner/public/interfaces",
+    "//components/data_use_measurement/core",
+    "//components/keyed_service/content",
+    "//components/language/core/browser",
+    "//components/password_manager/core/browser",
+    "//components/password_manager/core/browser:hash_password_manager",
+    "//components/pref_registry",
+    "//components/resources:components_resources_grit",
+    "//components/safe_browsing:features",
+    "//components/safe_browsing:ping_manager",
+    "//components/safe_browsing/browser:referrer_chain_provider",
     "//components/safe_browsing/common:interfaces",
+    "//components/safe_browsing/db:database_manager",
+    "//components/safe_browsing/db:v4_local_database_manager",
+    "//components/safe_browsing/web_ui",
+    "//components/search_engines",
+    "//components/sessions",
+    "//components/url_formatter",
     "//mojo/public/cpp/platform",
     "//mojo/public/cpp/system",
+    "//services/identity/public/cpp",
+    "//services/preferences/public/cpp",
   ]
 
   if (enable_extensions) {
@@ -67,7 +89,10 @@
       "settings_reset_prompt/settings_reset_prompt_util_win.cc",
       "settings_reset_prompt/settings_reset_prompt_util_win.h",
     ]
-    deps += [ "//components/keep_alive_registry" ]
+    deps += [
+      "//components/keep_alive_registry",
+      "//extensions/browser",
+    ]
   }
 
   if (is_chrome_branded && is_win) {
@@ -217,7 +242,10 @@
       ]
       deps += [
         ":advanced_protection",
+        "//chrome/common/safe_browsing:archive_analyzer_results",
+        "//chrome/common/safe_browsing:binary_feature_extractor",
         "//chrome/common/safe_browsing:disk_image_type_sniffer_mac",
+        "//chrome/common/safe_browsing:download_type_util",
         "//chrome/services/file_util/public/cpp",
         "//components/content_settings/core/browser:browser",
         "//components/language/core/common:common",