Index: chrome/browser/sync/profile_sync_service.cc |
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc |
index 5173ed7c0d765c02a5209aa955e2c9a8cf9a43cc..a090075a215c939d7009ce103fb62c35824d85d9 100644 |
--- a/chrome/browser/sync/profile_sync_service.cc |
+++ b/chrome/browser/sync/profile_sync_service.cc |
@@ -48,6 +48,7 @@ |
#include "chrome/browser/sync/glue/synced_device_tracker.h" |
#include "chrome/browser/sync/glue/typed_url_data_type_controller.h" |
#include "chrome/browser/sync/profile_sync_components_factory_impl.h" |
+#include "chrome/browser/sync/sessions2/notification_service_sessions_router.h" |
#include "chrome/browser/sync/sessions2/sessions_sync_manager.h" |
#include "chrome/browser/sync/sync_global_error.h" |
#include "chrome/browser/sync/user_selectable_sync_type.h" |
@@ -91,6 +92,7 @@ using browser_sync::ChangeProcessor; |
using browser_sync::DataTypeController; |
using browser_sync::DataTypeManager; |
using browser_sync::FailedDataTypesHandler; |
+using browser_sync::NotificationServiceSessionsRouter; |
using browser_sync::SyncBackendHost; |
using syncer::ModelType; |
using syncer::ModelTypeSet; |
@@ -196,7 +198,10 @@ ProfileSyncService::ProfileSyncService( |
if (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableSyncSessionsV2)) { |
- sessions_sync_manager_.reset(new SessionsSyncManager(profile, this)); |
+ scoped_ptr<SessionsSyncManager::LocalEventRouter> router( |
rlarocque
2013/11/27 22:47:51
It looks like there's a circular dependency here.
tim (not reviewing)
2013/12/02 18:29:49
That's not quite what's happening here. The route
rlarocque
2013/12/02 18:53:53
OK, I think I understand now.
Would it be a viabl
tim (not reviewing)
2013/12/02 19:50:56
Yes, except that the goal with the Router approach
|
+ new NotificationServiceSessionsRouter(profile)); |
+ sessions_sync_manager_.reset( |
+ new SessionsSyncManager(profile, this, router.Pass())); |
} |
} |