Index: chrome/browser/sync/glue/sync_backend_host.h |
diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h |
index 0f24252808df5f85173b4fc1ef82344e706ab1a0..66f8a5d0a0abdc2326dd117324cab63109293433 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host.h |
+++ b/chrome/browser/sync/glue/sync_backend_host.h |
@@ -17,6 +17,7 @@ |
#include "chrome/browser/sync/engine/model_safe_worker.h" |
#include "chrome/browser/sync/glue/backend_data_type_configurer.h" |
#include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h" |
+#include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" |
#include "chrome/browser/sync/internal_api/includes/report_unrecoverable_error_function.h" |
#include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h" |
#include "chrome/browser/sync/internal_api/configure_reason.h" |
@@ -289,6 +290,7 @@ class SyncBackendHost : public BackendDataTypeConfigurer { |
const GURL& service_url, |
MakeHttpBridgeFactoryFn make_http_bridge_factory_fn, |
const sync_api::SyncCredentials& credentials, |
+ ChromeSyncNotificationBridge* chrome_sync_notification_bridge, |
sync_notifier::SyncNotifierFactory* sync_notifier_factory, |
bool delete_sync_data_folder, |
const std::string& restored_key_for_bootstrapping, |
@@ -305,6 +307,7 @@ class SyncBackendHost : public BackendDataTypeConfigurer { |
// Overridden by tests. |
MakeHttpBridgeFactoryFn make_http_bridge_factory_fn; |
sync_api::SyncCredentials credentials; |
+ ChromeSyncNotificationBridge* const chrome_sync_notification_bridge; |
sync_notifier::SyncNotifierFactory* const sync_notifier_factory; |
std::string lsid; |
bool delete_sync_data_folder; |
@@ -483,6 +486,10 @@ class SyncBackendHost : public BackendDataTypeConfigurer { |
const base::WeakPtr<SyncPrefs> sync_prefs_; |
+ // A thread-safe listener for handling notifications triggered by |
+ // chrome events. |
+ ChromeSyncNotificationBridge chrome_sync_notification_bridge_; |
+ |
sync_notifier::SyncNotifierFactory sync_notifier_factory_; |
ChromeExtensionsActivityMonitor extensions_activity_monitor_; |