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

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

Issue 9512005: [Sync] Move BridgedSyncNotifier and ChromeSyncNotificationBridge to glue/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 10 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/notifier/chrome_sync_notification_bridge.cc b/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
similarity index 74%
rename from chrome/browser/sync/notifier/chrome_sync_notification_bridge.cc
rename to chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
index 3a724b44feee57cc2eee7e68ba4c7aea1d0bdb2d..a3c8107f1f407461653c3923187a776f61e48b2a 100644
--- a/chrome/browser/sync/notifier/chrome_sync_notification_bridge.cc
+++ b/chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/sync/notifier/chrome_sync_notification_bridge.h"
+#include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h"
#include "chrome/browser/sync/notifier/sync_notifier_observer.h"
#include "chrome/common/chrome_notification_types.h"
@@ -11,11 +11,12 @@
using content::BrowserThread;
-namespace sync_notifier {
+namespace browser_sync {
ChromeSyncNotificationBridge::ChromeSyncNotificationBridge(
const Profile* profile)
- : observers_(new ObserverListThreadSafe<SyncNotifierObserver>()) {
+ : observers_(
+ new ObserverListThreadSafe<sync_notifier::SyncNotifierObserver>()) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(profile);
registrar_.Add(this, chrome::NOTIFICATION_SYNC_REFRESH,
@@ -24,12 +25,13 @@ ChromeSyncNotificationBridge::ChromeSyncNotificationBridge(
ChromeSyncNotificationBridge::~ChromeSyncNotificationBridge() {}
-void ChromeSyncNotificationBridge::AddObserver(SyncNotifierObserver* observer) {
+void ChromeSyncNotificationBridge::AddObserver(
+ sync_notifier::SyncNotifierObserver* observer) {
observers_->AddObserver(observer);
}
void ChromeSyncNotificationBridge::RemoveObserver(
- SyncNotifierObserver* observer) {
+ sync_notifier::SyncNotifierObserver* observer) {
observers_->RemoveObserver(observer);
}
@@ -46,8 +48,9 @@ void ChromeSyncNotificationBridge::Observe(
DCHECK_EQ(syncable::SESSIONS, model_type);
syncable::ModelTypePayloadMap payload_map;
payload_map[model_type] = "";
- observers_->Notify(&SyncNotifierObserver::OnIncomingNotification,
- payload_map, LOCAL_NOTIFICATION);
+ observers_->Notify(
+ &sync_notifier::SyncNotifierObserver::OnIncomingNotification,
+ payload_map, sync_notifier::LOCAL_NOTIFICATION);
}
-} // namespace sync_notifier
+} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698