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

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

Issue 1272713002: [Sync] Move sync error controller to sync driver component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 5 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/sync_error_controller.h ('k') | chrome/browser/sync/sync_error_notifier_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_error_controller.cc
diff --git a/chrome/browser/sync/sync_error_controller.cc b/chrome/browser/sync/sync_error_controller.cc
deleted file mode 100644
index c6346d0396ae6b989fdc393cf0a6cfb4ec0ddbde..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/sync_error_controller.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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/sync_error_controller.h"
-
-#include "chrome/browser/sync/profile_sync_service.h"
-#include "chrome/browser/sync/profile_sync_service_factory.h"
-
-SyncErrorController::SyncErrorController(ProfileSyncService* service)
- : service_(service) {
- DCHECK(service_);
-}
-
-SyncErrorController::~SyncErrorController() {
-}
-
-bool SyncErrorController::HasError() {
- return service_->HasSyncSetupCompleted() &&
- service_->IsPassphraseRequired() &&
- service_->IsPassphraseRequiredForDecryption();
-}
-
-void SyncErrorController::AddObserver(Observer* observer) {
- observer_list_.AddObserver(observer);
-}
-
-void SyncErrorController::RemoveObserver(Observer* observer) {
- observer_list_.RemoveObserver(observer);
-}
-
-void SyncErrorController::OnStateChanged() {
- FOR_EACH_OBSERVER(Observer,
- observer_list_,
- OnErrorChanged());
-}
« no previous file with comments | « chrome/browser/sync/sync_error_controller.h ('k') | chrome/browser/sync/sync_error_notifier_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698