Index: chrome/browser/profiles/avatar_menu.h |
diff --git a/chrome/browser/profiles/avatar_menu.h b/chrome/browser/profiles/avatar_menu.h |
index f319a32cd8f750094d2c5829b0ca49fcd2c2c44d..27bb15676540a774d104e8e10fb532b9a5ded9ee 100644 |
--- a/chrome/browser/profiles/avatar_menu.h |
+++ b/chrome/browser/profiles/avatar_menu.h |
@@ -19,6 +19,10 @@ |
#include "content/public/browser/web_contents_observer.h" |
#include "ui/gfx/image/image.h" |
+#if defined(ENABLE_MANAGED_USERS) |
+#include "chrome/browser/supervised_user/supervised_user_service_observer.h" |
+#endif |
+ |
class AvatarMenuObserver; |
class Browser; |
class Profile; |
@@ -31,7 +35,11 @@ class AvatarMenuActions; |
// browser window frame. This class will notify its observer when the backend |
// data changes, and the view for this model should forward actions |
// back to it in response to user events. |
-class AvatarMenu : public content::NotificationObserver { |
+class AvatarMenu : |
+#if defined(ENABLE_MANAGED_USERS) |
+ public SupervisedUserServiceObserver, |
+#endif |
+ public content::NotificationObserver { |
public: |
// Represents an item in the menu. |
struct Item { |
@@ -142,6 +150,11 @@ class AvatarMenu : public content::NotificationObserver { |
const content::NotificationDetails& details) OVERRIDE; |
private: |
+#if defined(ENABLE_MANAGED_USERS) |
+ // SupervisedUserServiceObserver: |
+ virtual void OnCustodianInfoChanged() OVERRIDE; |
+#endif |
+ |
// The model that provides the list of menu items. |
scoped_ptr<ProfileList> profile_list_; |