Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/browser/chromeos/settings/cros_settings_names.cc

Issue 14306004: Put Kiosk App parameters into device settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
8
9 namespace chromeos { 7 namespace chromeos {
10 8
11 const char kCrosSettingsPrefix[] = "cros."; 9 const char kCrosSettingsPrefix[] = "cros.";
12 10
13 // All cros.accounts.* settings are stored in SignedSettings. 11 // All cros.accounts.* settings are stored in SignedSettings.
14 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI"; 12 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI";
15 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest"; 13 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest";
16 const char kAccountsPrefShowUserNamesOnSignIn[] 14 const char kAccountsPrefShowUserNamesOnSignIn[]
17 = "cros.accounts.showUserNamesOnSignIn"; 15 = "cros.accounts.showUserNamesOnSignIn";
18 const char kAccountsPrefUsers[] = "cros.accounts.users"; 16 const char kAccountsPrefUsers[] = "cros.accounts.users";
19 const char kAccountsPrefEphemeralUsersEnabled[] = 17 const char kAccountsPrefEphemeralUsersEnabled[] =
20 "cros.accounts.ephemeralUsersEnabled"; 18 "cros.accounts.ephemeralUsersEnabled";
21 const char kAccountsPrefDeviceLocalAccounts[] = 19 const char kAccountsPrefDeviceLocalAccounts[] =
22 "cros.accounts.deviceLocalAccounts"; 20 "cros.accounts.deviceLocalAccounts";
21 const char kAccountsPrefDeviceLocalAccountsKeyId[] =
22 "id";
23 const char kAccountsPrefDeviceLocalAccountsKeyType[] =
24 "type";
25 const char kAccountsPrefDeviceLocalAccountsKeyKioskAppId[] =
26 "kiosk_app_id";
27 const char kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL[] =
28 "kiosk_app_id_update_url";
23 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] = 29 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] =
24 "cros.accounts.deviceLocalAccountAutoLoginId"; 30 "cros.accounts.deviceLocalAccountAutoLoginId";
25 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] = 31 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] =
26 "cros.accounts.deviceLocalAccountAutoLoginDelay"; 32 "cros.accounts.deviceLocalAccountAutoLoginDelay";
33 const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] =
34 "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled";
27 35
28 // Name of signed setting persisted on device, writeable only by owner. 36 // Name of signed setting persisted on device, writeable only by owner.
29 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere"; 37 const char kSettingProxyEverywhere[] = "cros.proxy.everywhere";
30 38
31 // All cros.signed.* settings are stored in SignedSettings. 39 // All cros.signed.* settings are stored in SignedSettings.
32 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled"; 40 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled";
33 41
34 // The first constant refers to the user setting editable in the UI. The second 42 // 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 43 // 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 44 // to temporarily change the timezone for the current session and reset it to
(...skipping 25 matching lines...) Expand all
62 // A boolean pref that indicates whether the current location should be reported 70 // A boolean pref that indicates whether the current location should be reported
63 // along with device policy requests. 71 // along with device policy requests.
64 const char kReportDeviceLocation[] = "cros.device_status.report_location"; 72 const char kReportDeviceLocation[] = "cros.device_status.report_location";
65 73
66 // A list of dictionaries, each detailing one extension to install as part of 74 // A list of dictionaries, each detailing one extension to install as part of
67 // the AppPack and including the following fields: 75 // the AppPack and including the following fields:
68 // "extension-id": ID of the extension to install 76 // "extension-id": ID of the extension to install
69 // "update-url": URL to check the extension's version and download location 77 // "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. 78 // "key-checksum": checksum of the extension's CRX public key, encoded in hex.
71 const char kAppPack[] = "cros.app_pack"; 79 const char kAppPack[] = "cros.app_pack";
80 const char kAppPackKeyExtensionId[] = "extension-id";
81 const char kAppPackKeyUpdateUrl[] = "update-url";
72 82
73 // Values from the ScreenSaver proto. Defines the extension ID of the screen 83 // 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. 84 // saver extension and the timeout before the screen saver should be started.
75 const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id"; 85 const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id";
76 const char kScreenSaverTimeout[] = "cros.screen_saver.timeout"; 86 const char kScreenSaverTimeout[] = "cros.screen_saver.timeout";
77 87
78 // Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a 88 // 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 89 // 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. 90 // a warning message informing the user about the pending logout.
81 const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout"; 91 const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout";
(...skipping 10 matching lines...) Expand all
92 102
93 // A boolean pref that indicates whether users are allowed to redeem offers 103 // A boolean pref that indicates whether users are allowed to redeem offers
94 // through Chrome OS Registration. 104 // through Chrome OS Registration.
95 const char kAllowRedeemChromeOsRegistrationOffers[] = 105 const char kAllowRedeemChromeOsRegistrationOffers[] =
96 "cros.echo.allow_redeem_chrome_os_registration_offers"; 106 "cros.echo.allow_redeem_chrome_os_registration_offers";
97 107
98 // A list pref storing the flags that need to be applied to the browser upon 108 // A list pref storing the flags that need to be applied to the browser upon
99 // start-up. 109 // start-up.
100 const char kStartUpFlags[] = "cros.startup_flags"; 110 const char kStartUpFlags[] = "cros.startup_flags";
101 111
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 112 // A string pref for the restrict parameter to be appended to the Variations URL
120 // when pinging the Variations server. 113 // when pinging the Variations server.
121 const char kVariationsRestrictParameter[] = 114 const char kVariationsRestrictParameter[] =
122 "cros.variations_restrict_parameter"; 115 "cros.variations_restrict_parameter";
123 116
124 // A boolean pref that indicates whether attestation is enabled for the device. 117 // A boolean pref that indicates whether attestation is enabled for the device.
125 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled"; 118 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled";
119
126 } // namespace chromeos 120 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/cros_settings_names.h ('k') | chrome/browser/chromeos/settings/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698