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

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

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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/profile_sync_service_harness.cc
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc
index c89df6d886170ddfb4a3eb772de8d94e7a296edc..67aea3109d0921e6cf637b5bdb9cd6788d991c96 100644
--- a/chrome/browser/sync/profile_sync_service_harness.cc
+++ b/chrome/browser/sync/profile_sync_service_harness.cc
@@ -501,9 +501,14 @@ void ProfileSyncServiceHarness::OnSyncCycleCompleted() {
bool is_notifiable_commit =
(snap.model_neutral_state().num_successful_commits > 0);
if (is_notifiable_commit && p2p_invalidation_service_) {
- const syncer::ObjectIdInvalidationMap& invalidation_map =
- ModelTypeInvalidationMapToObjectIdInvalidationMap(
- snap.source().types);
+ syncer::ModelTypeSet model_types =
+ snap.model_neutral_state().commit_request_types;
tim (not reviewing) 2013/08/01 17:16:38 Am I correct that we only need commit_request_type
rlarocque 2013/08/01 21:01:41 Yep, it's only for tests. I wish I could have avo
+ syncer::ObjectIdSet ids = ModelTypeSetToObjectIdSet(model_types);
+ syncer::ObjectIdInvalidationMap invalidation_map =
+ syncer::ObjectIdSetToInvalidationMap(
+ ids,
+ syncer::Invalidation::kUnknownVersion,
+ "");
p2p_invalidation_service_->SendInvalidation(invalidation_map);
}

Powered by Google App Engine
This is Rietveld 408576698