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

Unified Diff: sync/internal_api/sync_manager_impl.cc

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 4 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
« no previous file with comments | « sync/internal_api/public/base/model_type_state_map.h ('k') | sync/notifier/fake_invalidator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_manager_impl.cc
diff --git a/sync/internal_api/sync_manager_impl.cc b/sync/internal_api/sync_manager_impl.cc
index a0fa57cca51cb690ca4210c6943e0a75422f049c..87e6e69441964857a70fde5d0cd78a516ce1eb64 100644
--- a/sync/internal_api/sync_manager_impl.cc
+++ b/sync/internal_api/sync_manager_impl.cc
@@ -1009,9 +1009,9 @@ void SyncManagerImpl::OnSyncEngineEvent(const SyncEngineEvent& event) {
(event.snapshot.model_neutral_state().num_successful_commits > 0);
if (is_notifiable_commit) {
if (invalidator_.get()) {
- const ModelTypeSet changed_types =
- ModelTypeStateMapToSet(event.snapshot.source().types);
- invalidator_->SendNotification(changed_types);
+ const ObjectIdStateMap& id_state_map =
+ ModelTypeStateMapToObjectIdStateMap(event.snapshot.source().types);
+ invalidator_->SendNotification(id_state_map);
} else {
DVLOG(1) << "Not sending notification: invalidator_ is NULL";
}
« no previous file with comments | « sync/internal_api/public/base/model_type_state_map.h ('k') | sync/notifier/fake_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698