Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.h |
=================================================================== |
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.h (revision 91576) |
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.h (working copy) |
@@ -7,10 +7,11 @@ |
#pragma once |
#include "base/memory/scoped_ptr.h" |
-#include "chrome/browser/prefs/pref_member.h" |
#include "chrome/browser/ui/views/frame/browser_frame.h" |
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
#include "chrome/browser/ui/views/tab_icon_view.h" |
+#include "content/common/notification_observer.h" |
+#include "content/common/notification_registrar.h" |
#include "views/controls/button/button.h" |
#include "views/window/non_client_view.h" |
@@ -157,8 +158,8 @@ |
// Returns the bounds of the client area for the specified view size. |
gfx::Rect CalculateClientAreaBounds(int width, int height) const; |
- // Receive notifications when the user's Google services user name changes. |
- void RegisterLoginNotifications(); |
+ // Updates the title and icon of the avatar button. |
+ void UpdateAvatarInfo(); |
// The layout rect of the title, if visible. |
gfx::Rect title_bounds_; |
@@ -188,8 +189,7 @@ |
// icon. |
scoped_ptr<AvatarMenuButton> avatar_button_; |
- // The Google services user name associated with this BrowserView's profile. |
- StringPrefMember username_pref_; |
+ NotificationRegistrar registrar_; |
DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
}; |