Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: components/browser_sync/profile_sync_service.cc

Issue 2753753005: [sync] WebContentsObserver based sessions notifications (Closed)
Patch Set: Use composition Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/browser_sync/profile_sync_service.cc
diff --git a/components/browser_sync/profile_sync_service.cc b/components/browser_sync/profile_sync_service.cc
index 3471651c2eec2c8a78b6cb8e6490ce7330db078d..ed812703349299745fa7af92bf6db5f81ec3bfa3 100644
--- a/components/browser_sync/profile_sync_service.cc
+++ b/components/browser_sync/profile_sync_service.cc
@@ -225,8 +225,8 @@ void ProfileSyncService::Initialize() {
base::Bind(&ProfileSyncService::CanEngineStart, base::Unretained(this)),
base::Bind(&ProfileSyncService::StartUpSlowEngineComponents,
weak_factory_.GetWeakPtr()));
- std::unique_ptr<sync_sessions::LocalSessionEventRouter> router(
- sync_client_->GetSyncSessionsClient()->GetLocalSessionEventRouter());
+ sync_sessions::LocalSessionEventRouter* router =
+ sync_client_->GetSyncSessionsClient()->GetLocalSessionEventRouter();
local_device_ = sync_client_->GetSyncApiComponentFactory()
->CreateLocalDeviceInfoProvider();
sync_stopped_reporter_ = base::MakeUnique<syncer::SyncStoppedReporter>(

Powered by Google App Engine
This is Rietveld 408576698