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

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

Issue 23441042: Refactor common invalidation framework types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another browser test fix Created 7 years, 3 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/profile_sync_service_android.cc
diff --git a/chrome/browser/sync/profile_sync_service_android.cc b/chrome/browser/sync/profile_sync_service_android.cc
index a3d58d0658fe554d4366c3b96e714a3197393eec..546ccdd2a13e447391627acdd766c2136c07cf72 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -118,10 +118,9 @@ void ProfileSyncServiceAndroid::SendNudgeNotification(
max_invalidation_versions_[object_id] = version;
}
- syncer::ObjectIdSet object_ids;
- object_ids.insert(object_id);
- syncer::ObjectIdInvalidationMap object_ids_with_states =
- syncer::ObjectIdSetToInvalidationMap(object_ids, version, state);
+ syncer::ObjectIdInvalidationMap object_ids_with_states;
+ object_ids_with_states.Insert(
+ syncer::Invalidation::Init(object_id, version, state));
Steve Condie 2013/10/01 18:53:10 It is possible for the version coming from the Jav
rlarocque 2013/10/01 19:29:57 Thanks for double-checking this. The compiler als
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_SYNC_REFRESH_REMOTE,

Powered by Google App Engine
This is Rietveld 408576698