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

Unified Diff: chrome/browser/ui/views/frame/glass_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/glass_browser_frame_view.h
===================================================================
--- chrome/browser/ui/views/frame/glass_browser_frame_view.h (revision 91576)
+++ chrome/browser/ui/views/frame/glass_browser_frame_view.h (working copy)
@@ -7,9 +7,10 @@
#pragma once
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/prefs/pref_member.h"
#include "chrome/browser/ui/views/frame/browser_frame_win.h"
#include "chrome/browser/ui/views/frame/browser_non_client_frame_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"
@@ -85,8 +86,8 @@
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
- // 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 avatar icon, if visible.
gfx::Rect avatar_bounds_;
@@ -110,8 +111,7 @@
// The index of the current frame of the throbber animation.
int throbber_frame_;
- // The Google services user name associated with this BrowserView's profile.
- StringPrefMember username_pref_;
+ NotificationRegistrar registrar_;
static const int kThrobberIconCount = 24;
static HICON throbber_icons_[kThrobberIconCount];
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698