Commit 49bd8a56 authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Merge some URL lookup service BUILD targets

We have some BUILD targets related to the URL lookup service that both
depend on and are depended on by
//chrome/browser/safe_browsing:safe_browsing

This seems to be causing occasional build flakes (see bug). The solution
is to merge these BUILD targets.

Bug: 1151202
Change-Id: Id73c8a737f1f93bf0430b21f8ec770e865f5175a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2552571
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarXinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829845}
parent afa147a8
...@@ -1974,7 +1974,6 @@ static_library("browser") { ...@@ -1974,7 +1974,6 @@ static_library("browser") {
"//chrome/browser/resource_coordinator:tab_manager_features", "//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/safe_browsing", "//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:advanced_protection", "//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/safe_browsing:url_lookup_service_factory",
"//chrome/browser/search/task_module:mojo_bindings", "//chrome/browser/search/task_module:mojo_bindings",
"//chrome/browser/sharing:buildflags", "//chrome/browser/sharing:buildflags",
"//chrome/browser/sharing/proto", "//chrome/browser/sharing/proto",
......
...@@ -113,12 +113,13 @@ static_library("safe_browsing") { ...@@ -113,12 +113,13 @@ static_library("safe_browsing") {
"trigger_creator.h", "trigger_creator.h",
"ui_manager.cc", "ui_manager.cc",
"ui_manager.h", "ui_manager.h",
"url_lookup_service_factory.cc",
"url_lookup_service_factory.h",
"user_interaction_observer.cc", "user_interaction_observer.cc",
"user_interaction_observer.h", "user_interaction_observer.h",
] ]
deps += [ deps += [
":metrics_collector", ":metrics_collector",
":url_lookup_service_factory",
":verdict_cache_manager_factory", ":verdict_cache_manager_factory",
"//chrome/common/safe_browsing:proto", "//chrome/common/safe_browsing:proto",
"//components/safe_browsing/content", "//components/safe_browsing/content",
...@@ -135,9 +136,12 @@ static_library("safe_browsing") { ...@@ -135,9 +136,12 @@ static_library("safe_browsing") {
"//components/safe_browsing/core/common:safe_browsing_prefs", "//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/safe_browsing/core/db:allowlist_checker_client", "//components/safe_browsing/core/db:allowlist_checker_client",
"//components/safe_browsing/core/db:metadata_proto", "//components/safe_browsing/core/db:metadata_proto",
"//components/safe_browsing/core/realtime:url_lookup_service",
"//components/safe_browsing/core/triggers", "//components/safe_browsing/core/triggers",
"//components/safe_browsing/core/triggers:trigger_throttler", "//components/safe_browsing/core/triggers:trigger_throttler",
"//components/signin/public/identity_manager",
"//components/site_engagement/core/mojom:mojo_bindings", "//components/site_engagement/core/mojom:mojo_bindings",
"//content/public/browser",
"//services/preferences/public/mojom:mojom", "//services/preferences/public/mojom:mojom",
] ]
if (safe_browsing_mode == 1) { if (safe_browsing_mode == 1) {
...@@ -146,6 +150,10 @@ static_library("safe_browsing") { ...@@ -146,6 +150,10 @@ static_library("safe_browsing") {
sources += [ sources += [
"../download/download_completion_blocker.cc", "../download/download_completion_blocker.cc",
"../download/download_completion_blocker.h", "../download/download_completion_blocker.h",
"chrome_enterprise_url_lookup_service.cc",
"chrome_enterprise_url_lookup_service.h",
"chrome_enterprise_url_lookup_service_factory.cc",
"chrome_enterprise_url_lookup_service_factory.h",
"cloud_content_scanning/binary_fcm_service.cc", "cloud_content_scanning/binary_fcm_service.cc",
"cloud_content_scanning/binary_fcm_service.h", "cloud_content_scanning/binary_fcm_service.h",
"cloud_content_scanning/binary_upload_service.cc", "cloud_content_scanning/binary_upload_service.cc",
...@@ -245,25 +253,31 @@ static_library("safe_browsing") { ...@@ -245,25 +253,31 @@ static_library("safe_browsing") {
"incident_reporting/platform_state_store_win.cc", "incident_reporting/platform_state_store_win.cc",
] ]
} }
public_deps += [
":chrome_enterprise_url_lookup_service",
":chrome_enterprise_url_lookup_service_factory",
]
deps += [ deps += [
":advanced_protection", ":advanced_protection",
":verdict_cache_manager_factory",
"//chrome/common",
"//chrome/common/safe_browsing:archive_analyzer_results", "//chrome/common/safe_browsing:archive_analyzer_results",
"//chrome/common/safe_browsing:binary_feature_extractor", "//chrome/common/safe_browsing:binary_feature_extractor",
"//chrome/common/safe_browsing:download_type_util", "//chrome/common/safe_browsing:download_type_util",
"//chrome/services/file_util/public/cpp", "//chrome/services/file_util/public/cpp",
"//components/content_settings/core/browser", "//components/content_settings/core/browser",
"//components/keyed_service/content",
"//components/language/core/common", "//components/language/core/common",
"//components/prefs", "//components/prefs",
"//components/safe_browsing/core:client_model_proto", "//components/safe_browsing/core:client_model_proto",
"//components/safe_browsing/core:csd_proto",
"//components/safe_browsing/core:realtimeapi_proto",
"//components/safe_browsing/core:verdict_cache_manager",
"//components/safe_browsing/core/db", "//components/safe_browsing/core/db",
"//components/safe_browsing/core/realtime:policy_engine",
"//components/safe_browsing/core/realtime:url_lookup_service_base",
"//components/security_interstitials/content:security_interstitial_page", "//components/security_interstitials/content:security_interstitial_page",
"//components/security_interstitials/core:unsafe_resource", "//components/security_interstitials/core:unsafe_resource",
"//components/sync",
"//content/public/browser", "//content/public/browser",
"//net", "//net",
"//services/network/public/cpp:cpp",
] ]
if (is_mac) { if (is_mac) {
deps += [ "//chrome/common/safe_browsing:disk_image_type_sniffer_mac" ] deps += [ "//chrome/common/safe_browsing:disk_image_type_sniffer_mac" ]
...@@ -288,62 +302,6 @@ static_library("safe_browsing") { ...@@ -288,62 +302,6 @@ static_library("safe_browsing") {
} }
} }
if (safe_browsing_mode == 1) {
source_set("chrome_enterprise_url_lookup_service_factory") {
visibility = [ ":*" ]
sources = [
"chrome_enterprise_url_lookup_service_factory.cc",
"chrome_enterprise_url_lookup_service_factory.h",
]
deps = [
":chrome_enterprise_url_lookup_service",
":verdict_cache_manager_factory",
"//chrome/common",
"//components/keyed_service/content",
"//content/public/browser",
]
}
source_set("chrome_enterprise_url_lookup_service") {
visibility = [ ":*" ]
sources = [
"chrome_enterprise_url_lookup_service.cc",
"chrome_enterprise_url_lookup_service.h",
]
deps = [
"//components/prefs",
"//components/safe_browsing/core:csd_proto",
"//components/safe_browsing/core:realtimeapi_proto",
"//components/safe_browsing/core:verdict_cache_manager",
"//components/safe_browsing/core/realtime:policy_engine",
"//components/safe_browsing/core/realtime:url_lookup_service_base",
"//components/sync",
"//services/network/public/cpp:cpp",
]
}
}
source_set("url_lookup_service_factory") {
sources = [
"url_lookup_service_factory.cc",
"url_lookup_service_factory.h",
]
deps = [
":verdict_cache_manager_factory",
"//chrome/common",
"//components/keyed_service/content",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/core/realtime:url_lookup_service",
"//components/signin/public/identity_manager",
"//content/public/browser",
]
}
source_set("verdict_cache_manager_factory") { source_set("verdict_cache_manager_factory") {
sources = [ sources = [
"verdict_cache_manager_factory.cc", "verdict_cache_manager_factory.cc",
......
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