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

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

Issue 10915216: Browser test for the push messaging feature (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: CR change per Alakin Created 8 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 542d731c29a6ef7397f6efd315583aae003d9cdf..d185511184be7c4e96afc3df20520f73fc1af1ce 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -472,6 +472,17 @@ syncer::InvalidatorState ProfileSyncService::GetInvalidatorState() const {
return invalidator_registrar_.GetInvalidatorState();
}
+void ProfileSyncService::EmitInvalidationForTest(
+ const invalidation::ObjectId& id,
+ const std::string& payload) {
+ syncer::ObjectIdSet notify_ids;
+ notify_ids.insert(id);
+
+ const syncer::ObjectIdStateMap& id_state_map =
+ ObjectIdSetToStateMap(notify_ids, payload);
+ OnIncomingInvalidation(id_state_map, syncer::REMOTE_INVALIDATION);
+}
+
void ProfileSyncService::Shutdown() {
ShutdownImpl(false);
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698