| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 9 #include "components/signin/core/browser/signin_error_controller.h" | 9 #include "components/signin/core/browser/signin_error_controller.h" |
| 10 #include "ui/views/controls/button/menu_button.h" | 10 #include "ui/views/controls/button/menu_button.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 FRIEND_TEST_ALL_PREFIXES(ProfileChooserViewBrowserTest, ViewProfileUMA); | 35 FRIEND_TEST_ALL_PREFIXES(ProfileChooserViewBrowserTest, ViewProfileUMA); |
| 36 | 36 |
| 37 // ProfileInfoCacheObserver: | 37 // ProfileInfoCacheObserver: |
| 38 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; | 38 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; |
| 39 virtual void OnProfileWasRemoved( | 39 virtual void OnProfileWasRemoved( |
| 40 const base::FilePath& profile_path, | 40 const base::FilePath& profile_path, |
| 41 const base::string16& profile_name) OVERRIDE; | 41 const base::string16& profile_name) OVERRIDE; |
| 42 virtual void OnProfileNameChanged( | 42 virtual void OnProfileNameChanged( |
| 43 const base::FilePath& profile_path, | 43 const base::FilePath& profile_path, |
| 44 const base::string16& old_profile_name) OVERRIDE; | 44 const base::string16& old_profile_name) OVERRIDE; |
| 45 virtual void OnProfileSupervisedUserIdChanged( |
| 46 const base::FilePath& profile_path) OVERRIDE; |
| 45 | 47 |
| 46 // SigninErrorController::Observer: | 48 // SigninErrorController::Observer: |
| 47 virtual void OnErrorChanged() OVERRIDE; | 49 virtual void OnErrorChanged() OVERRIDE; |
| 48 | 50 |
| 49 // Called when the profile info cache has changed, which means we might | 51 // Called when the profile info cache has changed, which means we might |
| 50 // have to re-display the profile name. | 52 // have to re-display the profile name. |
| 51 void UpdateAvatarButtonAndRelayoutParent(); | 53 void UpdateAvatarButtonAndRelayoutParent(); |
| 52 | 54 |
| 53 Browser* browser_; | 55 Browser* browser_; |
| 54 | 56 |
| 55 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); | 57 DISALLOW_COPY_AND_ASSIGN(NewAvatarButton); |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ | 60 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_NEW_AVATAR_BUTTON_H_ |
| OLD | NEW |