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

Unified Diff: components/sync_driver/sync_error_controller.h

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 | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/sync_error_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_error_controller.h
diff --git a/chrome/browser/sync/sync_error_controller.h b/components/sync_driver/sync_error_controller.h
similarity index 77%
rename from chrome/browser/sync/sync_error_controller.h
rename to components/sync_driver/sync_error_controller.h
index 03bc907ebc76831e15ff2a631c143408a36cde7e..1cb77d7d8eb34d3dbbcbbdd37792e013d59ee0af 100644
--- a/chrome/browser/sync/sync_error_controller.h
+++ b/components/sync_driver/sync_error_controller.h
@@ -2,16 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SYNC_SYNC_ERROR_CONTROLLER_H_
-#define CHROME_BROWSER_SYNC_SYNC_ERROR_CONTROLLER_H_
+#ifndef COMPONENTS_SYNC_DRIVER_SYNC_ERROR_CONTROLLER_H_
+#define COMPONENTS_SYNC_DRIVER_SYNC_ERROR_CONTROLLER_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/observer_list.h"
#include "components/sync_driver/sync_service_observer.h"
-class Profile;
-class ProfileSyncService;
+namespace sync_driver {
+class SyncService;
+}
// Keep track of sync errors and expose them to observers in the UI.
class SyncErrorController : public sync_driver::SyncServiceObserver {
@@ -24,7 +25,7 @@ class SyncErrorController : public sync_driver::SyncServiceObserver {
virtual void OnErrorChanged() = 0;
};
- explicit SyncErrorController(ProfileSyncService* service);
+ explicit SyncErrorController(sync_driver::SyncService* service);
~SyncErrorController() override;
// True if there exists an error worth elevating to the user.
@@ -37,10 +38,10 @@ class SyncErrorController : public sync_driver::SyncServiceObserver {
void OnStateChanged() override;
private:
- ProfileSyncService* service_;
+ sync_driver::SyncService* service_;
base::ObserverList<Observer, true> observer_list_;
DISALLOW_COPY_AND_ASSIGN(SyncErrorController);
};
-#endif // CHROME_BROWSER_SYNC_SYNC_ERROR_CONTROLLER_H_
+#endif // COMPONENTS_SYNC_DRIVER_SYNC_ERROR_CONTROLLER_H_
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/sync_error_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698