Change message loop to UI.
[chromium-blink-merge.git] / chromeos / settings / cros_settings_names.cc
bloba82a254cd99d9e96341ac016de64fa149de5e4ba
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 kAccountsPrefDeviceLocalAccountAutoLoginId[] =
28 "cros.accounts.deviceLocalAccountAutoLoginId";
29 const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] =
30 "cros.accounts.deviceLocalAccountAutoLoginDelay";
31 const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] =
32 "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled";
33 const char kAccountsPrefSupervisedUsersEnabled[] =
34 "cros.accounts.supervisedUsersEnabled";
36 // All cros.signed.* settings are stored in SignedSettings.
37 const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled";
39 // True if auto-update was disabled by the system administrator.
40 const char kUpdateDisabled[] = "cros.system.updateDisabled";
42 // A list of strings which specifies allowed connection types for
43 // update.
44 const char kAllowedConnectionTypesForUpdate[] =
45 "cros.system.allowedConnectionTypesForUpdate";
47 // The first constant refers to the user setting editable in the UI. The second
48 // refers to the timezone policy. This seperation is necessary to allow the user
49 // to temporarily change the timezone for the current session and reset it to
50 // the policy's value on logout.
51 const char kSystemTimezone[] = "cros.system.timezone";
52 const char kSystemTimezonePolicy[] = "cros.system.timezone_policy";
54 // Value of kUse24HourClock user preference of device' owner.
55 // ChromeOS device uses this setting on login screen.
56 const char kSystemUse24HourClock[] = "cros.system.use_24hour_clock";
58 const char kDeviceOwner[] = "cros.device.owner";
60 const char kStatsReportingPref[] = "cros.metrics.reportingEnabled";
62 const char kReleaseChannel[] = "cros.system.releaseChannel";
63 const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated";
65 // A boolean pref that indicates whether OS & firmware version info should be
66 // reported along with device policy requests.
67 const char kReportDeviceVersionInfo[] =
68 "cros.device_status.report_version_info";
70 // A boolean pref that indicates whether device activity times should be
71 // recorded and reported along with device policy requests.
72 const char kReportDeviceActivityTimes[] =
73 "cros.device_status.report_activity_times";
75 // A boolean pref that indicates whether the state of the dev mode switch at
76 // boot should be reported along with device policy requests.
77 const char kReportDeviceBootMode[] = "cros.device_status.report_boot_mode";
79 // A boolean pref that indicates whether the current location should be reported
80 // along with device policy requests.
81 const char kReportDeviceLocation[] = "cros.device_status.report_location";
83 // Determines whether the device reports network interface types and addresses
84 // in device status reports to the device management server.
85 const char kReportDeviceNetworkInterfaces[] =
86 "cros.device_status.report_network_interfaces";
88 // A list of dictionaries, each detailing one extension to install as part of
89 // the AppPack and including the following fields:
90 // "extension-id": ID of the extension to install
91 // "update-url": URL to check the extension's version and download location
92 // "key-checksum": checksum of the extension's CRX public key, encoded in hex.
93 const char kAppPack[] = "cros.app_pack";
94 const char kAppPackKeyExtensionId[] = "extension-id";
95 const char kAppPackKeyUpdateUrl[] = "update-url";
97 // Values from the ScreenSaver proto. Defines the extension ID of the screen
98 // saver extension and the timeout before the screen saver should be started.
99 const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id";
100 const char kScreenSaverTimeout[] = "cros.screen_saver.timeout";
102 // Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a
103 // user is logged out after some period of inactivity as well as the duration of
104 // a warning message informing the user about the pending logout.
105 const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout";
106 const char kIdleLogoutWarningDuration[] = "cros.idle_logout.warning_duration";
108 // Defines the set of URLs to be opened on login to the anonymous account used
109 // if the device is in KIOSK mode.
110 const char kStartUpUrls[] = "cros.start_up_urls";
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
123 // start-up.
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
132 // the device.
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 } // namespace chromeos