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

Unified Diff: chrome/browser/sync/notifier/bridged_sync_notifier.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/notifier/bridged_sync_notifier.cc
diff --git a/chrome/browser/sync/notifier/bridged_sync_notifier.cc b/chrome/browser/sync/notifier/bridged_sync_notifier.cc
deleted file mode 100644
index f2e72d3a1a735a8430b5264bc6a7baf9e3ba39c5..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/notifier/bridged_sync_notifier.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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/bridged_sync_notifier.h"
-
-#include "chrome/browser/sync/notifier/chrome_sync_notification_bridge.h"
-
-namespace sync_notifier {
-
-BridgedSyncNotifier::BridgedSyncNotifier(
- ChromeSyncNotificationBridge* bridge, SyncNotifier* delegate)
- : bridge_(bridge), delegate_(delegate) {
- DCHECK(bridge_);
- DCHECK(delegate_.get());
-}
-
-BridgedSyncNotifier::~BridgedSyncNotifier() {
-}
-
-void BridgedSyncNotifier::AddObserver(SyncNotifierObserver* observer) {
- delegate_->AddObserver(observer);
- bridge_->AddObserver(observer);
-}
-
-void BridgedSyncNotifier::RemoveObserver(
- SyncNotifierObserver* observer) {
- bridge_->RemoveObserver(observer);
- delegate_->RemoveObserver(observer);
-}
-
-void BridgedSyncNotifier::SetUniqueId(const std::string& unique_id) {
- delegate_->SetUniqueId(unique_id);
-}
-
-void BridgedSyncNotifier::SetState(const std::string& state) {
- delegate_->SetState(state);
-}
-
-void BridgedSyncNotifier::UpdateCredentials(
- const std::string& email, const std::string& token) {
- delegate_->UpdateCredentials(email, token);
-}
-
-void BridgedSyncNotifier::UpdateEnabledTypes(
- syncable::ModelTypeSet enabled_types) {
- delegate_->UpdateEnabledTypes(enabled_types);
-}
-
-void BridgedSyncNotifier::SendNotification(
- syncable::ModelTypeSet changed_types) {
- delegate_->SendNotification(changed_types);
-}
-
-} // namespace sync_notifier
« no previous file with comments | « chrome/browser/sync/notifier/bridged_sync_notifier.h ('k') | chrome/browser/sync/notifier/bridged_sync_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698