OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/settings/cros_settings_names.h" | 5 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 const char kCrosSettingsPrefix[] = "cros."; | 11 const char kCrosSettingsPrefix[] = "cros."; |
12 | 12 |
13 // All cros.accounts.* settings are stored in SignedSettings. | 13 // All cros.accounts.* settings are stored in SignedSettings. |
14 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI"; | 14 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI"; |
15 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest"; | 15 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest"; |
16 const char kAccountsPrefShowUserNamesOnSignIn[] | 16 const char kAccountsPrefShowUserNamesOnSignIn[] |
17 = "cros.accounts.showUserNamesOnSignIn"; | 17 = "cros.accounts.showUserNamesOnSignIn"; |
18 const char kAccountsPrefUsers[] = "cros.accounts.users"; | 18 const char kAccountsPrefUsers[] = "cros.accounts.users"; |
19 const char kAccountsPrefEphemeralUsersEnabled[] = | 19 const char kAccountsPrefEphemeralUsersEnabled[] = |
20 "cros.accounts.ephemeralUsersEnabled"; | 20 "cros.accounts.ephemeralUsersEnabled"; |
21 const char kAccountsPrefDeviceLocalAccounts[] = | 21 const char kAccountsPrefDeviceLocalAccounts[] = |
22 "cros.accounts.deviceLocalAccounts"; | 22 "cros.accounts.deviceLocalAccounts"; |
23 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] = | 23 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] = |
24 "cros.accounts.deviceLocalAccountAutoLoginId"; | 24 "cros.accounts.deviceLocalAccountAutoLoginId"; |
25 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] = | 25 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] = |
26 "cros.accounts.deviceLocalAccountAutoLoginDelay"; | 26 "cros.accounts.deviceLocalAccountAutoLoginDelay"; |
| 27 const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] = |
| 28 "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled"; |
27 | 29 |
28 // Name of signed setting persisted on device, writeable only by owner. | 30 // Name of signed setting persisted on device, writeable only by owner. |
29 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere"; | 31 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere"; |
30 | 32 |
31 // All cros.signed.* settings are stored in SignedSettings. | 33 // All cros.signed.* settings are stored in SignedSettings. |
32 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; | 34 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; |
33 | 35 |
34 // The first constant refers to the user setting editable in the UI. The second | 36 // The first constant refers to the user setting editable in the UI. The second |
35 // refers to the timezone policy. This seperation is necessary to allow the user | 37 // refers to the timezone policy. This seperation is necessary to allow the user |
36 // to temporarily change the timezone for the current session and reset it to | 38 // to temporarily change the timezone for the current session and reset it to |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 94 |
93 // A boolean pref that indicates whether users are allowed to redeem offers | 95 // A boolean pref that indicates whether users are allowed to redeem offers |
94 // through Chrome OS Registration. | 96 // through Chrome OS Registration. |
95 const char kAllowRedeemChromeOsRegistrationOffers[] = | 97 const char kAllowRedeemChromeOsRegistrationOffers[] = |
96 "cros.echo.allow_redeem_chrome_os_registration_offers"; | 98 "cros.echo.allow_redeem_chrome_os_registration_offers"; |
97 | 99 |
98 // A list pref storing the flags that need to be applied to the browser upon | 100 // A list pref storing the flags that need to be applied to the browser upon |
99 // start-up. | 101 // start-up. |
100 const char kStartUpFlags[] = "cros.startup_flags"; | 102 const char kStartUpFlags[] = "cros.startup_flags"; |
101 | 103 |
102 // A prefix for all kiosk app setting names. | |
103 const char kKioskAppSettingsPrefix[] = "cros.kiosk."; | |
104 const int kKioskAppSettingsPrefixLength = | |
105 arraysize(kKioskAppSettingsPrefix) - 1; // exclude NULL terminator. | |
106 | |
107 // A list of available kiosk application IDs. | |
108 const char kKioskApps[] = "cros.kiosk.apps"; | |
109 | |
110 // An app id string of the current auto launch app. Empty string means no auto | |
111 // launch app. Default is empty. | |
112 const char kKioskAutoLaunch[] = "cros.kiosk.auto_launch"; | |
113 | |
114 // A boolean pref of whether the app launch bailout shortcut should be disabled. | |
115 // When set to true, the bailout shortcut is disabled. Default is false. | |
116 const char kKioskDisableBailoutShortcut[] = | |
117 "cros.kiosk.disable_bailout_shortcut"; | |
118 | |
119 // A string pref for the restrict parameter to be appended to the Variations URL | 104 // A string pref for the restrict parameter to be appended to the Variations URL |
120 // when pinging the Variations server. | 105 // when pinging the Variations server. |
121 const char kVariationsRestrictParameter[] = | 106 const char kVariationsRestrictParameter[] = |
122 "cros.variations_restrict_parameter"; | 107 "cros.variations_restrict_parameter"; |
123 | 108 |
124 // A boolean pref that indicates whether attestation is enabled for the device. | 109 // A boolean pref that indicates whether attestation is enabled for the device. |
125 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled"; | 110 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled"; |
| 111 |
126 } // namespace chromeos | 112 } // namespace chromeos |
OLD | NEW |