| OLD | NEW |
| (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_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_ |
| OLD | NEW |