Index: chrome/browser/sync/glue/session_change_processor.cc |
diff --git a/chrome/browser/sync/glue/session_change_processor.cc b/chrome/browser/sync/glue/session_change_processor.cc |
index c95e21e2395aa0ccf0e0c619d056cce719ed251c..a79c5d10db5f76f8b2811bac6a4548b98a7ef18d 100644 |
--- a/chrome/browser/sync/glue/session_change_processor.cc |
+++ b/chrome/browser/sync/glue/session_change_processor.cc |
@@ -24,7 +24,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "sync/api/sync_error.h" |
#include "sync/internal_api/public/base/model_type.h" |
-#include "sync/internal_api/public/base/model_type_state_map.h" |
+#include "sync/internal_api/public/base/model_type_invalidation_map.h" |
#include "sync/internal_api/public/change_record.h" |
#include "sync/internal_api/public/read_node.h" |
#include "sync/protocol/session_specifics.pb.h" |
@@ -212,13 +212,14 @@ void SessionChangeProcessor::Observe( |
entry->GetVirtualURL().is_valid() && |
entry->GetVirtualURL().spec() == kNTPOpenTabSyncURL) { |
DVLOG(1) << "Triggering sync refresh for sessions datatype."; |
- const syncer::ModelType type = syncer::SESSIONS; |
- syncer::ModelTypeStateMap state_map; |
- state_map.insert(std::make_pair(type, syncer::InvalidationState())); |
+ const syncer::ModelTypeSet types(syncer::SESSIONS); |
+ const syncer::ModelTypeInvalidationMap& invalidation_map = |
+ ModelTypeSetToInvalidationMap(types, std::string()); |
content::NotificationService::current()->Notify( |
chrome::NOTIFICATION_SYNC_REFRESH_LOCAL, |
content::Source<Profile>(profile_), |
- content::Details<const syncer::ModelTypeStateMap>(&state_map)); |
+ content::Details<const syncer::ModelTypeInvalidationMap>( |
+ &invalidation_map)); |
} |
} |