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

Side by Side Diff: chrome/browser/sync/avatar_sync_error_controller.h

Issue 2179283002: Refactored signin/sync error controllers for the avatar button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enum name change 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_AVATAR_SYNC_ERROR_CONTROLLER_H_
6 #define CHROME_BROWSER_SYNC_AVATAR_SYNC_ERROR_CONTROLLER_H_
7
8 #include "components/sync_driver/sync_error_controller.h"
9
10 class Profile;
11
12 // Keeps track of the sync errors that should be exposed to the user in the
13 // avatar button.
14 class AvatarSyncErrorController : public SyncErrorController::Observer {
15 public:
16 explicit AvatarSyncErrorController(Profile* profile);
17 ~AvatarSyncErrorController() override;
18
19 // SyncErrorController::Observer:
20 void OnErrorChanged() override;
21
22 bool has_error() { return has_error_; }
23
24 private:
25 SyncErrorController* GetSyncErrorControllerIfNeeded(Profile* profile);
26
27 Profile* profile_;
28 bool has_error_;
29
30 DISALLOW_COPY_AND_ASSIGN(AvatarSyncErrorController);
31 };
32
33 #endif // CHROME_BROWSER_SYNC_AVATAR_SYNC_ERROR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698