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

Unified Diff: chrome/browser/ui/views/avatar_menu_bubble_view.cc

Issue 33753002: Sooper experimental refactoring of the profile info cache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 2 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/avatar_menu_bubble_view.cc
diff --git a/chrome/browser/ui/views/avatar_menu_bubble_view.cc b/chrome/browser/ui/views/avatar_menu_bubble_view.cc
index 401ff60372d9e6615ec3b62e1d638c159b782175..6308fa825daa22408d9d58b54d72ea33ee65caf9 100644
--- a/chrome/browser/ui/views/avatar_menu_bubble_view.cc
+++ b/chrome/browser/ui/views/avatar_menu_bubble_view.cc
@@ -747,9 +747,7 @@ void AvatarMenuBubbleView::InitMenuContents(
void AvatarMenuBubbleView::InitManagedUserContents(
AvatarMenu* avatar_menu) {
// Show the profile of the managed user.
- size_t active_index = avatar_menu->GetActiveProfileIndex();
- const AvatarMenu::Item& item =
- avatar_menu->GetItemAt(active_index);
+ const AvatarMenu::Item& item = avatar_menu->GetActiveProfileItem();
ProfileItemView* item_view = new ProfileItemView(item,
this,
avatar_menu_.get());
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_helper.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698