Encode method and error message inside LevelDB::Status message
[chromium-blink-merge.git] / apps / prefs.cc
blob9f77687aa1e61e487df7a5655292b6738d1d69ce
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "apps/prefs.h"
7 #include "apps/app_launcher.h"
8 #include "apps/pref_names.h"
9 #include "base/prefs/pref_registry_simple.h"
11 namespace apps {
13 void RegisterPrefs(PrefRegistrySimple* registry) {
14 // This pref is a cache of the value from the registry the last time it was
15 // checked.
17 // During the pref initialization, if it is impossible to synchronously
18 // determine whether the app launcher is enabled, assume it is disabled.
19 // Anything that needs to know the absolute truth should call
20 // GetIsAppLauncherEnabled().
21 registry->RegisterBooleanPref(prefs::kAppLauncherIsEnabled, false);
23 #if defined(OS_WIN)
24 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, "");
25 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, "");
26 registry->RegisterBooleanPref(prefs::kAppLauncherHasBeenEnabled, false);
27 #endif
29 // Identifies whether we should show the app launcher promo or not.
30 // Now that a field trial also controls the showing, so the promo won't show
31 // unless the pref is set AND the field trial is set to a proper group.
32 registry->RegisterBooleanPref(prefs::kShowAppLauncherPromo, true);
35 } // namespace apps