Chromium Code Reviews| 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 20c3b73c6e7ab32ffbe7d03f85cf1de60bb43848..2cef602517c195f4746f2c99202af5ae213ff912 100644 |
| --- a/chrome/browser/ui/views/profile_chooser_view.cc |
| +++ b/chrome/browser/ui/views/profile_chooser_view.cc |
| @@ -18,7 +18,6 @@ |
| #include "chrome/browser/signin/signin_manager_factory.h" |
| #include "chrome/browser/signin/signin_promo.h" |
| #include "chrome/browser/ui/browser.h" |
| -#include "chrome/browser/ui/browser_dialogs.h" |
| #include "chrome/browser/ui/singleton_tabs.h" |
| #include "chrome/browser/ui/views/user_manager_view.h" |
| #include "chrome/common/pref_names.h" |
| @@ -523,7 +522,15 @@ void ProfileChooserView::ButtonPressed(views::Button* sender, |
| size_t active_index = avatar_menu_->GetActiveProfileIndex(); |
| profile_path = avatar_menu_->GetItemAt(active_index).profile_path; |
| } |
| - chrome::ShowUserManager(profile_path); |
| + |
| + // Show the tutorial if it hasn't been shown before. |
| + bool tutorial_shown = browser_->profile()->GetPrefs()->GetBoolean( |
|
msw
2014/03/17 19:06:18
optional nit: cache a PrefService* for use here an
|
| + prefs::kProfileUserManagerTutorialShown); |
| + if (!tutorial_shown) { |
| + browser_->profile()->GetPrefs()->SetBoolean( |
| + prefs::kProfileUserManagerTutorialShown, true); |
| + } |
| + UserManagerView::Show(profile_path, !tutorial_shown); |
| } else if (sender == add_user_button_) { |
| profiles::CreateAndSwitchToNewProfile( |
| browser_->host_desktop_type(), |