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

Side by Side Diff: chrome/browser/signin/avatar_signin_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: Made nested classes private 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
« no previous file with comments | « no previous file | chrome/browser/signin/avatar_signin_error_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
sky 2016/07/27 21:42:54 nit: no '(c)', see style guide.
Jane 2016/07/29 13:53:46 Done.
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_SIGNIN_AVATAR_SIGNIN_ERROR_CONTROLLER_H_
6 #define CHROME_BROWSER_SIGNIN_AVATAR_SIGNIN_ERROR_CONTROLLER_H_
7
8 #include "components/signin/core/browser/signin_error_controller.h"
9
10 class Profile;
11
12 // Keeps track of auth errors, which should be exposed to the user in the avatar
13 // button.
14 class AvatarSigninErrorController : public SigninErrorController::Observer {
15 public:
16 explicit AvatarSigninErrorController(Profile* profile);
17 ~AvatarSigninErrorController() override;
18
19 // SigninErrorController::Observer:
20 void OnErrorChanged() override;
21
22 bool has_error() { return has_error_; }
23
24 private:
25 Profile* profile_;
26 bool has_error_;
27
28 DISALLOW_COPY_AND_ASSIGN(AvatarSigninErrorController);
29 };
30
31 #endif // CHROME_BROWSER_SIGNIN_AVATAR_SIGNIN_ERROR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/avatar_signin_error_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698