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"
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
[] =
23 const char kAccountsPrefDeviceLocalAccountsKeyType
[] =
25 const char kAccountsPrefDeviceLocalAccountsKeyKioskAppId
[] =
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
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 // Determines whether the device reports kiosk session status (app IDs,
104 // versions, etc) in device status reports to the device management server.
105 const char kReportDeviceSessionStatus
[] =
106 "cros.device_status.report_session_status";
108 // How frequently device status reports are uploaded, in milliseconds.
109 const char kReportUploadFrequency
[] =
110 "cros.device_status.report_upload_frequency";
112 // This policy should not appear in the protobuf ever but is used internally to
113 // signal that we are running in a "safe-mode" for policy recovery.
114 const char kPolicyMissingMitigationMode
[] =
115 "cros.internal.policy_mitigation_mode";
117 // A boolean pref that indicates whether users are allowed to redeem offers
118 // through Chrome OS Registration.
119 const char kAllowRedeemChromeOsRegistrationOffers
[] =
120 "cros.echo.allow_redeem_chrome_os_registration_offers";
122 // A list pref storing the flags that need to be applied to the browser upon
124 const char kStartUpFlags
[] = "cros.startup_flags";
126 // A string pref for the restrict parameter to be appended to the Variations URL
127 // when pinging the Variations server.
128 const char kVariationsRestrictParameter
[] =
129 "cros.variations_restrict_parameter";
131 // A boolean pref that indicates whether enterprise attestation is enabled for
133 const char kDeviceAttestationEnabled
[] = "cros.device.attestation_enabled";
135 // A boolean pref that indicates whether attestation for content protection is
136 // enabled for the device.
137 const char kAttestationForContentProtectionEnabled
[] =
138 "cros.device.attestation_for_content_protection_enabled";
140 // The service account identity for device-level service accounts on
141 // enterprise-enrolled devices.
142 const char kServiceAccountIdentity
[] = "cros.service_account_identity";
144 // A boolean pref that indicates whether the device has been disabled by its
145 // owner. If so, the device will show a warning screen and will not allow any
146 // sessions to be started.
147 const char kDeviceDisabled
[] = "cros.device_disabled";
149 // A string pref containing the message that should be shown to the user when
150 // the device is disabled.
151 const char kDeviceDisabledMessage
[] = "cros.disabled_state.message";
153 // A boolean pref that indicates whether the device automatically reboots when
154 // the user initiates a shutdown via an UI element. If set to true, all
155 // shutdown buttons in the UI will be replaced by reboot buttons.
156 const char kRebootOnShutdown
[] = "cros.device.reboot_on_shutdown";
158 } // namespace chromeos