Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc |
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
index 539491f322de4e84dffb23e766f33862bc3c6ed8..90686a083dd4108a224f2ef5234584ecbdfdbfee 100644 |
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
@@ -115,8 +115,7 @@ const int kVerticalSpacing = 16; |
const int kTitleViewNativeWidgetOffset = 8; |
bool IsProfileChooser(profiles::BubbleViewMode mode) { |
- return mode == profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER || |
- mode == profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER; |
+ return mode == profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER; |
} |
// DEPRECATED: New user menu components should use views::BoxLayout instead. |
@@ -533,14 +532,6 @@ void ProfileChooserView::ShowBubble( |
views::View* anchor_view, |
Browser* browser, |
bool is_source_keyboard) { |
- // Don't start creating the view if it would be an empty fast user switcher. |
- // It has to happen here to prevent the view system from creating an empty |
- // container. |
- // Same for material design user menu since fast profile switcher will be |
- // migrated to the left-click menu. |
- if (view_mode == profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER) |
- return; |
- |
if (IsShowing()) { |
if (tutorial_mode != profiles::TUTORIAL_MODE_NONE) { |
profile_bubble_->tutorial_mode_ = tutorial_mode; |
@@ -759,7 +750,6 @@ void ProfileChooserView::ShowView(profiles::BubbleViewMode view_to_display, |
break; |
case profiles::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT: |
case profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER: |
- case profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER: |
layout = CreateSingleColumnLayout(this, kFixedMenuWidth); |
sub_view = CreateProfileChooserView(avatar_menu); |
break; |
@@ -1093,17 +1083,7 @@ views::View* ProfileChooserView::CreateProfileChooserView( |
AvatarMenu* avatar_menu) { |
views::View* view = new views::View(); |
views::GridLayout* layout = CreateSingleColumnLayout(view, kFixedMenuWidth); |
- |
- if (view_mode_ == profiles::BUBBLE_VIEW_MODE_FAST_PROFILE_CHOOSER) { |
- PopulateMinimalProfileChooserView(layout, avatar_menu); |
- // The user is using right-click switching, no need to tell them about it. |
- PrefService* local_state = g_browser_process->local_state(); |
- local_state->SetBoolean( |
- prefs::kProfileAvatarRightClickTutorialDismissed, true); |
- } else { |
- PopulateCompleteProfileChooserView(layout, avatar_menu); |
- } |
- |
+ PopulateCompleteProfileChooserView(layout, avatar_menu); |
sky
2017/03/22 16:57:34
As PopulateCompleteProfileChooserView is only call
jlebel
2017/03/22 17:28:14
Done.
Also, I forgot to remove ProfileChooserView:
|
return view; |
} |