Chromium Code Reviews| 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 f55258026ec657bf0ba3466211ae3fa8ea3bc099..b80ee0eae3ce1747d4e0e58a1b151d467776fe76 100644 |
| --- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
| +++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc |
| @@ -686,6 +686,12 @@ void ProfileChooserView::ShowView(profiles::BubbleViewMode view_to_display, |
| if (view_mode_ != profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER) |
| tutorial_mode_ = profiles::TUTORIAL_MODE_NONE; |
| + if (view_mode_ != profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER || |
| + tutorial_mode_ != profiles::TUTORIAL_MODE_NONE) |
| + profile_bubble_->set_close_on_deactivate(false); |
| + else |
| + profile_bubble_->set_close_on_deactivate(close_on_deactivate_for_testing_); |
| + |
|
Roger Tawa OOO till Jul 10th
2015/05/08 14:51:17
Nit: since this is a multi-line/complex if-then-el
|
| layout->StartRow(1, 0); |
| layout->AddView(sub_view); |
| Layout(); |