Chromium Code Reviews| 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); | |
|
sky
2016/07/27 18:17:30
This class and usage of it would be more natural i
Jane
2016/07/27 20:17:49
The rationale of not having NewAvatarButton direct
sky
2016/07/27 21:42:54
I missed that the two classes are implementing dif
Jane
2016/07/29 13:53:46
Yes, these two classes are for avatar button (linu
| |
| 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 |