Chromium Code Reviews| 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 |