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

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: Rebase 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 daa4e179a26025a33c7403a639b9cb8a2deaa0cb..fe7c092846b6fa24272cbbd4e15fad7531a6cbe6 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -115,10 +115,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));
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_SYNC_REFRESH_REMOTE,

Powered by Google App Engine
This is Rietveld 408576698