Index: chrome/browser/ui/views/profile_chooser_view.cc |
diff --git a/chrome/browser/ui/views/profile_chooser_view.cc b/chrome/browser/ui/views/profile_chooser_view.cc |
index 3c53784f51fe5a2c804d29f8a67a3f2d96ce60a1..7e16f6c51d15008748bb84555182d51d2c26bf73 100644 |
--- a/chrome/browser/ui/views/profile_chooser_view.cc |
+++ b/chrome/browser/ui/views/profile_chooser_view.cc |
@@ -266,8 +266,7 @@ void ProfileChooserView::ShowView(BubbleViewMode view_to_display, |
// The account management view should only be displayed if the active profile |
// is signed in. |
if (view_to_display == ACCOUNT_MANAGEMENT_VIEW) { |
- const AvatarMenu::Item& active_item = avatar_menu->GetItemAt( |
- avatar_menu->GetActiveProfileIndex()); |
+ const AvatarMenu::Item& active_item = avatar_menu->GetActiveProfileItem(); |
DCHECK(active_item.signed_in); |
} |
@@ -392,7 +391,7 @@ void ProfileChooserView::LinkClicked(views::Link* sender, int event_flags) { |
} else { |
DCHECK(sender == change_photo_link_); |
avatar_menu_->EditProfile( |
- avatar_menu_->GetActiveProfileIndex()); |
+ avatar_menu_->GetActiveProfileItem().menu_index); |
} |
} |