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 67ac56a1d892baf206cfc550a2084d09e18c9eac..7626aaf5b5ec5d70db3dc4794503c5fa7c1d59a8 100644 |
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
@@ -864,6 +864,14 @@ views::View* ProfileChooserView::CreateProfileChooserView( |
layout->StartRow(1, 0); |
layout->AddView(current_profile_view); |
+ if (view_mode_ != profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER) { |
+ DCHECK(current_profile_accounts); |
+ layout->StartRow(0, 0); |
+ layout->AddView(new views::Separator(views::Separator::HORIZONTAL)); |
+ layout->StartRow(1, 0); |
+ layout->AddView(current_profile_accounts); |
+ } |
+ |
if (browser_->profile()->IsSupervised()) { |
layout->StartRow(0, 0); |
layout->AddView(new views::Separator(views::Separator::HORIZONTAL)); |
@@ -875,12 +883,6 @@ views::View* ProfileChooserView::CreateProfileChooserView( |
layout->StartRow(1, 0); |
if (switches::IsFastUserSwitching()) |
layout->AddView(CreateOtherProfilesView(other_profiles)); |
- } else { |
- DCHECK(current_profile_accounts); |
- layout->StartRow(0, 0); |
- layout->AddView(new views::Separator(views::Separator::HORIZONTAL)); |
- layout->StartRow(1, 0); |
- layout->AddView(current_profile_accounts); |
} |
layout->StartRow(0, 0); |