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

Unified Diff: apps/prefs.cc

Issue 17261016: When app shortcuts are enabled, do a once-off creation of all shortcuts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: apps/prefs.cc
diff --git a/apps/prefs.cc b/apps/prefs.cc
index 9f77687aa1e61e487df7a5655292b6738d1d69ce..4f5963bd6f10eb3e31300be6af83682b5bb036e7 100644
--- a/apps/prefs.cc
+++ b/apps/prefs.cc
@@ -7,6 +7,7 @@
#include "apps/app_launcher.h"
#include "apps/pref_names.h"
#include "base/prefs/pref_registry_simple.h"
+#include "components/user_prefs/pref_registry_syncable.h"
namespace apps {
@@ -32,4 +33,11 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(prefs::kShowAppLauncherPromo, true);
}
+void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
+ // Indicates whether app shortcuts are enabled.
Matt Giuca 2013/06/20 10:19:18 Can you explain what this is doing? Why are you se
jackhou1 2013/06/20 11:03:22 Yup. It needs to be registered before it can be us
Matt Giuca 2013/06/20 23:42:21 For future reference (don't pull it out of the CQ
+ registry->RegisterBooleanPref(
+ prefs::kAppShortcutsEnabled, false,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+}
+
} // namespace apps

Powered by Google App Engine
This is Rietveld 408576698