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

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: Address comments. Fix tests. 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
« no previous file with comments | « apps/prefs.h ('k') | apps/shortcut_manager.h » ('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 9f77687aa1e61e487df7a5655292b6738d1d69ce..4d7ca675c16a7f0eb8be8b82d00ae2312ce0114a 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 have been created.
+ registry->RegisterBooleanPref(
+ prefs::kShortcutsHaveBeenCreated, false,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+}
+
} // namespace apps
« no previous file with comments | « apps/prefs.h ('k') | apps/shortcut_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698