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()); |