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

Unified Diff: ios/chrome/browser/sync/ios_user_event_service_factory.cc

Issue 2958303002: [Sync] Maintain a global_id mapping to update UserEvents that references navigations (Closed)
Patch Set: Hopefully fix iOS compile issue. Created 3 years, 6 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: ios/chrome/browser/sync/ios_user_event_service_factory.cc
diff --git a/ios/chrome/browser/sync/ios_user_event_service_factory.cc b/ios/chrome/browser/sync/ios_user_event_service_factory.cc
index dcca1a85fd9193e850ab6be302988cfefd5ae667..1782505d46fb6b816d2ba4a36f44c42dcb9a4035 100644
--- a/ios/chrome/browser/sync/ios_user_event_service_factory.cc
+++ b/ios/chrome/browser/sync/ios_user_event_service_factory.cc
@@ -55,11 +55,13 @@ IOSUserEventServiceFactory::BuildServiceInstanceFor(
base::BindRepeating(&syncer::ModelTypeChangeProcessor::Create,
base::BindRepeating(&syncer::ReportUnrecoverableError,
::GetChannel()));
+ syncer::SyncService* sync_service =
+ ios::ChromeBrowserState::FromBrowserState(browser_state));
auto bridge = base::MakeUnique<syncer::UserEventSyncBridge>(
- std::move(store_factory), std::move(processor_factory));
+ std::move(store_factory), std::move(processor_factory),
+ sync_service->GetGlobalIdMapper());
return base::MakeUnique<syncer::UserEventServiceImpl>(
- IOSChromeProfileSyncServiceFactory::GetForBrowserState(
- ios::ChromeBrowserState::FromBrowserState(browser_state)),
+ IOSChromeProfileSyncServiceFactory::GetForBrowserState(sync_service,
std::move(bridge));
}

Powered by Google App Engine
This is Rietveld 408576698