[BackgroundSync] Componentize BackgroundSyncControllerImpl.
Bug: 1087486, 1091211
Change-Id: I9c4ed3d09cce8c9e4fc7e708f1c94b990d8e93af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454169
Reviewed-by: Alexei Svitkine <[email protected]>
Reviewed-by: Colin Blundell <[email protected]>
Reviewed-by: Josh Karlin <[email protected]>
Commit-Queue: Alexei Svitkine <[email protected]>
Auto-Submit: Mugdha Lakhani <[email protected]>
Cr-Commit-Position: refs/heads/master@{#815153}
diff --git a/components/background_sync/BUILD.gn b/components/background_sync/BUILD.gn
index 3b0f0745..6a3f3309 100644
--- a/components/background_sync/BUILD.gn
+++ b/components/background_sync/BUILD.gn
@@ -4,6 +4,8 @@
static_library("background_sync") {
sources = [
+ "background_sync_controller_impl.cc",
+ "background_sync_controller_impl.h",
"background_sync_delegate.h",
"background_sync_metrics.cc",
"background_sync_metrics.h",
@@ -15,9 +17,14 @@
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/permissions",
+ "//components/variations",
+ "//content/public/browser",
"//services/metrics/public/cpp:ukm_builders",
"//third_party/blink/public/common:headers",
]
+ if (!is_android) {
+ deps += [ "//components/keep_alive_registry" ]
+ }
}
source_set("unit_tests") {