Index: chrome/browser/profiles/profile_window.cc |
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc |
index 928f44839afccd94668a717b87f17813743717be..a4d6af273bcad0afdc03decb188ae56d5d6c5568 100644 |
--- a/chrome/browser/profiles/profile_window.cc |
+++ b/chrome/browser/profiles/profile_window.cc |
@@ -303,7 +303,19 @@ |
chrome::ShowUserManager(base::FilePath()); |
return; |
} |
- chrome::ShowUserManagerWithTutorial(profiles::USER_MANAGER_TUTORIAL_OVERVIEW); |
+ // Show the tutorial if the profile has not shown it before. |
+ PrefService* pref_service = profile->GetPrefs(); |
+ bool tutorial_shown = pref_service->GetBoolean( |
+ prefs::kProfileUserManagerTutorialShown); |
+ if (!tutorial_shown) |
+ pref_service->SetBoolean(prefs::kProfileUserManagerTutorialShown, true); |
+ |
+ if (tutorial_shown) { |
+ chrome::ShowUserManager(profile->GetPath()); |
+ } else { |
+ chrome::ShowUserManagerWithTutorial( |
+ profiles::USER_MANAGER_TUTORIAL_OVERVIEW); |
+ } |
} |
void EnableNewProfileManagementPreview(Profile* profile) { |