OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "apps/prefs.h" | 5 #include "apps/prefs.h" |
6 | 6 |
7 #include "apps/app_launcher.h" | 7 #include "apps/app_launcher.h" |
8 #include "apps/pref_names.h" | 8 #include "apps/pref_names.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "components/user_prefs/pref_registry_syncable.h" | 10 #include "components/user_prefs/pref_registry_syncable.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, ""); | 31 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, ""); |
32 #endif | 32 #endif |
33 | 33 |
34 // Identifies whether we should show the app launcher promo or not. | 34 // Identifies whether we should show the app launcher promo or not. |
35 // Now that a field trial also controls the showing, so the promo won't show | 35 // Now that a field trial also controls the showing, so the promo won't show |
36 // unless the pref is set AND the field trial is set to a proper group. | 36 // unless the pref is set AND the field trial is set to a proper group. |
37 registry->RegisterBooleanPref(prefs::kShowAppLauncherPromo, true); | 37 registry->RegisterBooleanPref(prefs::kShowAppLauncherPromo, true); |
38 } | 38 } |
39 | 39 |
40 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 40 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 41 #if !defined(OS_MACOSX) |
| 42 registry->RegisterBooleanPref( |
| 43 prefs::kAppFullscreenAllowed, true, |
| 44 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 45 #endif |
| 46 |
41 // Indicates whether app shortcuts have been created. | 47 // Indicates whether app shortcuts have been created. |
42 registry->RegisterBooleanPref( | 48 registry->RegisterBooleanPref( |
43 prefs::kShortcutsHaveBeenCreated, false, | 49 prefs::kShortcutsHaveBeenCreated, false, |
44 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 50 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
45 } | 51 } |
46 | 52 |
47 } // namespace apps | 53 } // namespace apps |
OLD | NEW |