blob: ac3369d225e4db02be91dcc8d11bf7906b4f6288 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// Copyright (c) 2012 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.
4
5#include "chrome/browser/chromeos/settings/cros_settings_names.h"
6
7namespace chromeos {
8
9const char kCrosSettingsPrefix[] = "cros.";
10
11// All cros.accounts.* settings are stored in SignedSettings.
12const char kAccountsPrefAllowGuest[] = "cros.accounts.allowBWSI";
13const char kAccountsPrefAllowNewUser[] = "cros.accounts.allowGuest";
14const char kAccountsPrefShowUserNamesOnSignIn[]
15 = "cros.accounts.showUserNamesOnSignIn";
16const char kAccountsPrefUsers[] = "cros.accounts.users";
17const char kAccountsPrefEphemeralUsersEnabled[] =
18 "cros.accounts.ephemeralUsersEnabled";
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000019const char kAccountsPrefDeviceLocalAccounts[] =
20 "cros.accounts.deviceLocalAccounts";
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010021const char kAccountsPrefDeviceLocalAccountsKeyId[] =
22 "id";
23const char kAccountsPrefDeviceLocalAccountsKeyType[] =
24 "type";
25const char kAccountsPrefDeviceLocalAccountsKeyKioskAppId[] =
26 "kiosk_app_id";
27const char kAccountsPrefDeviceLocalAccountsKeyKioskAppUpdateURL[] =
28 "kiosk_app_id_update_url";
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000029const char kAccountsPrefDeviceLocalAccountAutoLoginId[] =
30 "cros.accounts.deviceLocalAccountAutoLoginId";
31const char kAccountsPrefDeviceLocalAccountAutoLoginDelay[] =
32 "cros.accounts.deviceLocalAccountAutoLoginDelay";
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010033const char kAccountsPrefDeviceLocalAccountAutoLoginBailoutEnabled[] =
34 "cros.accounts.deviceLocalAccountAutoLoginBailoutEnabled";
Ben Murdocheb525c52013-07-10 11:40:50 +010035const char kAccountsPrefSupervisedUsersEnabled[] =
36 "cros.accounts.supervisedUsersEnabled";
Torne (Richard Coles)58218062012-11-14 11:43:16 +000037
Torne (Richard Coles)58218062012-11-14 11:43:16 +000038// All cros.signed.* settings are stored in SignedSettings.
39const char kSignedDataRoamingEnabled[] = "cros.signed.data_roaming_enabled";
40
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010041// True if auto-update was disabled by the system administrator.
42const char kUpdateDisabled[] = "cros.system.updateDisabled";
43
44// A list of strings which specifies allowed connection types for
45// update.
46const char kAllowedConnectionTypesForUpdate[] =
47 "cros.system.allowedConnectionTypesForUpdate";
48
Torne (Richard Coles)58218062012-11-14 11:43:16 +000049// The first constant refers to the user setting editable in the UI. The second
50// refers to the timezone policy. This seperation is necessary to allow the user
51// to temporarily change the timezone for the current session and reset it to
52// the policy's value on logout.
53const char kSystemTimezone[] = "cros.system.timezone";
54const char kSystemTimezonePolicy[] = "cros.system.timezone_policy";
55
Ben Murdochbb1529c2013-08-08 10:24:53 +010056// Value of kUse24HourClock user preference of device' owner.
57// ChromeOS device uses this setting on login screen.
58const char kSystemUse24HourClock[] = "cros.system.use_24hour_clock";
59
Torne (Richard Coles)58218062012-11-14 11:43:16 +000060const char kDeviceOwner[] = "cros.device.owner";
61
62const char kStatsReportingPref[] = "cros.metrics.reportingEnabled";
63
64const char kReleaseChannel[] = "cros.system.releaseChannel";
65const char kReleaseChannelDelegated[] = "cros.system.releaseChannelDelegated";
66
67// A boolean pref that indicates whether OS & firmware version info should be
68// reported along with device policy requests.
69const char kReportDeviceVersionInfo[] =
70 "cros.device_status.report_version_info";
71
72// A boolean pref that indicates whether device activity times should be
73// recorded and reported along with device policy requests.
74const char kReportDeviceActivityTimes[] =
75 "cros.device_status.report_activity_times";
76
77// A boolean pref that indicates whether the state of the dev mode switch at
78// boot should be reported along with device policy requests.
79const char kReportDeviceBootMode[] = "cros.device_status.report_boot_mode";
80
81// A boolean pref that indicates whether the current location should be reported
82// along with device policy requests.
83const char kReportDeviceLocation[] = "cros.device_status.report_location";
84
Ben Murdoch7dbb3d52013-07-17 14:55:54 +010085// Determines whether the device reports network interface types and addresses
86// in device status reports to the device management server.
87const char kReportDeviceNetworkInterfaces[] =
88 "cros.device_status.report_network_interfaces";
89
Torne (Richard Coles)58218062012-11-14 11:43:16 +000090// A list of dictionaries, each detailing one extension to install as part of
91// the AppPack and including the following fields:
92// "extension-id": ID of the extension to install
93// "update-url": URL to check the extension's version and download location
94// "key-checksum": checksum of the extension's CRX public key, encoded in hex.
95const char kAppPack[] = "cros.app_pack";
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010096const char kAppPackKeyExtensionId[] = "extension-id";
97const char kAppPackKeyUpdateUrl[] = "update-url";
Torne (Richard Coles)58218062012-11-14 11:43:16 +000098
99// Values from the ScreenSaver proto. Defines the extension ID of the screen
100// saver extension and the timeout before the screen saver should be started.
101const char kScreenSaverExtensionId[] = "cros.screen_saver.extension_id";
102const char kScreenSaverTimeout[] = "cros.screen_saver.timeout";
103
104// Values from the ForcedLogoutTimeouts proto. Defines the timeouts before a
105// user is logged out after some period of inactivity as well as the duration of
106// a warning message informing the user about the pending logout.
107const char kIdleLogoutTimeout[] = "cros.idle_logout.timeout";
108const char kIdleLogoutWarningDuration[] = "cros.idle_logout.warning_duration";
109
110// Defines the set of URLs to be opened on login to the anonymous account used
111// if the device is in KIOSK mode.
112const char kStartUpUrls[] = "cros.start_up_urls";
113
114// This policy should not appear in the protobuf ever but is used internally to
115// signal that we are running in a "safe-mode" for policy recovery.
116const char kPolicyMissingMitigationMode[] =
117 "cros.internal.policy_mitigation_mode";
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000118
119// A boolean pref that indicates whether users are allowed to redeem offers
120// through Chrome OS Registration.
121const char kAllowRedeemChromeOsRegistrationOffers[] =
122 "cros.echo.allow_redeem_chrome_os_registration_offers";
123
124// A list pref storing the flags that need to be applied to the browser upon
125// start-up.
126const char kStartUpFlags[] = "cros.startup_flags";
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100127
128// A string pref for the restrict parameter to be appended to the Variations URL
129// when pinging the Variations server.
130const char kVariationsRestrictParameter[] =
131 "cros.variations_restrict_parameter";
132
133// A boolean pref that indicates whether attestation is enabled for the device.
134const char kDeviceAttestationEnabled[] = "cros.device.attestation_enabled";
135
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000136} // namespace chromeos