exclude TranslateManagerRenderViewHostTest.FetchLanguagesFromTranslateServer unit_tes...
[chromium-blink-merge.git] / chromeos / settings / cros_settings_names.cc
blob18e6882faa461853cec47ea7fcefc54cf8b2ea7a
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 // A string pref that specifies a domain name for the autocomplete option during
43 // user sign-in flow.
44 const char kAccountsPrefLoginScreenDomainAutoComplete[] =
45 "cros.accounts.login_screen_domain_auto_complete";
47 // All cros.signed.* settings are stored in SignedSettings.
48 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled";
50 // True if auto-update was disabled by the system administrator.
51 const char kUpdateDisabled[] = "cros.system.updateDisabled";
53 // A list of strings which specifies allowed connection types for
54 // update.
55 const char kAllowedConnectionTypesForUpdate[] =
56 "cros.system.allowedConnectionTypesForUpdate";
58 // The first constant refers to the user setting editable in the UI. The second
59 // refers to the timezone policy. This seperation is necessary to allow the user
60 // to temporarily change the timezone for the current session and reset it to
61 // the policy's value on logout.
62 const char kSystemTimezone[] = "cros.system.timezone";
63 const char kSystemTimezonePolicy[] = "cros.system.timezone_policy";
65 // Value of kUse24HourClock user preference of device' owner.
66 // ChromeOS device uses this setting on login screen.
67 const char kSystemUse24HourClock[] = "cros.system.use_24hour_clock";
69 const char kDeviceOwner[] = "cros.device.owner";
71 const char kStatsReportingPref[] = "cros.metrics.reportingEnabled";
73 const char kReleaseChannel[] = "cros.system.releaseChannel";
74 const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated";
76 // A boolean pref that indicates whether OS & firmware version info should be
77 // reported along with device policy requests.
78 const char kReportDeviceVersionInfo[] =
79 "cros.device_status.report_version_info";
81 // A boolean pref that indicates whether device activity times should be
82 // recorded and reported along with device policy requests.
83 const char kReportDeviceActivityTimes[] =
84 "cros.device_status.report_activity_times";
86 // A boolean pref that indicates whether the state of the dev mode switch at
87 // boot should be reported along with device policy requests.
88 const char kReportDeviceBootMode[] = "cros.device_status.report_boot_mode";
90 // A boolean pref that indicates whether the current location should be reported
91 // along with device policy requests.
92 const char kReportDeviceLocation[] = "cros.device_status.report_location";
94 // Determines whether the device reports network interface types and addresses
95 // in device status reports to the device management server.
96 const char kReportDeviceNetworkInterfaces[] =
97 "cros.device_status.report_network_interfaces";
99 // Determines whether the device reports recently logged in users in device
100 // status reports to the device management server.
101 const char kReportDeviceUsers[] = "cros.device_status.report_users";
103 // Determines whether the device reports hardware status (CPU utilization,
104 // disk space, etc) in device status reports to the device management server.
105 const char kReportDeviceHardwareStatus[] =
106 "cros.device_status.report_hardware_status";
108 // Determines whether the device reports kiosk session status (app IDs,
109 // versions, etc) in device status reports to the device management server.
110 const char kReportDeviceSessionStatus[] =
111 "cros.device_status.report_session_status";
113 // How frequently device status reports are uploaded, in milliseconds.
114 const char kReportUploadFrequency[] =
115 "cros.device_status.report_upload_frequency";
117 // Determines whether heartbeats should be sent to the policy service via
118 // the GCM channel.
119 const char kHeartbeatEnabled[] = "cros.device_status.heartbeat_enabled";
121 // How frequently heartbeats are sent up, in milliseconds.
122 const char kHeartbeatFrequency[] = "cros.device_status.heartbeat_frequency";
124 // Determines whether system logs should be sent to the management server.
125 const char kLogUploadEnabled[] = "cros.device_status.log_upload_enabled";
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 // A boolean pref that indicates whether the device automatically reboots when
169 // the user initiates a shutdown via an UI element. If set to true, all
170 // shutdown buttons in the UI will be replaced by reboot buttons.
171 const char kRebootOnShutdown[] = "cros.device.reboot_on_shutdown";
173 // An integer pref that specifies the limit of the device's extension cache
174 // size in bytes.
175 const char kExtensionCacheSize[] = "cros.device.extension_cache_size";
177 } // namespace chromeos