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" |
bartfab (slow)
2013/04/25 11:17:28
Nit: No longer used.
Mattias Nissler (ping if slow)
2013/04/26 09:10:05
Done.
| |
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 kAccountsPrefDeviceLocalAccountsKeyKioskAppId[] = | |
24 "kiosk_app_id"; | |
25 const char kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL[] = | |
26 "kiosk_app_id_update_url"; | |
23 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] = | 27 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] = |
24 "cros.accounts.deviceLocalAccountAutoLoginId"; | 28 "cros.accounts.deviceLocalAccountAutoLoginId"; |
25 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] = | 29 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] = |
26 "cros.accounts.deviceLocalAccountAutoLoginDelay"; | 30 "cros.accounts.deviceLocalAccountAutoLoginDelay"; |
31 const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] = | |
32 "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled"; | |
27 | 33 |
28 // Name of signed setting persisted on device, writeable only by owner. | 34 // Name of signed setting persisted on device, writeable only by owner. |
29 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere"; | 35 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere"; |
30 | 36 |
31 // All cros.signed.* settings are stored in SignedSettings. | 37 // All cros.signed.* settings are stored in SignedSettings. |
32 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; | 38 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; |
33 | 39 |
34 // The first constant refers to the user setting editable in the UI. The second | 40 // 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 | 41 // 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 | 42 // to temporarily change the timezone for the current session and reset it to |
(...skipping 25 matching lines...) Expand all Loading... | |
62 // A boolean pref that indicates whether the current location should be reported | 68 // A boolean pref that indicates whether the current location should be reported |
63 // along with device policy requests. | 69 // along with device policy requests. |
64 const char kReportDeviceLocation[] = "cros.device_status.report_location"; | 70 const char kReportDeviceLocation[] = "cros.device_status.report_location"; |
65 | 71 |
66 // A list of dictionaries, each detailing one extension to install as part of | 72 // A list of dictionaries, each detailing one extension to install as part of |
67 // the AppPack and including the following fields: | 73 // the AppPack and including the following fields: |
68 // "extension-id": ID of the extension to install | 74 // "extension-id": ID of the extension to install |
69 // "update-url": URL to check the extension's version and download location | 75 // "update-url": URL to check the extension's version and download location |
70 // "key-checksum": checksum of the extension's CRX public key, encoded in hex. | 76 // "key-checksum": checksum of the extension's CRX public key, encoded in hex. |
71 const char kAppPack[] = "cros.app_pack"; | 77 const char kAppPack[] = "cros.app_pack"; |
78 const char kAppPackKeyExtensionId[] = "extension-id"; | |
79 const char kAppPackKeyUpdateUrl[] = "update-url"; | |
72 | 80 |
73 // Values from the ScreenSaver proto. Defines the extension ID of the screen | 81 // Values from the ScreenSaver proto. Defines the extension ID of the screen |
74 // saver extension and the timeout before the screen saver should be started. | 82 // saver extension and the timeout before the screen saver should be started. |
75 const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id"; | 83 const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id"; |
76 const char kScreenSaverTimeout[] = "cros.screen_saver.timeout"; | 84 const char kScreenSaverTimeout[] = "cros.screen_saver.timeout"; |
77 | 85 |
78 // Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a | 86 // Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a |
79 // user is logged out after some period of inactivity as well as the duration of | 87 // user is logged out after some period of inactivity as well as the duration of |
80 // a warning message informing the user about the pending logout. | 88 // a warning message informing the user about the pending logout. |
81 const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout"; | 89 const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout"; |
(...skipping 10 matching lines...) Expand all Loading... | |
92 | 100 |
93 // A boolean pref that indicates whether users are allowed to redeem offers | 101 // A boolean pref that indicates whether users are allowed to redeem offers |
94 // through Chrome OS Registration. | 102 // through Chrome OS Registration. |
95 const char kAllowRedeemChromeOsRegistrationOffers[] = | 103 const char kAllowRedeemChromeOsRegistrationOffers[] = |
96 "cros.echo.allow_redeem_chrome_os_registration_offers"; | 104 "cros.echo.allow_redeem_chrome_os_registration_offers"; |
97 | 105 |
98 // A list pref storing the flags that need to be applied to the browser upon | 106 // A list pref storing the flags that need to be applied to the browser upon |
99 // start-up. | 107 // start-up. |
100 const char kStartUpFlags[] = "cros.startup_flags"; | 108 const char kStartUpFlags[] = "cros.startup_flags"; |
101 | 109 |
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 | 110 // A string pref for the restrict parameter to be appended to the Variations URL |
120 // when pinging the Variations server. | 111 // when pinging the Variations server. |
121 const char kVariationsRestrictParameter[] = | 112 const char kVariationsRestrictParameter[] = |
122 "cros.variations_restrict_parameter"; | 113 "cros.variations_restrict_parameter"; |
123 | 114 |
124 // A boolean pref that indicates whether attestation is enabled for the device. | 115 // A boolean pref that indicates whether attestation is enabled for the device. |
125 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled"; | 116 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled"; |
117 | |
126 } // namespace chromeos | 118 } // namespace chromeos |
OLD | NEW |