Updated DeviceStatusReportRequest to contain new monitoring data.
[chromium-blink-merge.git] / chromeos / settings / cros_settings_names.cc
blob6cee9bc24b93b040dde10970d288db2644226fbc
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 "chromeos/settings/cros_settings_names.h"
7 namespace chromeos {
9 const char kCrosSettingsPrefix[] = "cros.";
11 // All cros.accounts.* settings are stored in SignedSettings.
12 const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI";
13 const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest";
14 const char kAccountsPrefShowUserNamesOnSignIn[]
15 = "cros.accounts.showUserNamesOnSignIn";
16 const char kAccountsPrefUsers[] = "cros.accounts.users";
17 const char kAccountsPrefEphemeralUsersEnabled[] =
18 "cros.accounts.ephemeralUsersEnabled";
19 const char kAccountsPrefDeviceLocalAccounts[] =
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_update_url";
29 const char kAccountsPrefDeviceLocalAccountAutoLoginId[] =
30 "cros.accounts.deviceLocalAccountAutoLoginId";
31 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] =
32 "cros.accounts.deviceLocalAccountAutoLoginDelay";
33 const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] =
34 "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled";
35 const char kAccountsPrefDeviceLocalAccountPromptForNetworkWhenOffline[] =
36 "cros.accounts.deviceLocalAccountPromptForNetworkWhenOffline";
37 const char kAccountsPrefSupervisedUsersEnabled[] =
38 "cros.accounts.supervisedUsersEnabled";
39 const char kAccountsPrefTransferSAMLCookies[] =
40 "cros.accounts.transferSAMLCookies";
42 // All cros.signed.* settings are stored in SignedSettings.
43 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled";
45 // True if auto-update was disabled by the system administrator.
46 const char kUpdateDisabled[] = "cros.system.updateDisabled";
48 // A list of strings which specifies allowed connection types for
49 // update.
50 const char kAllowedConnectionTypesForUpdate[] =
51 "cros.system.allowedConnectionTypesForUpdate";
53 // The first constant refers to the user setting editable in the UI. The second
54 // refers to the timezone policy. This seperation is necessary to allow the user
55 // to temporarily change the timezone for the current session and reset it to
56 // the policy's value on logout.
57 const char kSystemTimezone[] = "cros.system.timezone";
58 const char kSystemTimezonePolicy[] = "cros.system.timezone_policy";
60 // Value of kUse24HourClock user preference of device' owner.
61 // ChromeOS device uses this setting on login screen.
62 const char kSystemUse24HourClock[] = "cros.system.use_24hour_clock";
64 const char kDeviceOwner[] = "cros.device.owner";
66 const char kStatsReportingPref[] = "cros.metrics.reportingEnabled";
68 const char kReleaseChannel[] = "cros.system.releaseChannel";
69 const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated";
71 // A boolean pref that indicates whether OS & firmware version info should be
72 // reported along with device policy requests.
73 const char kReportDeviceVersionInfo[] =
74 "cros.device_status.report_version_info";
76 // A boolean pref that indicates whether device activity times should be
77 // recorded and reported along with device policy requests.
78 const char kReportDeviceActivityTimes[] =
79 "cros.device_status.report_activity_times";
81 // A boolean pref that indicates whether the state of the dev mode switch at
82 // boot should be reported along with device policy requests.
83 const char kReportDeviceBootMode[] = "cros.device_status.report_boot_mode";
85 // A boolean pref that indicates whether the current location should be reported
86 // along with device policy requests.
87 const char kReportDeviceLocation[] = "cros.device_status.report_location";
89 // Determines whether the device reports network interface types and addresses
90 // in device status reports to the device management server.
91 const char kReportDeviceNetworkInterfaces[] =
92 "cros.device_status.report_network_interfaces";
94 // Determines whether the device reports recently logged in users in device
95 // status reports to the device management server.
96 const char kReportDeviceUsers[] = "cros.device_status.report_users";
98 // Determines whether the device reports hardware status (CPU utilization,
99 // disk space, etc) in device status reports to the device management server.
100 const char kReportDeviceHardwareStatus[] =
101 "cros.device_status.report_hardware_status";
103 // A list of dictionaries, each detailing one extension to install as part of
104 // the AppPack and including the following fields:
105 // "extension-id": ID of the extension to install
106 // "update-url": URL to check the extension's version and download location
107 // "key-checksum": checksum of the extension's CRX public key, encoded in hex.
108 const char kAppPack[] = "cros.app_pack";
109 const char kAppPackKeyExtensionId[] = "extension-id";
110 const char kAppPackKeyUpdateUrl[] = "update-url";
112 // Values from the ScreenSaver proto. Defines the extension ID of the screen
113 // saver extension and the timeout before the screen saver should be started.
114 const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id";
115 const char kScreenSaverTimeout[] = "cros.screen_saver.timeout";
117 // Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a
118 // user is logged out after some period of inactivity as well as the duration of
119 // a warning message informing the user about the pending logout.
120 const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout";
121 const char kIdleLogoutWarningDuration[] = "cros.idle_logout.warning_duration";
123 // Defines the set of URLs to be opened on login to the anonymous account used
124 // if the device is in KIOSK mode.
125 const char kStartUpUrls[] = "cros.start_up_urls";
127 // This policy should not appear in the protobuf ever but is used internally to
128 // signal that we are running in a "safe-mode" for policy recovery.
129 const char kPolicyMissingMitigationMode[] =
130 "cros.internal.policy_mitigation_mode";
132 // A boolean pref that indicates whether users are allowed to redeem offers
133 // through Chrome OS Registration.
134 const char kAllowRedeemChromeOsRegistrationOffers[] =
135 "cros.echo.allow_redeem_chrome_os_registration_offers";
137 // A list pref storing the flags that need to be applied to the browser upon
138 // start-up.
139 const char kStartUpFlags[] = "cros.startup_flags";
141 // A string pref for the restrict parameter to be appended to the Variations URL
142 // when pinging the Variations server.
143 const char kVariationsRestrictParameter[] =
144 "cros.variations_restrict_parameter";
146 // A boolean pref that indicates whether enterprise attestation is enabled for
147 // the device.
148 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled";
150 // A boolean pref that indicates whether attestation for content protection is
151 // enabled for the device.
152 const char kAttestationForContentProtectionEnabled[] =
153 "cros.device.attestation_for_content_protection_enabled";
155 // The service account identity for device-level service accounts on
156 // enterprise-enrolled devices.
157 const char kServiceAccountIdentity[] = "cros.service_account_identity";
159 // A boolean pref that indicates whether the device has been disabled by its
160 // owner. If so, the device will show a warning screen and will not allow any
161 // sessions to be started.
162 const char kDeviceDisabled[] = "cros.device_disabled";
164 // A string pref containing the message that should be shown to the user when
165 // the device is disabled.
166 const char kDeviceDisabledMessage[] = "cros.disabled_state.message";
168 } // namespace chromeos