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

Unified Diff: chrome/browser/sync/user_event_service_factory.cc

Issue 2958303002: [Sync] Maintain a global_id mapping to update UserEvents that references navigations (Closed)
Patch Set: Rebase Created 3 years, 5 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: chrome/browser/sync/user_event_service_factory.cc
diff --git a/chrome/browser/sync/user_event_service_factory.cc b/chrome/browser/sync/user_event_service_factory.cc
index bcf784e084d58cb2842f7c602a3c3811e6a5642e..f2b4d5607d84b18d18b5f43f285ed23a6b863a9a 100644
--- a/chrome/browser/sync/user_event_service_factory.cc
+++ b/chrome/browser/sync/user_event_service_factory.cc
@@ -55,10 +55,12 @@ KeyedService* UserEventServiceFactory::BuildServiceInstanceFor(
base::BindRepeating(&syncer::ModelTypeChangeProcessor::Create,
base::BindRepeating(&syncer::ReportUnrecoverableError,
chrome::GetChannel()));
+ syncer::SyncService* sync_service =
+ ProfileSyncServiceFactory::GetForProfile(profile);
auto bridge = base::MakeUnique<syncer::UserEventSyncBridge>(
- std::move(store_factory), std::move(processor_factory));
- return new syncer::UserEventServiceImpl(
- ProfileSyncServiceFactory::GetForProfile(profile), std::move(bridge));
+ std::move(store_factory), std::move(processor_factory),
+ sync_service->GetGlobalIdMapper());
+ return new syncer::UserEventServiceImpl(sync_service, std::move(bridge));
}
content::BrowserContext* UserEventServiceFactory::GetBrowserContextToUse(
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.h » ('j') | components/sync_sessions/sessions_sync_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698