Index: apps/prefs.cc |
diff --git a/apps/prefs.cc b/apps/prefs.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b883fbb456c23e89191057cfba300fc9a1834a88 |
--- /dev/null |
+++ b/apps/prefs.cc |
@@ -0,0 +1,25 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "apps/prefs.h" |
+ |
+#include "apps/app_launcher.h" |
+#include "apps/pref_names.h" |
+#include "base/prefs/pref_registry_simple.h" |
+ |
+namespace apps { |
+ |
+void RegisterPrefs(PrefRegistrySimple* registry) { |
+ // This pref is a cache of the value from the registry the last time it was |
+ // checked. |
+ // |
+ // During the pref initialization, if it is impossible to synchronously |
+ // determine whether the app launcher is enabled, assume it is disabled. |
+ // Anything that needs to know the absolute truth should call |
+ // GetIsAppLauncherEnabled(). |
+ registry->RegisterBooleanPref(prefs::kAppLauncherIsEnabled, |
+ MaybeIsAppLauncherEnabled()); |
+} |
+ |
+} // namespace apps |