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

Unified Diff: chrome/browser/sync/glue/chrome_sync_notification_bridge.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 6 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
Index: chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
diff --git a/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc b/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
index cef791b980a6b37852360509385280ea0ce77140..5b871de577142b085a17f33972367ad5850134cf 100644
--- a/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
+++ b/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
@@ -16,7 +16,7 @@ namespace browser_sync {
ChromeSyncNotificationBridge::ChromeSyncNotificationBridge(
const Profile* profile)
: observers_(
- new ObserverListThreadSafe<csync::SyncNotifierObserver>()) {
+ new ObserverListThreadSafe<syncer::SyncNotifierObserver>()) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(profile);
registrar_.Add(this, chrome::NOTIFICATION_SYNC_REFRESH_LOCAL,
@@ -34,12 +34,12 @@ void ChromeSyncNotificationBridge::UpdateEnabledTypes(
}
void ChromeSyncNotificationBridge::AddObserver(
- csync::SyncNotifierObserver* observer) {
+ syncer::SyncNotifierObserver* observer) {
observers_->AddObserver(observer);
}
void ChromeSyncNotificationBridge::RemoveObserver(
- csync::SyncNotifierObserver* observer) {
+ syncer::SyncNotifierObserver* observer) {
observers_->RemoveObserver(observer);
}
@@ -49,11 +49,11 @@ void ChromeSyncNotificationBridge::Observe(
const content::NotificationDetails& details) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- csync::IncomingNotificationSource notification_source;
+ syncer::IncomingNotificationSource notification_source;
if (type == chrome::NOTIFICATION_SYNC_REFRESH_LOCAL) {
- notification_source = csync::LOCAL_NOTIFICATION;
+ notification_source = syncer::LOCAL_NOTIFICATION;
} else if (type == chrome::NOTIFICATION_SYNC_REFRESH_REMOTE) {
- notification_source = csync::REMOTE_NOTIFICATION;
+ notification_source = syncer::REMOTE_NOTIFICATION;
} else {
NOTREACHED() << "Unexpected notification type:" << type;
return;
@@ -70,7 +70,7 @@ void ChromeSyncNotificationBridge::Observe(
}
observers_->Notify(
- &csync::SyncNotifierObserver::OnIncomingNotification,
+ &syncer::SyncNotifierObserver::OnIncomingNotification,
payload_map, notification_source);
}

Powered by Google App Engine
This is Rietveld 408576698