Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4787)

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 7155015: Store profile avatar to preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698