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

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

Issue 2487553002: Moving new First Run to use per-profile value, rather than simply checking IsChromeFirstRun. (Closed)
Patch Set: Lint Created 4 years, 1 month 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: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 3a69b5e042999d0a461ac0d6f890292d44b5057f..b5da38b1951edf639defdc56cd3d11ea35e4a6a7 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -927,6 +927,11 @@ void ProfileManager::InitProfileUserPrefs(Profile* profile) {
profile->GetPrefs()->SetString(prefs::kSupervisedUserId,
supervised_user_id);
}
+#if !defined(OS_ANDROID)
+ if (profile->IsNewProfile()) {
Peter Kasting 2016/11/20 07:32:09 Nit: No {}
tmartino 2016/11/21 00:27:34 Done
+ profile->GetPrefs()->SetBoolean(prefs::kHasSeenWelcomeUI, false);
+ }
+#endif
}
void ProfileManager::RegisterTestingProfile(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698