Apply automatic range checks to content enum types across IPC.
[chromium-blink-merge.git] / chromeos / settings / cros_settings_names.cc
blob4d717fe509e3207ae7d32a3fd4da7e9f8dbb488b
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 // This policy should not appear in the protobuf ever but is used internally to
125 // signal that we are running in a "safe-mode" for policy recovery.
126 const char kPolicyMissingMitigationMode[] =
127 "cros.internal.policy_mitigation_mode";
129 // A boolean pref that indicates whether users are allowed to redeem offers
130 // through Chrome OS Registration.
131 const char kAllowRedeemChromeOsRegistrationOffers[] =
132 "cros.echo.allow_redeem_chrome_os_registration_offers";
134 // A list pref storing the flags that need to be applied to the browser upon
135 // start-up.
136 const char kStartUpFlags[] = "cros.startup_flags";
138 // A string pref for the restrict parameter to be appended to the Variations URL
139 // when pinging the Variations server.
140 const char kVariationsRestrictParameter[] =
141 "cros.variations_restrict_parameter";
143 // A boolean pref that indicates whether enterprise attestation is enabled for
144 // the device.
145 const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled";
147 // A boolean pref that indicates whether attestation for content protection is
148 // enabled for the device.
149 const char kAttestationForContentProtectionEnabled[] =
150 "cros.device.attestation_for_content_protection_enabled";
152 // The service account identity for device-level service accounts on
153 // enterprise-enrolled devices.
154 const char kServiceAccountIdentity[] = "cros.service_account_identity";
156 // A boolean pref that indicates whether the device has been disabled by its
157 // owner. If so, the device will show a warning screen and will not allow any
158 // sessions to be started.
159 const char kDeviceDisabled[] = "cros.device_disabled";
161 // A string pref containing the message that should be shown to the user when
162 // the device is disabled.
163 const char kDeviceDisabledMessage[] = "cros.disabled_state.message";
165 // A boolean pref that indicates whether the device automatically reboots when
166 // the user initiates a shutdown via an UI element. If set to true, all
167 // shutdown buttons in the UI will be replaced by reboot buttons.
168 const char kRebootOnShutdown[] = "cros.device.reboot_on_shutdown";
170 // An integer pref that specifies the limit of the device's extension cache
171 // size in bytes.
172 const char kExtensionCacheSize[] = "cros.device.extension_cache_size";
174 } // namespace chromeos