Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Unified Diff: trunk/src/chrome/browser/profiles/profile_window.cc

Issue 464673002: Revert 288817 "[Mac, Win] Only show the user manager tutorial if..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/profiles/profile_window.cc
===================================================================
--- trunk/src/chrome/browser/profiles/profile_window.cc (revision 288827)
+++ trunk/src/chrome/browser/profiles/profile_window.cc (working copy)
@@ -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) {
« no previous file with comments | « trunk/src/chrome/browser/profiles/profile.cc ('k') | trunk/src/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698