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

Unified Diff: components/sync_driver/sync_error_controller.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 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 | « components/sync_driver/sync_error_controller.h ('k') | components/sync_driver/sync_frontend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_error_controller.cc
diff --git a/components/sync_driver/sync_error_controller.cc b/components/sync_driver/sync_error_controller.cc
deleted file mode 100644
index 48c9ee42e9ab4cce91dcc97a40c8e5a1404fce33..0000000000000000000000000000000000000000
--- a/components/sync_driver/sync_error_controller.cc
+++ /dev/null
@@ -1,34 +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 "components/sync_driver/sync_error_controller.h"
-
-#include "components/sync_driver/sync_service.h"
-
-SyncErrorController::SyncErrorController(sync_driver::SyncService* service)
- : service_(service) {
- DCHECK(service_);
-}
-
-SyncErrorController::~SyncErrorController() {
-}
-
-bool SyncErrorController::HasError() {
- return service_->IsFirstSetupComplete() && 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 | « components/sync_driver/sync_error_controller.h ('k') | components/sync_driver/sync_frontend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698