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

Unified Diff: chrome/browser/profiles/avatar_menu_model.cc

Issue 7647002: [Mac] Implement the avatar menu bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test Created 9 years, 4 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
« no previous file with comments | « chrome/app/nibs/AvatarMenuItem.xib ('k') | chrome/browser/profiles/avatar_menu_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/avatar_menu_model.cc
diff --git a/chrome/browser/profiles/avatar_menu_model.cc b/chrome/browser/profiles/avatar_menu_model.cc
index 408728d303a43b2d098c7c2729783d7eb8bebab4..7c665d3a2d1cae3e63119099acc88884e025882f 100644
--- a/chrome/browser/profiles/avatar_menu_model.cc
+++ b/chrome/browser/profiles/avatar_menu_model.cc
@@ -103,6 +103,7 @@ void AvatarMenuModel::Observe(int type,
const NotificationDetails& details) {
DCHECK_EQ(chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, type);
RebuildMenu();
+ observer_->OnAvatarMenuModelChanged(this);
}
void AvatarMenuModel::RebuildMenu() {
@@ -118,8 +119,6 @@ void AvatarMenuModel::RebuildMenu() {
}
items_.push_back(item);
}
-
- observer_->OnAvatarMenuModelChanged(this);
}
void AvatarMenuModel::ClearMenu() {
« no previous file with comments | « chrome/app/nibs/AvatarMenuItem.xib ('k') | chrome/browser/profiles/avatar_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698