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

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

Issue 10916131: [Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android 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') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | 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 3f0b87d75b681c0a6cd6cfda9f2a856ab8eca827..a5534d1b8a2e1df8cd0ccbb3ca55c78eb084eb6a 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -467,6 +467,10 @@ void ProfileSyncService::UnregisterInvalidationHandler(
invalidator_registrar_.UnregisterHandler(handler);
}
+syncer::InvalidatorState ProfileSyncService::GetInvalidatorState() const {
+ return invalidator_registrar_.GetInvalidatorState();
+}
+
void ProfileSyncService::Shutdown() {
ShutdownImpl(false);
}
@@ -659,18 +663,14 @@ void ProfileSyncService::DisableBrokenDatatype(
weak_factory_.GetWeakPtr()));
}
-void ProfileSyncService::OnNotificationsEnabled() {
- invalidator_registrar_.EmitOnNotificationsEnabled();
-}
-
-void ProfileSyncService::OnNotificationsDisabled(
- syncer::NotificationsDisabledReason reason) {
- invalidator_registrar_.EmitOnNotificationsDisabled(reason);
+void ProfileSyncService::OnInvalidatorStateChange(
+ syncer::InvalidatorState state) {
+ invalidator_registrar_.UpdateInvalidatorState(state);
}
-void ProfileSyncService::OnIncomingNotification(
+void ProfileSyncService::OnIncomingInvalidation(
const syncer::ObjectIdStateMap& id_state_map,
- syncer::IncomingNotificationSource source) {
+ syncer::IncomingInvalidationSource source) {
invalidator_registrar_.DispatchInvalidationsToHandlers(id_state_map, source);
}
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698