chromeos: Add separate screen dim/off delays for lock screen
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blobe2bd2926c54da0bde5388299f89f1fa35ffa0dfe
1 // 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.
5 #include "chrome/common/pref_names.h"
7 #include "base/basictypes.h"
8 #include "chrome/common/pref_font_webkit_names.h"
10 namespace prefs {
12 // *************** PROFILE PREFS ***************
13 // These are attached to the user profile
15 // A string property indicating whether default apps should be installed
16 // in this profile. Use the value "install" to enable defaults apps, or
17 // "noinstall" to disable them. This property is usually set in the
18 // master_preferences and copied into the profile preferences on first run.
19 // Defaults apps are installed only when creating a new profile.
20 const char kDefaultApps[] = "default_apps";
22 // Whether we have installed default apps yet in this profile.
23 const char kDefaultAppsInstalled[] = "default_apps_installed";
25 // Disables screenshot accelerators and extension APIs.
26 // This setting resides both in profile prefs and local state. Accelerator
27 // handling code reads local state, while extension APIs use profile pref.
28 const char kDisableScreenshots[] = "disable_screenshots";
30 // If set to true profiles are created in ephemeral mode and do not store their
31 // data in the profile folder on disk but only in memory.
32 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
34 // A boolean specifying whether the New Tab page is the home page or not.
35 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
37 // This is the URL of the page to load when opening new tabs.
38 const char kHomePage[] = "homepage";
40 // An integer that keeps track of the profile icon version. This allows us to
41 // determine the state of the profile icon for icon format changes.
42 const char kProfileIconVersion[] = "profile.icon_version";
44 // Used to determine if the last session exited cleanly. Set to false when
45 // first opened, and to true when closing. On startup if the value is false,
46 // it means the profile didn't exit cleanly.
47 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards
48 // compatibility.
49 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
51 // A string pref whose values is one of the values defined by
52 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
53 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
54 // shutdown. Used to determine the exit type the last time the profile was open.
55 const char kSessionExitType[] = "profile.exit_type";
57 // An integer pref. Holds one of several values:
58 // 0: (deprecated) open the homepage on startup.
59 // 1: restore the last session.
60 // 2: this was used to indicate a specific session should be restored. It is
61 // no longer used, but saved to avoid conflict with old preferences.
62 // 3: unused, previously indicated the user wants to restore a saved session.
63 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
64 // 5: open the New Tab Page on startup.
65 const char kRestoreOnStartup[] = "session.restore_on_startup";
67 // A preference to keep track of whether we have already checked whether we
68 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
69 // We only need to do this check once, on upgrade from m18 or lower to m19 or
70 // higher.
71 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
73 // Serialized migration time of kURLsToRestoreOnStartup (see
74 // base::Time::ToInternalValue for details on serialization format).
75 const char kRestoreStartupURLsMigrationTime[] =
76 "session.startup_urls_migration_time";
78 // The URLs to restore on startup or when the home button is pressed. The URLs
79 // are only restored on startup if kRestoreOnStartup is 4.
80 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
82 // Old startup url pref name for kURLsToRestoreOnStartup.
83 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
85 // Stores the email address associated with the google account of the custodian
86 // of the supervised user, set when the supervised user is created.
87 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
89 // Stores the display name associated with the google account of the custodian
90 // of the supervised user, updated (if possible) each time the supervised user
91 // starts a session.
92 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
94 // Stores the URL of the profile image associated with the google account of the
95 // custodian of the supervised user.
96 const char kSupervisedUserCustodianProfileImageURL[] =
97 "profile.managed.custodian_profile_image_url";
99 // Stores the URL of the profile associated with the google account of the
100 // custodian of the supervised user.
101 const char kSupervisedUserCustodianProfileURL[] =
102 "profile.managed.custodian_profile_url";
104 // Maps host names to whether the host is manually allowed or blocked.
105 const char kSupervisedUserManualHosts[] = "profile.managed.manual_hosts";
107 // Maps URLs to whether the URL is manually allowed or blocked.
108 const char kSupervisedUserManualURLs[] = "profile.managed.manual_urls";
110 // Stores the email address associated with the google account of the secondary
111 // custodian of the supervised user, set when the supervised user is created.
112 const char kSupervisedUserSecondCustodianEmail[] =
113 "profile.managed.second_custodian_email";
115 // Stores the display name associated with the google account of the secondary
116 // custodian of the supervised user, updated (if possible) each time the
117 // supervised user starts a session.
118 const char kSupervisedUserSecondCustodianName[] =
119 "profile.managed.second_custodian_name";
121 // Stores the URL of the profile image associated with the google account of the
122 // secondary custodian of the supervised user.
123 const char kSupervisedUserSecondCustodianProfileImageURL[] =
124 "profile.managed.second_custodian_profile_image_url";
126 // Stores the URL of the profile associated with the google account of the
127 // secondary custodian of the supervised user.
128 const char kSupervisedUserSecondCustodianProfileURL[] =
129 "profile.managed.second_custodian_profile_url";
131 // Stores settings that can be modified both by a supervised user and their
132 // manager. See SupervisedUserSharedSettingsService for a description of
133 // the format.
134 const char kSupervisedUserSharedSettings[] = "profile.managed.shared_settings";
136 // The application locale.
137 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
138 // and user's profile. Global property determines locale of login screen,
139 // while user's profile determines his personal locale preference.
140 const char kApplicationLocale[] = "intl.app_locale";
141 #if defined(OS_CHROMEOS)
142 // Locale preference of device' owner. ChromeOS device appears in this locale
143 // after startup/wakeup/signout.
144 const char kOwnerLocale[] = "intl.owner_locale";
145 // Locale accepted by user. Non-syncable.
146 // Used to determine whether we need to show Locale Change notification.
147 const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
148 // Non-syncable item.
149 // It is used in two distinct ways.
150 // (1) Used for two-step initialization of locale in ChromeOS
151 // because synchronization of kApplicationLocale is not instant.
152 // (2) Used to detect locale change. Locale change is detected by
153 // LocaleChangeGuard in case values of kApplicationLocaleBackup and
154 // kApplicationLocale are both non-empty and differ.
155 // Following is a table showing how state of those prefs may change upon
156 // common real-life use cases:
157 // AppLocale Backup Accepted
158 // Initial login - A -
159 // Sync B A -
160 // Accept (B) B B B
161 // -----------------------------------------------------------
162 // Initial login - A -
163 // No sync and second login A A -
164 // Change options B B -
165 // -----------------------------------------------------------
166 // Initial login - A -
167 // Sync A A -
168 // Locale changed on login screen A C -
169 // Accept (A) A A A
170 // -----------------------------------------------------------
171 // Initial login - A -
172 // Sync B A -
173 // Revert A A -
174 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
175 #endif
177 // The default character encoding to assume for a web page in the
178 // absence of MIME charset specification
179 const char kDefaultCharset[] = "intl.charset_default";
181 // The value to use for Accept-Languages HTTP header when making an HTTP
182 // request.
183 const char kAcceptLanguages[] = "intl.accept_languages";
185 // The value to use for showing locale-dependent encoding list for different
186 // locale, it's initialized from the corresponding string resource that is
187 // stored in non-translatable part of the resource bundle.
188 const char kStaticEncodings[] = "intl.static_encodings";
190 // If these change, the corresponding enums in the extension API
191 // experimental.fontSettings.json must also change.
192 const char* const kWebKitScriptsForFontFamilyMaps[] = {
193 #define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
194 #include "chrome/common/pref_font_script_names-inl.h"
195 ALL_FONT_SCRIPTS("unused param")
196 #undef EXPAND_SCRIPT_FONT
199 const size_t kWebKitScriptsForFontFamilyMapsLength =
200 arraysize(kWebKitScriptsForFontFamilyMaps);
202 // Strings for WebKit font family preferences. If these change, the pref prefix
203 // in pref_names_util.cc and the pref format in font_settings_api.cc must also
204 // change.
205 const char kWebKitStandardFontFamilyMap[] =
206 WEBKIT_WEBPREFS_FONTS_STANDARD;
207 const char kWebKitFixedFontFamilyMap[] =
208 WEBKIT_WEBPREFS_FONTS_FIXED;
209 const char kWebKitSerifFontFamilyMap[] =
210 WEBKIT_WEBPREFS_FONTS_SERIF;
211 const char kWebKitSansSerifFontFamilyMap[] =
212 WEBKIT_WEBPREFS_FONTS_SANSERIF;
213 const char kWebKitCursiveFontFamilyMap[] =
214 WEBKIT_WEBPREFS_FONTS_CURSIVE;
215 const char kWebKitFantasyFontFamilyMap[] =
216 WEBKIT_WEBPREFS_FONTS_FANTASY;
217 const char kWebKitPictographFontFamilyMap[] =
218 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
219 const char kWebKitStandardFontFamilyArabic[] =
220 "webkit.webprefs.fonts.standard.Arab";
221 const char kWebKitFixedFontFamilyArabic[] =
222 "webkit.webprefs.fonts.fixed.Arab";
223 const char kWebKitSerifFontFamilyArabic[] =
224 "webkit.webprefs.fonts.serif.Arab";
225 const char kWebKitSansSerifFontFamilyArabic[] =
226 "webkit.webprefs.fonts.sansserif.Arab";
227 const char kWebKitStandardFontFamilyCyrillic[] =
228 "webkit.webprefs.fonts.standard.Cyrl";
229 const char kWebKitFixedFontFamilyCyrillic[] =
230 "webkit.webprefs.fonts.fixed.Cyrl";
231 const char kWebKitSerifFontFamilyCyrillic[] =
232 "webkit.webprefs.fonts.serif.Cyrl";
233 const char kWebKitSansSerifFontFamilyCyrillic[] =
234 "webkit.webprefs.fonts.sansserif.Cyrl";
235 const char kWebKitStandardFontFamilyGreek[] =
236 "webkit.webprefs.fonts.standard.Grek";
237 const char kWebKitFixedFontFamilyGreek[] =
238 "webkit.webprefs.fonts.fixed.Grek";
239 const char kWebKitSerifFontFamilyGreek[] =
240 "webkit.webprefs.fonts.serif.Grek";
241 const char kWebKitSansSerifFontFamilyGreek[] =
242 "webkit.webprefs.fonts.sansserif.Grek";
243 const char kWebKitStandardFontFamilyJapanese[] =
244 "webkit.webprefs.fonts.standard.Jpan";
245 const char kWebKitFixedFontFamilyJapanese[] =
246 "webkit.webprefs.fonts.fixed.Jpan";
247 const char kWebKitSerifFontFamilyJapanese[] =
248 "webkit.webprefs.fonts.serif.Jpan";
249 const char kWebKitSansSerifFontFamilyJapanese[] =
250 "webkit.webprefs.fonts.sansserif.Jpan";
251 const char kWebKitStandardFontFamilyKorean[] =
252 "webkit.webprefs.fonts.standard.Hang";
253 const char kWebKitFixedFontFamilyKorean[] =
254 "webkit.webprefs.fonts.fixed.Hang";
255 const char kWebKitSerifFontFamilyKorean[] =
256 "webkit.webprefs.fonts.serif.Hang";
257 const char kWebKitSansSerifFontFamilyKorean[] =
258 "webkit.webprefs.fonts.sansserif.Hang";
259 const char kWebKitCursiveFontFamilyKorean[] =
260 "webkit.webprefs.fonts.cursive.Hang";
261 const char kWebKitStandardFontFamilySimplifiedHan[] =
262 "webkit.webprefs.fonts.standard.Hans";
263 const char kWebKitFixedFontFamilySimplifiedHan[] =
264 "webkit.webprefs.fonts.fixed.Hans";
265 const char kWebKitSerifFontFamilySimplifiedHan[] =
266 "webkit.webprefs.fonts.serif.Hans";
267 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
268 "webkit.webprefs.fonts.sansserif.Hans";
269 const char kWebKitStandardFontFamilyTraditionalHan[] =
270 "webkit.webprefs.fonts.standard.Hant";
271 const char kWebKitFixedFontFamilyTraditionalHan[] =
272 "webkit.webprefs.fonts.fixed.Hant";
273 const char kWebKitSerifFontFamilyTraditionalHan[] =
274 "webkit.webprefs.fonts.serif.Hant";
275 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
276 "webkit.webprefs.fonts.sansserif.Hant";
278 // WebKit preferences.
279 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
280 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
281 const char kWebKitShrinksStandaloneImagesToFit[] =
282 "webkit.webprefs.shrinks_standalone_images_to_fit";
283 const char kWebKitUsesUniversalDetector[] =
284 "webkit.webprefs.uses_universal_detector";
285 const char kWebKitTextAreasAreResizable[] =
286 "webkit.webprefs.text_areas_are_resizable";
287 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
288 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
289 const char kWebKitAllowDisplayingInsecureContent[] =
290 "webkit.webprefs.allow_displaying_insecure_content";
291 const char kWebKitAllowRunningInsecureContent[] =
292 "webkit.webprefs.allow_running_insecure_content";
293 #if defined(OS_ANDROID)
294 const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
295 const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
296 const char kWebKitPasswordEchoEnabled[] =
297 "webkit.webprefs.password_echo_enabled";
298 #endif
300 const char kWebKitCommonScript[] = "Zyyy";
301 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
302 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
303 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
304 const char kWebKitSansSerifFontFamily[] =
305 "webkit.webprefs.fonts.sansserif.Zyyy";
306 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
307 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
308 const char kWebKitPictographFontFamily[] =
309 "webkit.webprefs.fonts.pictograph.Zyyy";
310 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
311 const char kWebKitDefaultFixedFontSize[] =
312 "webkit.webprefs.default_fixed_font_size";
313 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
314 const char kWebKitMinimumLogicalFontSize[] =
315 "webkit.webprefs.minimum_logical_font_size";
316 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
317 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
318 "webkit.webprefs.javascript_can_open_windows_automatically";
319 const char kWebKitLoadsImagesAutomatically[] =
320 "webkit.webprefs.loads_images_automatically";
321 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
323 // Boolean that is true when SafeBrowsing is enabled.
324 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
326 // Boolean that tell us whether Safe Browsing extended reporting is enabled.
327 const char kSafeBrowsingExtendedReportingEnabled[] =
328 "safebrowsing.extended_reporting_enabled";
330 // Boolean that is true when the SafeBrowsing interstitial should not allow
331 // users to proceed anyway.
332 const char kSafeBrowsingProceedAnywayDisabled[] =
333 "safebrowsing.proceed_anyway_disabled";
335 // A dictionary mapping incident types to a dict of incident key:digest pairs.
336 const char kSafeBrowsingIncidentsSent[] = "safebrowsing.incidents_sent";
338 // Enum that specifies whether Incognito mode is:
339 // 0 - Enabled. Default behaviour. Default mode is available on demand.
340 // 1 - Disabled. Used cannot browse pages in Incognito mode.
341 // 2 - Forced. All pages/sessions are forced into Incognito.
342 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
344 // Boolean that is true when Suggest support is enabled.
345 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
347 #if defined(OS_ANDROID)
348 // String indicating the Contextual Search enabled state.
349 // "false" - opt-out (disabled)
350 // "" (empty string) - undecided
351 // "true" - opt-in (enabled)
352 const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
353 #endif
355 // Boolean that indicates whether the browser should put up a confirmation
356 // window when the user is attempting to quit. Mac only.
357 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
359 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
360 // blocking policy. This has been superseded by kDefaultContentSettings +
361 // kBlockThirdPartyCookies.
362 // 0 - allow all cookies.
363 // 1 - block third-party cookies
364 // 2 - block all cookies
365 const char kCookieBehavior[] = "security.cookie_behavior";
367 // Boolean which specifies whether we should ask the user if we should download
368 // a file (true) or just download it automatically.
369 const char kPromptForDownload[] = "download.prompt_for_download";
371 // A boolean pref set to true if we're using Link Doctor error pages.
372 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
374 // OBSOLETE: new pref now stored with user prefs instead of profile, as
375 // kDnsPrefetchingStartupList.
376 const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
378 // An adaptively identified list of domain names to be pre-fetched during the
379 // next startup, based on what was actually needed during this startup.
380 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
382 // OBSOLETE: new pref now stored with user prefs instead of profile, as
383 // kDnsPrefetchingHostReferralList.
384 const char kDnsHostReferralList[] = "HostReferralList";
386 // A list of host names used to fetch web pages, and their commonly used
387 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
388 // preconnecting to, such sub-resource hostnames).
389 // This list is adaptively grown and pruned.
390 const char kDnsPrefetchingHostReferralList[] =
391 "dns_prefetching.host_referral_list";
393 // Disables the SPDY protocol.
394 const char kDisableSpdy[] = "spdy.disabled";
396 // Prefs for persisting HttpServerProperties.
397 const char kHttpServerProperties[] = "net.http_server_properties";
399 // Prefs for server names that support SPDY protocol.
400 const char kSpdyServers[] = "spdy.servers";
402 // Prefs for servers that support Alternate-Protocol.
403 const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
405 // Disables the listed protocol schemes.
406 const char kDisabledSchemes[] = "protocol.disabled_schemes";
408 #if defined(OS_ANDROID) || defined(OS_IOS)
409 // Last time that a check for cloud policy management was done. This time is
410 // recorded on Android so that retries aren't attempted on every startup.
411 // Instead the cloud policy registration is retried at least 1 or 3 days later.
412 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
413 #endif
415 // Prefix URL for the experimental Instant ZeroSuggest provider.
416 const char kInstantUIZeroSuggestUrlPrefix[] =
417 "instant_ui.zero_suggest_url_prefix";
419 // Used to migrate preferences from local state to user preferences to
420 // enable multiple profiles.
421 // BITMASK with possible values (see browser_prefs.cc for enum):
422 // 0: No preferences migrated.
423 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
424 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
425 // kBrowserWindowPlacement
426 const char kMultipleProfilePrefMigration[] =
427 "local_state.multiple_profile_prefs_version";
429 // A boolean pref set to true if prediction of network actions is allowed.
430 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
431 // of web pages, and resource prefetching.
432 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
433 // preferences are not lost.
434 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
435 // is functioning as per crbug.com/334602.
436 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
438 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
439 // if prediction of network actions is allowed, depending on network type.
440 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
441 // of web pages, and resource prefetching.
442 // TODO(bnc): Implement this preference as per crbug.com/334602.
443 const char kNetworkPredictionOptions[] = "net.network_prediction_options";
445 // An integer representing the state of the default apps installation process.
446 // This value is persisted in the profile's user preferences because the process
447 // is async, and the user may have stopped chrome in the middle. The next time
448 // the profile is opened, the process will continue from where it left off.
450 // See possible values in external_provider_impl.cc.
451 const char kDefaultAppsInstallState[] = "default_apps_install_state";
453 // A boolean pref set to true if the Chrome Web Store icons should be hidden
454 // from the New Tab Page and app launcher.
455 const char kHideWebStoreIcon[] = "hide_web_store_icon";
457 #if defined(OS_CHROMEOS)
458 // A dictionary pref to hold the mute setting for all the currently known
459 // audio devices.
460 const char kAudioDevicesMute[] = "settings.audio.devices.mute";
462 // A dictionary pref storing the volume settings for all the currently known
463 // audio devices.
464 const char kAudioDevicesVolumePercent[] =
465 "settings.audio.devices.volume_percent";
467 // An integer pref to initially mute volume if 1. This pref is ignored if
468 // |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
469 // when the policy is lifted the original mute state is restored. This setting
470 // is here only for migration purposes now. It is being replaced by the
471 // |kAudioDevicesMute| setting.
472 const char kAudioMute[] = "settings.audio.mute";
474 // A double pref storing the user-requested volume. This setting is here only
475 // for migration purposes now. It is being replaced by the
476 // |kAudioDevicesVolumePercent| setting.
477 const char kAudioVolumePercent[] = "settings.audio.volume_percent";
479 // A boolean pref set to true if touchpad tap-to-click is enabled.
480 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
482 // A boolean pref set to true if touchpad tap-dragging is enabled.
483 const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
485 // A boolean pref set to true if touchpad three-finger-click is enabled.
486 const char kEnableTouchpadThreeFingerClick[] =
487 "settings.touchpad.enable_three_finger_click";
489 // A boolean pref set to true if touchpad natural scrolling is enabled.
490 const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
492 // A boolean pref set to true if primary mouse button is the left button.
493 const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
495 // A integer pref for the touchpad sensitivity.
496 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
498 // A integer pref for the touchpad sensitivity.
499 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
501 // A boolean pref set to true if time should be displayed in 24-hour clock.
502 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
504 // A boolean pref to disable Google Drive integration.
505 // The pref prefix should remain as "gdata" for backward compatibility.
506 const char kDisableDrive[] = "gdata.disabled";
508 // A boolean pref to disable Drive over cellular connections.
509 // The pref prefix should remain as "gdata" for backward compatibility.
510 const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
512 // A boolean pref to disable hosted files on Drive.
513 // The pref prefix should remain as "gdata" for backward compatibility.
514 const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
516 // A string pref set to the current input method.
517 const char kLanguageCurrentInputMethod[] =
518 "settings.language.current_input_method";
520 // A string pref set to the previous input method.
521 const char kLanguagePreviousInputMethod[] =
522 "settings.language.previous_input_method";
524 // A string pref (comma-separated list) set to the "next engine in menu"
525 // hot-key lists.
526 const char kLanguageHotkeyNextEngineInMenu[] =
527 "settings.language.hotkey_next_engine_in_menu";
529 // A string pref (comma-separated list) set to the "previous engine"
530 // hot-key lists.
531 const char kLanguageHotkeyPreviousEngine[] =
532 "settings.language.hotkey_previous_engine";
534 // A string pref (comma-separated list) set to the preferred language IDs
535 // (ex. "en-US,fr,ko").
536 const char kLanguagePreferredLanguages[] =
537 "settings.language.preferred_languages";
538 const char kLanguagePreferredLanguagesSyncable[] =
539 "settings.language.preferred_languages_syncable";
541 // A string pref (comma-separated list) set to the preloaded (active) input
542 // method IDs (ex. "pinyin,mozc").
543 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
544 const char kLanguagePreloadEnginesSyncable[] =
545 "settings.language.preload_engines_syncable";
547 // A string pref (comma-separated list) set to the extension IMEs to be enabled.
548 const char kLanguageEnabledExtensionImes[] =
549 "settings.language.enabled_extension_imes";
550 const char kLanguageEnabledExtensionImesSyncable[] =
551 "settings.language.enabled_extension_imes_syncable";
553 // A boolean pref to indicate whether we still need to add the globally synced
554 // input methods. False after the initial post-OOBE sync.
555 const char kLanguageShouldMergeInputMethods[] =
556 "settings.language.merge_input_methods";
558 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
559 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
560 // src/chrome/browser/chromeos/input_method/xkeyboard.h
561 const char kLanguageRemapSearchKeyTo[] =
562 // Note: we no longer use XKB for remapping these keys, but we can't change
563 // the pref names since the names are already synced with the cloud.
564 "settings.language.xkb_remap_search_key_to";
565 const char kLanguageRemapControlKeyTo[] =
566 "settings.language.xkb_remap_control_key_to";
567 const char kLanguageRemapAltKeyTo[] =
568 "settings.language.xkb_remap_alt_key_to";
569 const char kLanguageRemapCapsLockKeyTo[] =
570 "settings.language.remap_caps_lock_key_to";
571 const char kLanguageRemapDiamondKeyTo[] =
572 "settings.language.remap_diamond_key_to";
574 // A boolean pref that causes top-row keys to be interpreted as function keys
575 // instead of as media keys.
576 const char kLanguageSendFunctionKeys[] =
577 "settings.language.send_function_keys";
579 // A boolean pref which determines whether key repeat is enabled.
580 const char kLanguageXkbAutoRepeatEnabled[] =
581 "settings.language.xkb_auto_repeat_enabled_r2";
582 // A integer pref which determines key repeat delay (in ms).
583 const char kLanguageXkbAutoRepeatDelay[] =
584 "settings.language.xkb_auto_repeat_delay_r2";
585 // A integer pref which determines key repeat interval (in ms).
586 const char kLanguageXkbAutoRepeatInterval[] =
587 "settings.language.xkb_auto_repeat_interval_r2";
588 // "_r2" suffixes were added to the three prefs above when we changed the
589 // preferences to not be user-configurable or sync with the cloud. The prefs are
590 // now user-configurable and syncable again, but we don't want to overwrite the
591 // current values with the old synced values, so we continue to use this suffix.
593 // A boolean pref which determines whether the large cursor feature is enabled.
594 const char kAccessibilityLargeCursorEnabled[] =
595 "settings.a11y.large_cursor_enabled";
597 // A boolean pref which determines whether the sticky keys feature is enabled.
598 const char kAccessibilityStickyKeysEnabled[] =
599 "settings.a11y.sticky_keys_enabled";
600 // A boolean pref which determines whether spoken feedback is enabled.
601 const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility";
602 // A boolean pref which determines whether high conrast is enabled.
603 const char kAccessibilityHighContrastEnabled[] =
604 "settings.a11y.high_contrast_enabled";
605 // A boolean pref which determines whether screen magnifier is enabled.
606 const char kAccessibilityScreenMagnifierEnabled[] =
607 "settings.a11y.screen_magnifier";
608 // A integer pref which determines what type of screen magnifier is enabled.
609 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
610 // we are using another name pref here.
611 const char kAccessibilityScreenMagnifierType[] =
612 "settings.a11y.screen_magnifier_type2";
613 // A double pref which determines a zooming scale of the screen magnifier.
614 const char kAccessibilityScreenMagnifierScale[] =
615 "settings.a11y.screen_magnifier_scale";
616 // A boolean pref which determines whether the virtual keyboard is enabled for
617 // accessibility. This feature is separate from displaying an onscreen keyboard
618 // due to lack of a physical keyboard.
619 const char kAccessibilityVirtualKeyboardEnabled[] =
620 "settings.a11y.virtual_keyboard";
621 // A boolean pref which determines whether autoclick is enabled.
622 const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick";
623 // An integer pref which determines time in ms between when the mouse cursor
624 // stops and when an autoclick is triggered.
625 const char kAccessibilityAutoclickDelayMs[] =
626 "settings.a11y.autoclick_delay_ms";
627 // A boolean pref which determines whether the accessibility menu shows
628 // regardless of the state of a11y features.
629 const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
631 // A boolean pref which turns on Advanced Filesystem
632 // (USB support, SD card, etc).
633 const char kLabsAdvancedFilesystemEnabled[] =
634 "settings.labs.advanced_filesystem";
636 // A boolean pref which turns on the mediaplayer.
637 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
639 // A boolean pref that turns on automatic screen locking.
640 const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
642 // A boolean pref of whether to show mobile plan notifications.
643 const char kShowPlanNotifications[] =
644 "settings.internet.mobile.show_plan_notifications";
646 // A boolean pref of whether to show 3G promo notification.
647 const char kShow3gPromoNotification[] =
648 "settings.internet.mobile.show_3g_promo_notification";
650 // A string pref that contains version where "What's new" promo was shown.
651 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
653 // A boolean pref that controls whether proxy settings from shared network
654 // settings (accordingly from device policy) are applied or ignored.
655 const char kUseSharedProxies[] = "settings.use_shared_proxies";
657 // Power state of the current displays from the last run.
658 const char kDisplayPowerState[] = "settings.display.power_state";
659 // A dictionary pref that stores per display preferences.
660 const char kDisplayProperties[] = "settings.display.properties";
662 // A dictionary pref that specifies per-display layout/offset information.
663 // Its key is the ID of the display and its value is a dictionary for the
664 // layout/offset information.
665 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
667 // A dictionary pref that specifies the state of the rotation lock, and the
668 // display orientation, for the internal display.
669 const char kDisplayRotationLock[] = "settings.display.rotation_lock";
671 // A boolean pref indicating whether user activity has been observed in the
672 // current session already. The pref is used to restore information about user
673 // activity after browser crashes.
674 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
676 // A preference to keep track of the session start time. If the session length
677 // limit is configured to start running after initial user activity has been
678 // observed, the pref is set after the first user activity in a session.
679 // Otherwise, it is set immediately after session start. The pref is used to
680 // restore the session start time after browser crashes. The time is expressed
681 // as the serialization obtained from base::TimeTicks::ToInternalValue().
682 const char kSessionStartTime[] = "session.start_time";
684 // Holds the maximum session time in milliseconds. If this pref is set, the
685 // user is logged out when the maximum session time is reached. The user is
686 // informed about the remaining time by a countdown timer shown in the ash
687 // system tray.
688 const char kSessionLengthLimit[] = "session.length_limit";
690 // Whether the session length limit should start running only after the first
691 // user activity has been observed in a session.
692 const char kSessionWaitForInitialUserActivity[] =
693 "session.wait_for_initial_user_activity";
695 // Inactivity time in milliseconds while the system is on AC power before
696 // the screen should be dimmed, turned off, or locked, before an
697 // IdleActionImminent D-Bus signal should be sent, or before
698 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
699 // kPowerAcIdleDelayMs).
700 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
701 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
702 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
703 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
704 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
706 // Similar delays while the system is on battery power.
707 const char kPowerBatteryScreenDimDelayMs[] =
708 "power.battery_screen_dim_delay_ms";
709 const char kPowerBatteryScreenOffDelayMs[] =
710 "power.battery_screen_off_delay_ms";
711 const char kPowerBatteryScreenLockDelayMs[] =
712 "power.battery_screen_lock_delay_ms";
713 const char kPowerBatteryIdleWarningDelayMs[] =
714 "power.battery_idle_warning_delay_ms";
715 const char kPowerBatteryIdleDelayMs[] =
716 "power.battery_idle_delay_ms";
718 // Inactivity delays used to dim the screen or turn it off while the screen is
719 // locked.
720 const char kPowerLockScreenDimDelayMs[] = "power.lock_screen_dim_delay_ms";
721 const char kPowerLockScreenOffDelayMs[] = "power.lock_screen_off_delay_ms";
723 // Action that should be performed when the idle delay is reached while the
724 // system is on AC power or battery power.
725 // Values are from the chromeos::PowerPolicyController::Action enum.
726 const char kPowerAcIdleAction[] = "power.ac_idle_action";
727 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
729 // Action that should be performed when the lid is closed.
730 // Values are from the chromeos::PowerPolicyController::Action enum.
731 const char kPowerLidClosedAction[] = "power.lid_closed_action";
733 // Should audio and video activity be used to disable the above delays?
734 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
735 const char kPowerUseVideoActivity[] = "power.use_video_activity";
737 // Should extensions be able to use the chrome.power API to override
738 // screen-related power management (including locking)?
739 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
741 // Amount by which the screen-dim delay should be scaled while the system
742 // is in presentation mode. Values are limited to a minimum of 1.0.
743 const char kPowerPresentationScreenDimDelayFactor[] =
744 "power.presentation_screen_dim_delay_factor";
746 // Amount by which the screen-dim delay should be scaled when user activity is
747 // observed while the screen is dimmed or soon after the screen has been turned
748 // off. Values are limited to a minimum of 1.0.
749 const char kPowerUserActivityScreenDimDelayFactor[] =
750 "power.user_activity_screen_dim_delay_factor";
752 // Whether the power management delays should start running only after the first
753 // user activity has been observed in a session.
754 const char kPowerWaitForInitialUserActivity[] =
755 "power.wait_for_initial_user_activity";
757 // The URL from which the Terms of Service can be downloaded. The value is only
758 // honored for public accounts.
759 const char kTermsOfServiceURL[] = "terms_of_service.url";
761 // Indicates that the Profile has made navigations that used a certificate
762 // installed by the system administrator. If that is true then the local cache
763 // of remote data is tainted (e.g. shared scripts), and future navigations
764 // show a warning indicating that the organization may track the browsing
765 // session.
766 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
768 // Indicates whether the remote attestation is enabled for the user.
769 const char kAttestationEnabled[] = "attestation.enabled";
770 // The list of extensions allowed to use the platformKeysPrivate API for
771 // remote attestation.
772 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
774 // A boolean pref indicating whether the projection touch HUD is enabled or not.
775 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
777 // A pref to configure networks. Its value must be a list of
778 // NetworkConfigurations according to the OpenNetworkConfiguration
779 // specification.
780 // Currently, this pref is only used to store the policy. The user's
781 // configuration is still stored in Shill.
782 const char kOpenNetworkConfiguration[] = "onc";
784 // A boolean pref that tracks whether the user has already given consent for
785 // enabling remote attestation for content protection.
786 const char kRAConsentFirstTime[] = "settings.privacy.ra_consent";
788 // A boolean pref recording whether user has dismissed the multiprofile
789 // itroduction dialog show.
790 const char kMultiProfileNeverShowIntro[] =
791 "settings.multi_profile_never_show_intro";
793 // A boolean pref recording whether user has dismissed the multiprofile
794 // teleport warning dialog show.
795 const char kMultiProfileWarningShowDismissed[] =
796 "settings.multi_profile_warning_show_dismissed";
798 // A string pref that holds string enum values of how the user should behave
799 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
800 // for more details of the valid values.
801 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
803 // A boolean preference indicating whether user has seen first-run tutorial
804 // already.
805 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
807 // Indicates the amount of time for which a user authenticated via SAML can use
808 // offline authentication against a cached password before being forced to go
809 // through online authentication against GAIA again. The time is expressed in
810 // seconds. A value of -1 indicates no limit, allowing the user to use offline
811 // authentication indefinitely. The limit is in effect only if GAIA redirected
812 // the user to a SAML IdP during the last online authentication.
813 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
815 // A preference to keep track of the last time the user authenticated against
816 // GAIA using SAML. The preference is updated whenever the user authenticates
817 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
818 // current time. If GAIA performs the authentication itself, the preference is
819 // cleared. The time is expressed as the serialization obtained from
820 // base::Time::ToInternalValue().
821 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
823 // The total number of seconds that the machine has spent sitting on the
824 // OOBE screen.
825 const char kTimeOnOobe[] = "settings.time_on_oobe";
827 // The app/extension name who sets the current wallpaper. If current wallpaper
828 // is set by the component wallpaper picker, it is set to an empty string.
829 const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
831 // List of mounted file systems via the File System Provider API. Used to
832 // restore them after a reboot.
833 const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
835 // A boolean pref set to true if the virtual keyboard should be enabled.
836 const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
838 // An integer pref that controls the wake on wifi features that should be
839 // enabled.
840 const char kWakeOnWiFiEnabled[] = "settings.internet.wake_on_wifi";
842 #endif // defined(OS_CHROMEOS)
844 // The disabled messages in IPC logging.
845 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
847 // A boolean pref set to true if a Home button to open the Home pages should be
848 // visible on the toolbar.
849 const char kShowHomeButton[] = "browser.show_home_button";
851 // A string value which saves short list of recently user selected encodings
852 // separated with comma punctuation mark.
853 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
855 // Clear Browsing Data dialog preferences.
856 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
857 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
858 const char kDeleteCache[] = "browser.clear_data.cache";
859 const char kDeleteCookies[] = "browser.clear_data.cookies";
860 const char kDeletePasswords[] = "browser.clear_data.passwords";
861 const char kDeleteFormData[] = "browser.clear_data.form_data";
862 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
863 const char kDeauthorizeContentLicenses[] =
864 "browser.clear_data.content_licenses";
865 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
866 const char kLastClearBrowsingDataTime[] =
867 "browser.last_clear_browsing_data_time";
869 // Boolean pref to define the default values for using spellchecker.
870 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
872 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
873 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
875 // Boolean pref to define the default values for using auto spell correct.
876 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
878 // Boolean pref to define the default setting for "block offensive words".
879 // The old key value is kept to avoid unnecessary migration code.
880 const char kSpeechRecognitionFilterProfanities[] =
881 "browser.speechinput_censor_results";
883 // List of speech recognition context names (extensions or websites) for which
884 // the tray notification balloon has already been shown.
885 const char kSpeechRecognitionTrayNotificationShownContexts[] =
886 "browser.speechinput_tray_notification_shown_contexts";
888 // Boolean controlling whether history saving is disabled.
889 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
891 // Boolean controlling whether deleting browsing and download history is
892 // permitted.
893 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
895 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches
896 // and also whether Safety Mode is mandatory on YouTube.
897 // DEPRECATED: This is replaced by kForceGoogleSafeSearch and
898 // kForceYouTubeSafetyMode, and still exists for legacy reasons only.
899 const char kForceSafeSearch[] = "settings.force_safesearch";
901 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
902 const char kForceGoogleSafeSearch[] = "settings.force_google_safesearch";
904 // Boolean controlling whether Safety Mode is mandatory on YouTube.
905 const char kForceYouTubeSafetyMode[] = "settings.force_youtube_safety_mode";
907 // Boolean controlling whether History is recorded and synced for
908 // supervised users.
909 const char kRecordHistory[] = "settings.history_recorded";
911 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
912 // Linux specific preference on whether we should match the system theme.
913 const char kUsesSystemTheme[] = "extensions.theme.use_system";
914 #endif
915 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
916 const char kCurrentThemeID[] = "extensions.theme.id";
917 const char kCurrentThemeImages[] = "extensions.theme.images";
918 const char kCurrentThemeColors[] = "extensions.theme.colors";
919 const char kCurrentThemeTints[] = "extensions.theme.tints";
920 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
922 // Boolean pref which persists whether the extensions_ui is in developer mode
923 // (showing developer packing tools and extensions details)
924 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
926 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
927 // Tool promotion has been dismissed by the user.
928 const char kExtensionsUIDismissedADTPromo[] =
929 "extensions.ui.dismissed_adt_promo";
931 // Dictionary pref that tracks which command belongs to which
932 // extension + named command pair.
933 const char kExtensionCommands[] = "extensions.commands";
935 // Pref containing the directory for internal plugins as written to the plugins
936 // list (below).
937 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
939 // List pref containing information (dictionaries) on plugins.
940 const char kPluginsPluginsList[] = "plugins.plugins_list";
942 // List pref containing names of plugins that are disabled by policy.
943 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
945 // List pref containing exceptions to the list of plugins disabled by policy.
946 const char kPluginsDisabledPluginsExceptions[] =
947 "plugins.plugins_disabled_exceptions";
949 // List pref containing names of plugins that are enabled by policy.
950 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
952 // When bundled NPAPI Flash is removed, if at that point it is enabled while
953 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
954 // want to do so only once.
955 const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
957 // In the early stage of component-updated PPAPI Flash, we did field trials in
958 // which it was set to disabled by default. The corresponding settings item may
959 // remain in some users' profiles. Currently it affects both the bundled and
960 // component-updated PPAPI Flash (since the two share the same enable/disable
961 // state). We want to remove this item to get those users to use PPAPI Flash.
962 // We will want to do so only once.
963 const char kPluginsRemovedOldComponentPepperFlashSettings[] =
964 "plugins.removed_old_component_pepper_flash_settings";
966 #if !defined(OS_ANDROID)
967 // Whether about:plugins is shown in the details mode or not.
968 const char kPluginsShowDetails[] = "plugins.show_details";
969 #endif
971 // Boolean that indicates whether outdated plugins are allowed or not.
972 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
974 // Boolean that indicates whether plugins that require authorization should
975 // be always allowed or not.
976 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
978 #if defined(ENABLE_PLUGIN_INSTALLATION)
979 // Dictionary holding plug-ins metadata.
980 const char kPluginsMetadata[] = "plugins.metadata";
982 // Last update time of plug-ins resource cache.
983 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
984 #endif
986 // Boolean that indicates whether we should check if we are the default browser
987 // on start-up.
988 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
990 // Policy setting whether default browser check should be disabled and default
991 // browser registration should take place.
992 const char kDefaultBrowserSettingEnabled[] =
993 "browser.default_browser_setting_enabled";
995 #if defined(OS_MACOSX)
996 // Boolean that indicates whether the application should show the info bar
997 // asking the user to set up automatic updates when Keystone promotion is
998 // required.
999 const char kShowUpdatePromotionInfoBar[] =
1000 "browser.show_update_promotion_info_bar";
1001 #endif
1003 // Boolean that is false if we should show window manager decorations. If
1004 // true, we draw a custom chrome frame (thicker title bar and blue border).
1005 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
1007 #if !defined(OS_ANDROID)
1008 // Which plugins have been whitelisted manually by the user.
1009 const char kContentSettingsPluginWhitelist[] =
1010 "profile.content_settings.plugin_whitelist";
1011 #endif
1013 // Boolean that is true if we should unconditionally block third-party cookies,
1014 // regardless of other content settings.
1015 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
1017 // Boolean that is true when all locally stored site data (e.g. cookies, local
1018 // storage, etc..) should be deleted on exit.
1019 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
1021 // Double that indicates the default zoom level.
1022 const char kPartitionDefaultZoomLevel[] = "partition.default_zoom_level";
1023 // TODO(wjmaclean): Remove this once sufficient users have migrated to the
1024 // per-StoragePartition zoom levels. http://crbug.com/420643.
1025 const char kDefaultZoomLevelDeprecated[] = "profile.default_zoom_level";
1027 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
1028 // be displayed at the default zoom level.
1029 const char kPartitionPerHostZoomLevels[] = "partition.per_host_zoom_levels";
1030 // TODO(wjmaclean): Remove this.
1031 const char kPerHostZoomLevelsDeprecated[] = "profile.per_host_zoom_levels";
1033 // A dictionary that tracks the default data model to use for each section of
1034 // the dialog.
1035 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1037 // Whether a user opted out of making purchases with Google Wallet; changed via
1038 // the autofill dialog's account chooser and set explicitly on dialog submission
1039 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1040 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1042 // Which GAIA users have accepted that use of Google Wallet implies their
1043 // location will be shared with fraud protection services.
1044 const char kAutofillDialogWalletLocationAcceptance[] =
1045 "autofill.wallet_location_disclosure";
1047 // Whether a user wants to save data locally in Autofill.
1048 const char kAutofillDialogSaveData[] = "autofill.save_data";
1050 // Whether the user has selected "Same as billing" for the shipping address when
1051 // using Google Wallet.
1052 const char kAutofillDialogWalletShippingSameAsBilling[] =
1053 "autofill.wallet_shipping_same_as_billing";
1055 // The number of times the generated credit card bubble has been shown.
1056 const char kAutofillGeneratedCardBubbleTimesShown[] =
1057 "autofill.generated_card_bubble_times_shown";
1059 // A dictionary that tracks the defaults to be set on the next invocation
1060 // of the requestAutocomplete dialog.
1061 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1063 #if !defined(OS_ANDROID)
1064 const char kPinnedTabs[] = "pinned_tabs";
1065 #endif
1067 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1068 const char kDisable3DAPIs[] = "disable_3d_apis";
1070 const char kEnableDeprecatedWebPlatformFeatures[] =
1071 "enable_deprecated_web_platform_features";
1073 // Whether to enable hyperlink auditing ("<a ping>").
1074 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1076 // Whether to enable sending referrers.
1077 const char kEnableReferrers[] = "enable_referrers";
1079 // Whether to send the DNT header.
1080 const char kEnableDoNotTrack[] = "enable_do_not_track";
1082 // GL_VENDOR string.
1083 const char kGLVendorString[] = "gl_vendor_string";
1085 // GL_RENDERER string.
1086 const char kGLRendererString[] = "gl_renderer_string";
1088 // GL_VERSION string.
1089 const char kGLVersionString[] = "gl_version_string";
1091 // Boolean that specifies whether to import the form data for autofill from the
1092 // default browser on first run.
1093 const char kImportAutofillFormData[] = "import_autofill_form_data";
1095 // Boolean that specifies whether to import bookmarks from the default browser
1096 // on first run.
1097 const char kImportBookmarks[] = "import_bookmarks";
1099 // Boolean that specifies whether to import the browsing history from the
1100 // default browser on first run.
1101 const char kImportHistory[] = "import_history";
1103 // Boolean that specifies whether to import the homepage from the default
1104 // browser on first run.
1105 const char kImportHomepage[] = "import_home_page";
1107 // Boolean that specifies whether to import the saved passwords from the default
1108 // browser on first run.
1109 const char kImportSavedPasswords[] = "import_saved_passwords";
1111 // Boolean that specifies whether to import the search engine from the default
1112 // browser on first run.
1113 const char kImportSearchEngine[] = "import_search_engine";
1115 // Profile avatar and name
1116 const char kProfileAvatarIndex[] = "profile.avatar_index";
1117 const char kProfileName[] = "profile.name";
1118 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1119 // because it was randomly assigned at profile creation time.
1120 const char kProfileUsingDefaultName[] = "profile.using_default_name";
1121 // Whether a profile is using an avatar without having explicitely chosen it
1122 // (i.e. was assigned by default by legacy profile creation).
1123 const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
1124 const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
1126 // The supervised user ID.
1127 const char kSupervisedUserId[] = "profile.managed_user_id";
1129 // 64-bit integer serialization of the base::Time when the user's GAIA info
1130 // was last updated.
1131 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1133 // The URL from which the GAIA profile picture was downloaded. This is cached to
1134 // prevent the same picture from being downloaded multiple times.
1135 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1137 // Integer that specifies the number of times that we have shown the upgrade
1138 // tutorial card in the avatar menu bubble.
1139 const char kProfileAvatarTutorialShown[] =
1140 "profile.avatar_bubble_tutorial_shown";
1142 // Indicates if we've already shown a notification that high contrast
1143 // mode is on, recommending high-contrast extensions and themes.
1144 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1146 // Boolean controlling whether printing is enabled.
1147 const char kPrintingEnabled[] = "printing.enabled";
1149 // Boolean controlling whether print preview is disabled.
1150 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1152 // An integer pref specifying the fallback behavior for sites outside of content
1153 // packs. One of:
1154 // 0: Allow (does nothing)
1155 // 1: Warn.
1156 // 2: Block.
1157 const char kDefaultSupervisedUserFilteringBehavior[] =
1158 "profile.managed.default_filtering_behavior";
1160 // Whether this user is permitted to create supervised users.
1161 const char kSupervisedUserCreationAllowed[] =
1162 "profile.managed_user_creation_allowed";
1164 // List pref containing the users supervised by this user.
1165 const char kSupervisedUsers[] = "profile.managed_users";
1167 // String that indicates that the profile reset prompt has already been shown to
1168 // the user (profile).
1169 const char kProfileResetPromptMementoInProfilePrefs[] =
1170 "profile.reset_prompt_memento";
1172 // List pref containing the extension ids which are not allowed to send
1173 // notifications to the message center.
1174 const char kMessageCenterDisabledExtensionIds[] =
1175 "message_center.disabled_extension_ids";
1177 // List pref containing the system component ids which are not allowed to send
1178 // notifications to the message center.
1179 const char kMessageCenterDisabledSystemComponentIds[] =
1180 "message_center.disabled_system_component_ids";
1182 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1183 // by the user. Syncable.
1184 // Note: This is now read-only. The welcome notification writes the _local
1185 // version, below.
1186 extern const char kWelcomeNotificationDismissed[] =
1187 "message_center.welcome_notification_dismissed";
1189 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1190 // by the user on this machine.
1191 extern const char kWelcomeNotificationDismissedLocal[] =
1192 "message_center.welcome_notification_dismissed_local";
1194 // Boolean pref indicating the welcome notification was previously popped up.
1195 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
1196 "message_center.welcome_notification_previously_popped_up";
1198 // Integer pref containing the expiration timestamp of the welcome notification.
1199 extern const char kWelcomeNotificationExpirationTimestamp[] =
1200 "message_center.welcome_notification_expiration_timestamp";
1202 // Boolean pref that determines whether the user can enter fullscreen mode.
1203 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1204 // platforms.
1205 extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1207 // Enable notifications for new devices on the local network that can be
1208 // registered to the user's account, e.g. Google Cloud Print printers.
1209 const char kLocalDiscoveryNotificationsEnabled[] =
1210 "local_discovery.notifications_enabled";
1212 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
1213 // a preference was reset.
1214 const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1216 // The GCM channel's enabled state.
1217 const char kGCMChannelEnabled[] = "gcm.channel_enabled";
1219 // How many Service Workers are registered with the Push API (could be zero).
1220 const char kPushMessagingRegistrationCount[] =
1221 "gcm.push_messaging_registration_count";
1223 // Whether a user is allowed to use Easy Unlock.
1224 const char kEasyUnlockAllowed[] = "easy_unlock.allowed";
1226 // Whether Easy Unlock is enabled.
1227 const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1229 // Preference storing Easy Unlock pairing data.
1230 const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1232 // Whether close proximity between the remote and the local device is required
1233 // in order to use Easy Unlock.
1234 const char kEasyUnlockProximityRequired[] = "easy_unlock.proximity_required";
1236 // Whether to show the Easy Unlock first run tutorial.
1237 const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial";
1239 // A cache of zero suggest results using JSON serialized into a string.
1240 const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults";
1242 // *************** LOCAL STATE ***************
1243 // These are attached to the machine/installation
1245 // A pref to configure networks device-wide. Its value must be a list of
1246 // NetworkConfigurations according to the OpenNetworkConfiguration
1247 // specification.
1248 // Currently, this pref is only used to store the policy. The user's
1249 // configuration is still stored in Shill.
1250 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1252 // Directory of the last profile used.
1253 const char kProfileLastUsed[] = "profile.last_used";
1255 // List of directories of the profiles last active.
1256 const char kProfilesLastActive[] = "profile.last_active_profiles";
1258 // Total number of profiles created for this Chrome build. Used to tag profile
1259 // directories.
1260 const char kProfilesNumCreated[] = "profile.profiles_created";
1262 // String containing the version of Chrome that the profile was created by.
1263 // If profile was created before this feature was added, this pref will default
1264 // to "1.0.0.0".
1265 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1267 // A map of profile data directory to cached information. This cache can be
1268 // used to display information about profiles without actually having to load
1269 // them.
1270 const char kProfileInfoCache[] = "profile.info_cache";
1272 // Dictionary that maps profile keys to strings that indicate that the profile
1273 // reset prompt has already been shown to the corresponding user (profile).
1274 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1275 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1276 // explanation of why this redundancy is needed.
1277 const char kProfileResetPromptMementosInLocalState[] =
1278 "profile.reset_prompt_mementos";
1280 // Prefs for SSLConfigServicePref.
1281 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1282 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1283 "ssl.rev_checking.required_for_local_anchors";
1284 const char kSSLVersionMin[] = "ssl.version_min";
1285 const char kSSLVersionMax[] = "ssl.version_max";
1286 const char kSSLVersionFallbackMin[] = "ssl.version_fallback_min";
1287 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1288 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1290 // Dictionary of dates when a site's SSL blocking interstitial was proceeded
1291 // through.
1292 const char kSSLBlockingBypassed[] = "ssl.ssl_blocking_bypassed";
1294 // Boolean that specifies whether or not crash reporting and metrics reporting
1295 // are sent over the network for analysis.
1296 const char kMetricsReportingEnabled[] =
1297 "user_experience_metrics.reporting_enabled";
1299 // Boolean that specifies whether or not crash reports are sent
1300 // over the network for analysis.
1301 #if defined(OS_ANDROID)
1302 const char kCrashReportingEnabled[] =
1303 "user_experience_metrics_crash.reporting_enabled";
1304 #endif
1306 // 64-bit integer serialization of the base::Time from the last successful seed
1307 // fetch (i.e. when the Variations server responds with 200 or 304).
1308 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1310 // String for the restrict parameter to be appended to the variations URL.
1311 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1313 // String serialized form of variations seed protobuf.
1314 const char kVariationsSeed[] = "variations_seed";
1316 // 64-bit integer serialization of the base::Time from the last seed received.
1317 const char kVariationsSeedDate[] = "variations_seed_date";
1319 // SHA-1 hash of the serialized variations seed data (hex encoded).
1320 const char kVariationsSeedHash[] = "variations_seed_hash";
1322 // Digital signature of the binary variations seed data, base64-encoded.
1323 const char kVariationsSeedSignature[] = "variations_seed_signature";
1325 // Number of times a page load event occurred since the last report.
1326 const char kStabilityPageLoadCount[] =
1327 "user_experience_metrics.stability.page_load_count";
1329 // Number of times a renderer process crashed since the last report.
1330 const char kStabilityRendererCrashCount[] =
1331 "user_experience_metrics.stability.renderer_crash_count";
1333 // Number of times an extension renderer process crashed since the last report.
1334 const char kStabilityExtensionRendererCrashCount[] =
1335 "user_experience_metrics.stability.extension_renderer_crash_count";
1337 // This is the location of a list of dictionaries of plugin stability stats.
1338 const char kStabilityPluginStats[] =
1339 "user_experience_metrics.stability.plugin_stats2";
1341 // Number of times the renderer has become non-responsive since the last
1342 // report.
1343 const char kStabilityRendererHangCount[] =
1344 "user_experience_metrics.stability.renderer_hang_count";
1346 // Total number of child process crashes (other than renderer / extension
1347 // renderer ones, and plugin children, which are counted separately) since the
1348 // last report.
1349 const char kStabilityChildProcessCrashCount[] =
1350 "user_experience_metrics.stability.child_process_crash_count";
1352 // On Chrome OS, total number of non-Chrome user process crashes
1353 // since the last report.
1354 const char kStabilityOtherUserCrashCount[] =
1355 "user_experience_metrics.stability.other_user_crash_count";
1357 // On Chrome OS, total number of kernel crashes since the last report.
1358 const char kStabilityKernelCrashCount[] =
1359 "user_experience_metrics.stability.kernel_crash_count";
1361 // On Chrome OS, total number of unclean system shutdowns since the
1362 // last report.
1363 const char kStabilitySystemUncleanShutdownCount[] =
1364 "user_experience_metrics.stability.system_unclean_shutdowns";
1366 #if defined(OS_ANDROID)
1367 // Activity type that is currently in the foreground for the UMA session.
1368 // Uses the ActivityTypeIds::Type enum.
1369 const char kStabilityForegroundActivityType[] =
1370 "user_experience_metrics.stability.current_foreground_activity_type";
1372 // Tracks which Activities were launched during the last session.
1373 // See |metrics_service_android.cc| for its usage.
1374 const char kStabilityLaunchedActivityFlags[] =
1375 "user_experience_metrics.stability.launched_activity_flags";
1377 // List pref: Counts how many times each Activity was launched.
1378 // Indexed into by ActivityTypeIds::Type.
1379 const char kStabilityLaunchedActivityCounts[] =
1380 "user_experience_metrics.stability.launched_activity_counts";
1382 // List pref: Counts how many times each Activity type was in the foreground
1383 // when a UMA session failed to be shut down properly.
1384 // Indexed into by ActivityTypeIds::Type.
1385 const char kStabilityCrashedActivityCounts[] =
1386 "user_experience_metrics.stability.crashed_activity_counts";
1387 #endif
1389 // The keys below are used for the dictionaries in the
1390 // kStabilityPluginStats list.
1391 const char kStabilityPluginName[] = "name";
1392 const char kStabilityPluginLaunches[] = "launches";
1393 const char kStabilityPluginInstances[] = "instances";
1394 const char kStabilityPluginCrashes[] = "crashes";
1395 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1397 // The keys below are strictly increasing counters over the lifetime of
1398 // a chrome installation. They are (optionally) sent up to the uninstall
1399 // survey in the event of uninstallation.
1400 const char kUninstallMetricsPageLoadCount[] =
1401 "uninstall_metrics.page_load_count";
1402 const char kUninstallLastLaunchTimeSec[] =
1403 "uninstall_metrics.last_launch_time_sec";
1404 const char kUninstallLastObservedRunTimeSec[] =
1405 "uninstall_metrics.last_observed_running_time_sec";
1407 // String containing the version of Chrome for which Chrome will not prompt the
1408 // user about setting Chrome as the default browser.
1409 const char kBrowserSuppressDefaultBrowserPrompt[] =
1410 "browser.suppress_default_browser_prompt_for_version";
1412 // A collection of position, size, and other data relating to the browser
1413 // window to restore on startup.
1414 const char kBrowserWindowPlacement[] = "browser.window_placement";
1416 // Browser window placement for popup windows.
1417 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1419 // A collection of position, size, and other data relating to the task
1420 // manager window to restore on startup.
1421 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1423 // A collection of position, size, and other data relating to app windows to
1424 // restore on startup.
1425 const char kAppWindowPlacement[] = "browser.app_window_placement";
1427 // String which specifies where to download files to by default.
1428 const char kDownloadDefaultDirectory[] = "download.default_directory";
1430 // Boolean that records if the download directory was changed by an
1431 // upgrade a unsafe location to a safe location.
1432 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1434 #if defined(OS_WIN) || defined(OS_LINUX) || \
1435 (defined(OS_MACOSX) && !defined(OS_IOS))
1436 const char kOpenPdfDownloadInSystemReader[] =
1437 "download.open_pdf_in_system_reader";
1438 #endif
1440 // String which specifies where to save html files to by default.
1441 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1443 // The type used to save the page. See the enum SavePackage::SavePackageType in
1444 // the chrome/browser/download/save_package.h for the possible values.
1445 const char kSaveFileType[] = "savefile.type";
1447 // String which specifies the last directory that was chosen for uploading
1448 // or opening a file.
1449 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1451 // Boolean that specifies if file selection dialogs are shown.
1452 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1454 // Map of default tasks, associated by MIME type.
1455 const char kDefaultTasksByMimeType[] =
1456 "filebrowser.tasks.default_by_mime_type";
1458 // Map of default tasks, associated by file suffix.
1459 const char kDefaultTasksBySuffix[] =
1460 "filebrowser.tasks.default_by_suffix";
1462 // Extensions which should be opened upon completion.
1463 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1465 // Integer which specifies the frequency in milliseconds for detecting whether
1466 // plugin windows are hung.
1467 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1469 // Integer which specifies the timeout value to be used for SendMessageTimeout
1470 // to detect a hung plugin window.
1471 const char kPluginMessageResponseTimeout[] =
1472 "browser.plugin_message_response_timeout";
1474 // String which represents the dictionary name for our spell-checker.
1475 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1477 // String which represents whether we use the spelling service.
1478 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1480 // Dictionary of schemes used by the external protocol handler.
1481 // The value is true if the scheme must be ignored.
1482 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1484 // Keys used for MAC handling of SafeBrowsing requests.
1485 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1486 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1488 // Integer that specifies the index of the tab the user was on when they
1489 // last visited the options window.
1490 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1492 // Integer that specifies the index of the tab the user was on when they
1493 // last visited the Certificate Manager window.
1494 const char kCertificateManagerWindowLastTabIndex[] =
1495 "certificate_manager_window.last_tab_index";
1497 // Integer that specifies if the first run bubble should be shown.
1498 // This preference is only registered by the first-run procedure.
1499 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1501 // String containing the last known intranet redirect URL, if any. See
1502 // intranet_redirect_detector.h for more information.
1503 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1505 // An enum value of how the browser was shut down (see browser_shutdown.h).
1506 const char kShutdownType[] = "shutdown.type";
1507 // Number of processes that were open when the user shut down.
1508 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1509 // Number of processes that were shut down using the slow path.
1510 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1512 // Whether to restart the current Chrome session automatically as the last thing
1513 // before shutting everything down.
1514 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1516 // Set before autorestarting Chrome, cleared on clean exit.
1517 const char kWasRestarted[] = "was.restarted";
1519 #if defined(OS_WIN)
1520 // Preference to be used while relaunching Chrome. This preference dictates if
1521 // Chrome should be launched in Metro or Desktop mode.
1522 // For more info take a look at ChromeRelaunchMode enum.
1523 const char kRelaunchMode[] = "relaunch.mode";
1524 #endif
1526 // Placeholder preference for disabling voice / video chat if it is ever added.
1527 // Currently, this does not change any behavior.
1528 const char kDisableVideoAndChat[] = "disable_video_chat";
1530 // Whether Extensions are enabled.
1531 const char kDisableExtensions[] = "extensions.disabled";
1533 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1534 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1536 // Customized app page names that appear on the New Tab Page.
1537 const char kNtpAppPageNames[] = "ntp.app_page_names";
1539 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1540 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
1542 // Keeps track of which sessions are collapsed in the Other Devices menu.
1543 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1545 // Keeps track of recently closed tabs collapsed state in the Other Devices
1546 // menu.
1547 const char kNtpCollapsedRecentlyClosedTabs[] =
1548 "ntp.collapsed_recently_closed_tabs";
1550 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1551 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1553 // Keeps track of sync promo collapsed state in the Other Devices menu.
1554 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1556 // Serves dates to determine display of elements on the NTP.
1557 const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1559 // New Tab Page URLs that should not be shown as most visited thumbnails.
1560 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1562 // True if a desktop sync session was found for this user.
1563 const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1565 // Last time of update of promo_resource_cache.
1566 const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1568 // Which bookmarks folder should be visible on the new tab page v4.
1569 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1571 // Which page should be visible on the new tab page v4
1572 const char kNtpShownPage[] = "ntp.shown_page";
1574 // Serves tips for the NTP.
1575 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1577 // Boolean indicating whether the web store is active for the current locale.
1578 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1580 // A private RSA key for ADB handshake.
1581 const char kDevToolsAdbKey[] = "devtools.adb_key";
1583 const char kDevToolsDisabled[] = "devtools.disabled";
1585 // Determines whether devtools should be discovering usb devices for
1586 // remote debugging at chrome://inspect.
1587 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1588 "devtools.discover_usb_devices";
1590 // Maps of files edited locally using DevTools.
1591 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1593 // List of file system paths added in DevTools.
1594 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1596 // A boolean specifying whether dev tools window should be opened docked.
1597 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1599 // A boolean specifying whether port forwarding should be enabled.
1600 const char kDevToolsPortForwardingEnabled[] =
1601 "devtools.port_forwarding_enabled";
1603 // A boolean specifying whether default port forwarding configuration has been
1604 // set.
1605 const char kDevToolsPortForwardingDefaultSet[] =
1606 "devtools.port_forwarding_default_set";
1608 // A dictionary of port->location pairs for port forwarding.
1609 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1611 #if defined(OS_ANDROID)
1612 // A boolean specifying whether remote dev tools debugging is enabled.
1613 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1614 #endif
1616 // Boolean indicating that TiclInvalidationService should use GCM channel.
1617 // False or lack of settings means XMPPPushClient channel.
1618 const char kInvalidationServiceUseGCMChannel[] =
1619 "invalidation_service.use_gcm_channel";
1621 // Local hash of authentication password, used for off-line authentication
1622 // when on-line authentication is not available.
1623 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1625 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1626 // Tracks the number of times that we have shown the sign in promo at startup.
1627 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1629 // Boolean tracking whether the user chose to skip the sign in promo.
1630 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1632 // Boolean that specifies if the sign in promo is allowed to show on first run.
1633 // This preference is specified in the master preference file to suppress the
1634 // sign in promo for some installations.
1635 const char kSignInPromoShowOnFirstRunAllowed[] =
1636 "sync_promo.show_on_first_run_allowed";
1638 // Boolean that specifies if we should show a bubble in the new tab page.
1639 // The bubble is used to confirm that the user is signed into sync.
1640 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1641 #endif
1643 // Create web application shortcut dialog preferences.
1644 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1645 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1646 const char kWebAppCreateInQuickLaunchBar[] =
1647 "browser.web_app.create_in_quick_launch_bar";
1649 // Dictionary that maps Geolocation network provider server URLs to
1650 // corresponding access token.
1651 const char kGeolocationAccessToken[] = "geolocation.access_token";
1653 #if defined(OS_ANDROID)
1654 // Boolean that controls the enabled-state of Geolocation in content.
1655 const char kGeolocationEnabled[] = "geolocation.enabled";
1656 #endif
1658 #if defined(ENABLE_GOOGLE_NOW)
1659 // Boolean that is true when Google services can use the user's location.
1660 const char kGoogleGeolocationAccessEnabled[] =
1661 "googlegeolocationaccess.enabled";
1662 #endif
1664 // The default audio capture device used by the Media content setting.
1665 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1667 // The default video capture device used by the Media content setting.
1668 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1670 // The salt used for creating random MediaSource IDs.
1671 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1673 // Boolean that indicates whether to allow firewall traversal while trying to
1674 // establish the initial connection from the client or host.
1675 const char kRemoteAccessHostFirewallTraversal[] =
1676 "remote_access.host_firewall_traversal";
1678 // Boolean controlling whether 2-factor auth should be required when connecting
1679 // to a host (instead of a PIN).
1680 const char kRemoteAccessHostRequireTwoFactor[] =
1681 "remote_access.host_require_two_factor";
1683 // String containing the domain name that hosts must belong to. If blank, then
1684 // hosts can belong to any domain.
1685 const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
1687 // String containing the domain name of the Chromoting Directory.
1688 // Used by Chromoting host and client.
1689 const char kRemoteAccessHostTalkGadgetPrefix[] =
1690 "remote_access.host_talkgadget_prefix";
1692 // Boolean controlling whether curtaining is required when connecting to a host.
1693 const char kRemoteAccessHostRequireCurtain[] =
1694 "remote_access.host_require_curtain";
1696 // Boolean controlling whether curtaining is required when connecting to a host.
1697 const char kRemoteAccessHostAllowClientPairing[] =
1698 "remote_access.host_allow_client_pairing";
1700 // Whether Chrome Remote Desktop can proxy gnubby authentication traffic.
1701 const char kRemoteAccessHostAllowGnubbyAuth[] =
1702 "remote_access.host_allow_gnubby_auth";
1704 // Boolean that indicates whether the Chromoting host should allow connections
1705 // using relay servers.
1706 const char kRemoteAccessHostAllowRelayedConnection[] =
1707 "remote_access.host_allow_relayed_connection";
1709 // String containing the UDP port range that the Chromoting host should used
1710 // when connecting to clients. The port range should be in the form:
1711 // <min_port>-<max_port>. E.g. 12400-12409.
1712 const char kRemoteAccessHostUdpPortRange[] =
1713 "remote_access.host_udp_port_range";
1715 // The last used printer and its settings.
1716 const char kPrintPreviewStickySettings[] =
1717 "printing.print_preview_sticky_settings";
1719 // The last requested size of the dialog as it was closed.
1720 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1721 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1722 const char kCloudPrintSigninDialogWidth[] =
1723 "cloud_print.signin_dialog_size.width";
1724 const char kCloudPrintSigninDialogHeight[] =
1725 "cloud_print.signin_dialog_size.height";
1727 // The list of BackgroundContents that should be loaded when the browser
1728 // launches.
1729 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1731 #if !defined(OS_ANDROID)
1732 // An int that stores how often we've shown the "Chrome is configured to
1733 // auto-launch" infobar.
1734 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1735 #endif
1737 // String that lists supported HTTP authentication schemes.
1738 const char kAuthSchemes[] = "auth.schemes";
1740 // Boolean that specifies whether to disable CNAME lookups when generating
1741 // Kerberos SPN.
1742 const char kDisableAuthNegotiateCnameLookup[] =
1743 "auth.disable_negotiate_cname_lookup";
1745 // Boolean that specifies whether to include the port in a generated Kerberos
1746 // SPN.
1747 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1749 // Whitelist containing servers for which Integrated Authentication is enabled.
1750 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1752 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1753 // with.
1754 const char kAuthNegotiateDelegateWhitelist[] =
1755 "auth.negotiate_delegate_whitelist";
1757 // String that specifies the name of a custom GSSAPI library to load.
1758 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1760 // Boolean that specifies whether to allow basic auth prompting on cross-
1761 // domain sub-content requests.
1762 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1764 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1765 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1767 // A pref holding the value of the policy used to explicitly allow or deny
1768 // access to audio capture devices. When enabled or not set, the user is
1769 // prompted for device access. When disabled, access to audio capture devices
1770 // is not allowed and no prompt will be shown.
1771 // See also kAudioCaptureAllowedUrls.
1772 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1773 // Holds URL patterns that specify URLs that will be granted access to audio
1774 // capture devices without prompt. NOTE: This whitelist is currently only
1775 // supported when running in kiosk mode.
1776 // TODO(tommi): Update comment when this is supported for all modes.
1777 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1779 // A pref holding the value of the policy used to explicitly allow or deny
1780 // access to video capture devices. When enabled or not set, the user is
1781 // prompted for device access. When disabled, access to video capture devices
1782 // is not allowed and no prompt will be shown.
1783 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1784 // Holds URL patterns that specify URLs that will be granted access to video
1785 // capture devices without prompt. NOTE: This whitelist is currently only
1786 // supported when running in kiosk mode.
1787 // TODO(tommi): Update comment when this is supported for all modes.
1788 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1790 // A boolean pref that controls the enabled-state of hotword search voice
1791 // trigger.
1792 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1794 // A boolean pref that controls the enabled-state of hotword search voice
1795 // trigger from any screen.
1796 const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
1798 // A boolean pref that indicates whether the hotword always-on notification
1799 // has been seen already.
1800 const char kHotwordAlwaysOnNotificationSeen[] =
1801 "hotword.always_on_notification_seen";
1803 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1804 // seconds of audio data before and the spoken query are sent back to be stored
1805 // in a user's Voice & Audio Activity. Updated whenever the user opens
1806 // chrome://settings and also polled for every 24 hours.
1807 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1809 // A string holding the locale information under which Hotword was installed.
1810 // It is used for comparison since the hotword voice search trigger must be
1811 // reinstalled to handle a new language.
1812 const char kHotwordPreviousLanguage[] = "hotword.previous_language";
1814 #if defined(OS_ANDROID)
1815 // Boolean that controls the global enabled-state of protected media identifier.
1816 const char kProtectedMediaIdentifierEnabled[] =
1817 "protected_media_identifier.enabled";
1818 #endif
1820 #if defined(OS_CHROMEOS)
1821 // Dictionary for transient storage of settings that should go into device
1822 // settings storage before owner has been assigned.
1823 const char kDeviceSettingsCache[] = "signed_settings_cache";
1825 // The hardware keyboard layout of the device. This should look like
1826 // "xkb:us::eng".
1827 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1829 // An integer pref which shows number of times carrier deal promo
1830 // notification has been shown to user.
1831 const char kCarrierDealPromoShown[] =
1832 "settings.internet.mobile.carrier_deal_promo_shown";
1834 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1835 // it's not the default value; otherwise, no auto-enrollment decision has been
1836 // made yet.
1837 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1839 // An integer pref with the maximum number of bits used by the client in a
1840 // previous auto-enrollment request. If the client goes through an auto update
1841 // during OOBE and reboots into a version of the OS with a larger maximum
1842 // modulus, then it will retry auto-enrollment using the updated value.
1843 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
1845 // The local state pref that stores device activity times before reporting
1846 // them to the policy server.
1847 const char kDeviceActivityTimes[] = "device_status.activity_times";
1849 // A pref holding the last known location when device location reporting is
1850 // enabled.
1851 const char kDeviceLocation[] = "device_status.location";
1853 // A pref holding the value of the policy used to disable mounting of external
1854 // storage for the user.
1855 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
1857 // A pref holding the value of the policy used to disable playing audio on
1858 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
1859 // it, therefore when the policy is lifted the original mute state is restored.
1860 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
1862 // A dictionary that maps usernames to wallpaper properties.
1863 const char kUsersWallpaperInfo[] = "user_wallpaper_info";
1865 // Copy of owner swap mouse buttons option to use on login screen.
1866 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
1868 // Copy of owner tap-to-click option to use on login screen.
1869 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
1871 // The length of device uptime after which an automatic reboot is scheduled,
1872 // expressed in seconds.
1873 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
1875 // Whether an automatic reboot should be scheduled when an update has been
1876 // applied and a reboot is required to complete the update process.
1877 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1879 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1880 // for connection to Google APIs when the user isn't logged in. Currently used
1881 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1882 // Public Accounts and kiosks.
1883 const char kDeviceRobotAnyApiRefreshToken[] =
1884 "device_robot_refresh_token.any-api";
1886 // Device requisition for enterprise enrollment.
1887 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1889 // Whether to automatically start the enterprise enrollment step during OOBE.
1890 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1892 // Whether the user may exit enrollment.
1893 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1895 // How many times HID detection OOBE dialog was shown.
1896 const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1898 // Dictionary of per-user Least Recently Used input method (used at login
1899 // screen).
1900 extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1902 // A dictionary pref of the echo offer check flag. It sets offer info when
1903 // an offer is checked.
1904 extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
1906 // Key name of a dictionary in local state to store cached multiprofle user
1907 // behavior policy value.
1908 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
1910 // A string pref with initial locale set in VPD or manifest.
1911 const char kInitialLocale[] = "intl.initial_locale";
1913 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1914 const char kOobeComplete[] = "OobeComplete";
1916 // The name of the screen that has to be shown if OOBE has been interrupted.
1917 const char kOobeScreenPending[] = "OobeScreenPending";
1919 // A boolean pref of the device registered flag (second part after first login).
1920 const char kDeviceRegistered[] = "DeviceRegistered";
1922 // Boolean pref to signal corrupted enrollment to force the device through
1923 // enrollment recovery flow upon next boot.
1924 const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1926 // List of usernames that used certificates pushed by policy before.
1927 // This is used to prevent these users from joining multiprofile sessions.
1928 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
1930 // A dictionary containing server-provided device state pulled form the cloud
1931 // after recovery.
1932 const char kServerBackedDeviceState[] = "server_backed_device_state";
1934 // Customized wallpaper URL, which is already downloaded and scaled.
1935 // The URL from this preference must never be fetched. It is compared to the
1936 // URL from customization document to check if wallpaper URL has changed
1937 // since wallpaper was cached.
1938 const char kCustomizationDefaultWallpaperURL[] =
1939 "customization.default_wallpaper_url";
1941 // System uptime, when last logout started.
1942 // This is saved to file and cleared after chrome process starts.
1943 const char kLogoutStartedLast[] = "chromeos.logout-started";
1945 // An integer pref of the current consumer management stage. The meaning of the
1946 // value is defined in:
1947 // chrome/browser/chromeos/policy/consumer_management_stage.h
1948 const char kConsumerManagementStage[] = "consumer_management.stage";
1950 // A boolean pref. If set to true, new experimental OOBE UI is displayed.
1951 const char kNewOobe[] = "NewOobe";
1952 #endif // defined(OS_CHROMEOS)
1954 // Whether there is a Flash version installed that supports clearing LSO data.
1955 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1957 // Whether we should show Pepper Flash-specific settings.
1958 const char kPepperFlashSettingsEnabled[] =
1959 "browser.pepper_flash_settings_enabled";
1961 // String which specifies where to store the disk cache.
1962 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1963 // Pref name for the policy specifying the maximal cache size.
1964 const char kDiskCacheSize[] = "browser.disk_cache_size";
1965 // Pref name for the policy specifying the maximal media cache size.
1966 const char kMediaCacheSize[] = "browser.media_cache_size";
1968 // Specifies the release channel that the device should be locked to.
1969 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1970 // empty string, in which case the value will be ignored.
1971 // TODO(dubroy): This preference may not be necessary once
1972 // http://crosbug.com/17015 is implemented and the update engine can just
1973 // fetch the correct value from the policy.
1974 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1976 const char kPerformanceTracingEnabled[] =
1977 "feedback.performance_tracing_enabled";
1979 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1980 // Defaults to false.
1981 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
1983 // Indicates that factory reset was requested from options page or reset screen.
1984 const char kFactoryResetRequested[] = "FactoryResetRequested";
1986 // Indicates that debugging features were requested from oobe screen.
1987 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested";
1989 // Boolean recording whether we have showed a balloon that calls out the message
1990 // center for desktop notifications.
1991 const char kMessageCenterShowedFirstRunBalloon[] =
1992 "message_center.showed_first_run_balloon";
1994 // Boolean recording whether the user has disabled the notifications
1995 // menubar or systray icon.
1996 const char kMessageCenterShowIcon[] = "message_center.show_icon";
1998 const char kMessageCenterForcedOnTaskbar[] =
1999 "message_center.was_forced_on_taskbar";
2001 // *************** SERVICE PREFS ***************
2002 // These are attached to the service process.
2004 const char kCloudPrintRoot[] = "cloud_print";
2005 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
2006 // The unique id for this instance of the cloud print proxy.
2007 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
2008 // The GAIA auth token for Cloud Print
2009 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
2010 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
2011 // This should eventually go away because the above token should work for both.
2012 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
2013 // The email address of the account used to authenticate with the Cloud Print
2014 // server.
2015 const char kCloudPrintEmail[] = "cloud_print.email";
2016 // Settings specific to underlying print system.
2017 const char kCloudPrintPrintSystemSettings[] =
2018 "cloud_print.print_system_settings";
2019 // A boolean indicating whether we should poll for print jobs when don't have
2020 // an XMPP connection (false by default).
2021 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
2022 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
2023 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
2024 // A boolean indicating whether we should connect to cloud print new printers.
2025 const char kCloudPrintConnectNewPrinters[] =
2026 "cloud_print.user_settings.connectNewPrinters";
2027 // A boolean indicating whether we should ping XMPP connection.
2028 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
2029 // An int value indicating the average timeout between xmpp pings.
2030 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2031 // Dictionary with settings stored by connector setup page.
2032 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2033 // List of printers settings.
2034 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
2035 // A boolean indicating whether submitting jobs to Google Cloud Print is
2036 // blocked by policy.
2037 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2039 // Preference to store proxy settings.
2040 const char kProxy[] = "proxy";
2041 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2043 #if defined(OS_MACOSX)
2044 // Set to true if the user removed our login item so we should not create a new
2045 // one when uninstalling background apps.
2046 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2048 // Set to true if Chrome already created a login item, so there's no need to
2049 // create another one.
2050 const char kChromeCreatedLoginItem[] =
2051 "background_mode.chrome_created_login_item";
2053 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2054 // time.
2055 const char kMigratedLoginItemPref[] =
2056 "background_mode.migrated_login_item_pref";
2058 // A boolean that tracks whether to show a notification when trying to quit
2059 // while there are apps running.
2060 const char kNotifyWhenAppsKeepChromeAlive[] =
2061 "apps.notify-when-apps-keep-chrome-alive";
2062 #endif
2064 // Set to true if background mode is enabled on this browser.
2065 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2067 // Set to true if hardware acceleration mode is enabled on this browser.
2068 const char kHardwareAccelerationModeEnabled[] =
2069 "hardware_acceleration_mode.enabled";
2071 // Hardware acceleration mode from previous browser launch.
2072 const char kHardwareAccelerationModePrevious[] =
2073 "hardware_acceleration_mode_previous";
2075 // List of protocol handlers.
2076 const char kRegisteredProtocolHandlers[] =
2077 "custom_handlers.registered_protocol_handlers";
2079 // List of protocol handlers the user has requested not to be asked about again.
2080 const char kIgnoredProtocolHandlers[] =
2081 "custom_handlers.ignored_protocol_handlers";
2083 // List of protocol handlers registered by policy.
2084 const char kPolicyRegisteredProtocolHandlers[] =
2085 "custom_handlers.policy.registered_protocol_handlers";
2087 // List of protocol handlers the policy has requested to be ignored.
2088 const char kPolicyIgnoredProtocolHandlers[] =
2089 "custom_handlers.policy.ignored_protocol_handlers";
2091 // Whether user-specified handlers for protocols and content types can be
2092 // specified.
2093 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2095 // Integer that specifies the policy refresh rate for device-policy in
2096 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2097 // by the cloud policy subsystem.
2098 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2100 // A boolean where true means that the browser has previously attempted to
2101 // enable autoupdate and failed, so the next out-of-date browser start should
2102 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2103 // instead.
2104 const char kAttemptedToEnableAutoupdate[] =
2105 "browser.attempted_to_enable_autoupdate";
2107 // The next media gallery ID to assign.
2108 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2110 // A list of dictionaries, where each dictionary represents a known media
2111 // gallery.
2112 const char kMediaGalleriesRememberedGalleries[] =
2113 "media_galleries.remembered_galleries";
2115 // The last time a media scan completed.
2116 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2118 #if defined(USE_ASH)
2119 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2120 // local variant is not synced and is used if set. If the local variant is not
2121 // set its value is set from the synced value (once prefs have been
2122 // synced). This gives a per-machine setting that is initialized from the last
2123 // set value.
2124 // These values are default on the machine but can be overridden by per-display
2125 // values in kShelfPreferences (unless overridden by managed policy).
2126 // String value corresponding to ash::Shell::ShelfAlignment.
2127 const char kShelfAlignment[] = "shelf_alignment";
2128 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2129 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2130 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2131 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2132 // This value stores chrome icon's index in the launcher. This should be handled
2133 // separately with app shortcut's index because of ShelfModel's backward
2134 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2135 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2136 // creating two chrome icons.
2137 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2138 // Dictionary value that holds per-display preference of shelf alignment and
2139 // auto-hide behavior. Key of the dictionary is the id of the display, and
2140 // its value is a dictionary whose keys are kShelfAlignment and
2141 // kShelfAutoHideBehavior.
2142 const char kShelfPreferences[] = "shelf_preferences";
2144 // Integer value in milliseconds indicating the length of time for which a
2145 // confirmation dialog should be shown when the user presses the logout button.
2146 // A value of 0 indicates that logout should happen immediately, without showing
2147 // a confirmation dialog.
2148 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2149 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2150 // Boolean value indicating whether to show a logout button in the ash tray.
2151 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2152 #endif
2154 #if defined(USE_AURA)
2155 // Tuning settings for gestures.
2156 const char kMaxSeparationForGestureTouchesInPixels[] =
2157 "gesture.max_separation_for_gesture_touches_in_pixels";
2158 const char kSemiLongPressTimeInMs[] = "gesture.semi_long_press_time_in_ms";
2159 const char kTabScrubActivationDelayInMs[] =
2160 "gesture.tab_scrub_activation_delay_in_ms";
2161 const char kFlingMaxCancelToDownTimeInMs[] =
2162 "gesture.fling_max_cancel_to_down_time_in_ms";
2163 const char kFlingMaxTapGapTimeInMs[] = "gesture.fling_max_tap_gap_time_in_ms";
2164 const char kOverscrollHorizontalThresholdComplete[] =
2165 "overscroll.horizontal_threshold_complete";
2166 const char kOverscrollVerticalThresholdComplete[] =
2167 "overscroll.vertical_threshold_complete";
2168 const char kOverscrollMinimumThresholdStart[] =
2169 "overscroll.minimum_threshold_start";
2170 const char kOverscrollMinimumThresholdStartTouchpad[] =
2171 "overscroll.minimum_threshold_start_touchpad";
2172 const char kOverscrollVerticalThresholdStart[] =
2173 "overscroll.vertical_threshold_start";
2174 const char kOverscrollHorizontalResistThreshold[] =
2175 "overscroll.horizontal_resist_threshold";
2176 const char kOverscrollVerticalResistThreshold[] =
2177 "overscroll.vertical_resist_threshold";
2178 #endif
2180 // Counts how many more times the 'profile on a network share' warning should be
2181 // shown to the user before the next silence period.
2182 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2183 // Tracks the time of the last shown warning. Used to reset
2184 // |network_profile.warnings_left| after a silence period.
2185 const char kNetworkProfileLastWarningTime[] =
2186 "network_profile.last_warning_time";
2188 #if defined(OS_CHROMEOS)
2189 // The RLZ brand code, if enabled.
2190 const char kRLZBrand[] = "rlz.brand";
2191 // Whether RLZ pings are disabled.
2192 const char kRLZDisabled[] = "rlz.disabled";
2193 #endif
2195 #if defined(ENABLE_APP_LIST)
2196 // The directory in user data dir that contains the profile to be used with the
2197 // app launcher.
2198 const char kAppListProfile[] = "app_list.profile";
2200 // The number of times the app launcher was launched since last ping and
2201 // the time of the last ping.
2202 const char kAppListLaunchCount[] = "app_list.launch_count";
2203 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2205 // The number of times the an app was launched from the app launcher since last
2206 // ping and the time of the last ping.
2207 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2208 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2210 // A boolean that tracks whether the user has ever enabled the app launcher.
2211 const char kAppLauncherHasBeenEnabled[] =
2212 "apps.app_launcher.has_been_enabled";
2214 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2215 // install, command line, etc. For UMA.
2216 const char kAppListEnableMethod[] = "app_list.how_enabled";
2218 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2219 const char kAppListEnableTime[] = "app_list.when_enabled";
2221 // TODO(calamity): remove this pref since app launcher will always be
2222 // installed.
2223 // Local state caching knowledge of whether the app launcher is installed.
2224 const char kAppLauncherIsEnabled[] =
2225 "apps.app_launcher.should_show_apps_page";
2227 // Integer representing the version of the app launcher shortcut installed on
2228 // the system. Incremented, e.g., when embedded icons change.
2229 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2231 // A boolean identifying if we should show the app launcher promo or not.
2232 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2234 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2235 // a Drive app id and the value is the corresponding Chrome app id. The pref
2236 // is unsynable and used to track local mappings only.
2237 const char kAppLauncherDriveAppMapping[] =
2238 "apps.app_launcher.drive_app_mapping";
2240 // A list of Drive app ids that tracks the uninstallable Drive apps.
2241 const char kAppLauncherUninstalledDriveApps[] =
2242 "apps.app_launcher.uninstalled_drive_apps";
2243 #endif
2245 // If set, the user requested to launch the app with this extension id while
2246 // in Metro mode, and then relaunched to Desktop mode to start it.
2247 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2249 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2250 // launch of the specified app when restarting Chrome in desktop mode.
2251 const char kAppLaunchForMetroRestartProfile[] =
2252 "apps.app_launch_for_metro_restart_profile";
2254 // An integer that is incremented whenever changes are made to app shortcuts.
2255 // Increasing this causes all app shortcuts to be recreated.
2256 const char kAppShortcutsVersion[] = "apps.shortcuts_version";
2258 // How often the bubble has been shown.
2259 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2261 // A string pref for storing the salt used to compute the pepper device ID.
2262 const char kDRMSalt[] = "settings.privacy.drm_salt";
2263 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2264 // enables the use of remote attestation for content protection.
2265 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2267 // An integer per-profile pref that signals if the watchdog extension is
2268 // installed and active. We need to know if the watchdog extension active for
2269 // ActivityLog initialization before the extension system is initialized.
2270 const char kWatchdogExtensionActive[] =
2271 "profile.extensions.activity_log.num_consumers_active";
2273 #if defined(OS_ANDROID)
2274 // A list of partner bookmark rename/remove mappings.
2275 // Each list item is a dictionary containing a "url", a "provider_title" and
2276 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2277 // given by the PartnerBookmarksProvider and either the user-visible renamed
2278 // title or an empty string if the bookmark node was removed.
2279 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2280 #endif
2282 // Whether DNS Quick Check is disabled in proxy resolution.
2283 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2285 // Whether Guest Mode is enabled within the browser.
2286 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2288 // Whether Adding a new Person is enabled within the user manager.
2289 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2291 // A dictionary that maps user id to hardlock state.
2292 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
2294 // The beginning of time span when we count user's "Nope" for the password
2295 // bubble.
2296 const char kPasswordBubbleTimeStamp[] = "password_bubble.timestamp";
2298 // The count of user's "Nope" for the password bubble.
2299 const char kPasswordBubbleNopesCount[] = "password_bubble.nopes";
2301 // Last user's interaction with the password bubble.
2302 const char kPasswordBubbleLastInteractions[] = "password_bubble.interactions";
2304 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2305 const char kRecoveryComponentNeedsElevation[] =
2306 "recovery_component.needs_elevation";
2308 } // namespace prefs