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

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

Issue 10875064: Rename SyncNotifier->Invalidator and SyncNotifierObserver->InvalidationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to ToT for landing 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 | « 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 7f06c727ec89085913f58240e7e39f52db4e1597..3f0b87d75b681c0a6cd6cfda9f2a856ab8eca827 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -431,7 +431,7 @@ void ProfileSyncService::StartUp() {
// http://crbug.com/140354).
if (backend_.get()) {
backend_->UpdateRegisteredInvalidationIds(
- notifier_registrar_.GetAllRegisteredIds());
+ invalidator_registrar_.GetAllRegisteredIds());
}
if (!sync_global_error_.get()) {
@@ -445,26 +445,26 @@ void ProfileSyncService::StartUp() {
}
void ProfileSyncService::RegisterInvalidationHandler(
- syncer::SyncNotifierObserver* handler) {
- notifier_registrar_.RegisterHandler(handler);
+ syncer::InvalidationHandler* handler) {
+ invalidator_registrar_.RegisterHandler(handler);
}
void ProfileSyncService::UpdateRegisteredInvalidationIds(
- syncer::SyncNotifierObserver* handler,
+ syncer::InvalidationHandler* handler,
const syncer::ObjectIdSet& ids) {
- notifier_registrar_.UpdateRegisteredIds(handler, ids);
+ invalidator_registrar_.UpdateRegisteredIds(handler, ids);
// If |backend_| is NULL, its registered IDs will be updated when
// it's created and initialized.
if (backend_.get()) {
backend_->UpdateRegisteredInvalidationIds(
- notifier_registrar_.GetAllRegisteredIds());
+ invalidator_registrar_.GetAllRegisteredIds());
}
}
void ProfileSyncService::UnregisterInvalidationHandler(
- syncer::SyncNotifierObserver* handler) {
- notifier_registrar_.UnregisterHandler(handler);
+ syncer::InvalidationHandler* handler) {
+ invalidator_registrar_.UnregisterHandler(handler);
}
void ProfileSyncService::Shutdown() {
@@ -660,18 +660,18 @@ void ProfileSyncService::DisableBrokenDatatype(
}
void ProfileSyncService::OnNotificationsEnabled() {
- notifier_registrar_.EmitOnNotificationsEnabled();
+ invalidator_registrar_.EmitOnNotificationsEnabled();
}
void ProfileSyncService::OnNotificationsDisabled(
syncer::NotificationsDisabledReason reason) {
- notifier_registrar_.EmitOnNotificationsDisabled(reason);
+ invalidator_registrar_.EmitOnNotificationsDisabled(reason);
}
void ProfileSyncService::OnIncomingNotification(
const syncer::ObjectIdStateMap& id_state_map,
syncer::IncomingNotificationSource source) {
- notifier_registrar_.DispatchInvalidationsToHandlers(id_state_map, source);
+ invalidator_registrar_.DispatchInvalidationsToHandlers(id_state_map, source);
}
void ProfileSyncService::OnBackendInitialized(
« 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