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

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

Issue 454153002: [Mac, Win] Only show the user manager tutorial if "See what's new" is clicked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase all the time 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_window.cc
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc
index a4d6af273bcad0afdc03decb188ae56d5d6c5568..928f44839afccd94668a717b87f17813743717be 100644
--- a/chrome/browser/profiles/profile_window.cc
+++ b/chrome/browser/profiles/profile_window.cc
@@ -303,19 +303,7 @@ void ShowUserManagerMaybeWithTutorial(Profile* profile) {
chrome::ShowUserManager(base::FilePath());
return;
}
- // 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);
- }
+ chrome::ShowUserManagerWithTutorial(profiles::USER_MANAGER_TUTORIAL_OVERVIEW);
}
void EnableNewProfileManagementPreview(Profile* profile) {
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698