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

Unified Diff: apps/prefs.cc

Issue 12985002: Add a new App launcher promo to the apps page / NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS review round 4. Created 7 years, 9 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 | « apps/pref_names.cc ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/prefs.cc
diff --git a/apps/prefs.cc b/apps/prefs.cc
index edaf1195813f5bbda9247a8389537af8927d50fe..2685860d703d61dd79c6762ecc94ec1433fec824 100644
--- a/apps/prefs.cc
+++ b/apps/prefs.cc
@@ -20,11 +20,15 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
// GetIsAppLauncherEnabled().
registry->RegisterBooleanPref(prefs::kAppLauncherIsEnabled,
MaybeIsAppLauncherEnabled());
-
#if defined(OS_WIN)
registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, "");
registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, "");
#endif
+
+ // Identifies whether we should show the app launcher promo or not.
+ // Now that a field trial also controls the showing, so the promo won't show
+ // unless the pref is set AND the field trial is set to a proper group.
+ registry->RegisterBooleanPref(prefs::kShowAppLauncherPromo, true);
}
} // namespace apps
« no previous file with comments | « apps/pref_names.cc ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698