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"
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
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
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
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
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 -
161 // -----------------------------------------------------------
162 // Initial login - A -
163 // No sync and second login A A -
164 // Change options B B -
165 // -----------------------------------------------------------
166 // Initial login - A -
168 // Locale changed on login screen A C -
170 // -----------------------------------------------------------
171 // Initial login - A -
174 const char kApplicationLocaleBackup
[] = "intl.app_locale_backup";
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
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
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";
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 // Boolean that is true when SafeBrowsing has sent an incident report.
336 const char kSafeBrowsingIncidentReportSent
[] =
337 "safebrowsing.incident_report_sent";
339 // A dictionary mapping incident types to a dict of incident key:digest pairs.
340 const char kSafeBrowsingIncidentsSent
[] = "safebrowsing.incidents_sent";
342 // Enum that specifies whether Incognito mode is:
343 // 0 - Enabled. Default behaviour. Default mode is available on demand.
344 // 1 - Disabled. Used cannot browse pages in Incognito mode.
345 // 2 - Forced. All pages/sessions are forced into Incognito.
346 const char kIncognitoModeAvailability
[] = "incognito.mode_availability";
348 // Boolean that is true when Suggest support is enabled.
349 const char kSearchSuggestEnabled
[] = "search.suggest_enabled";
351 #if defined(OS_ANDROID)
352 // String indicating the Contextual Search enabled state.
353 // "false" - opt-out (disabled)
354 // "" (empty string) - undecided
355 // "true" - opt-in (enabled)
356 const char kContextualSearchEnabled
[] = "search.contextual_search_enabled";
359 // Boolean that indicates whether the browser should put up a confirmation
360 // window when the user is attempting to quit. Mac only.
361 const char kConfirmToQuitEnabled
[] = "browser.confirm_to_quit";
363 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
364 // blocking policy. This has been superseded by kDefaultContentSettings +
365 // kBlockThirdPartyCookies.
366 // 0 - allow all cookies.
367 // 1 - block third-party cookies
368 // 2 - block all cookies
369 const char kCookieBehavior
[] = "security.cookie_behavior";
371 // Boolean which specifies whether we should ask the user if we should download
372 // a file (true) or just download it automatically.
373 const char kPromptForDownload
[] = "download.prompt_for_download";
375 // A boolean pref set to true if we're using Link Doctor error pages.
376 const char kAlternateErrorPagesEnabled
[] = "alternate_error_pages.enabled";
378 // OBSOLETE: new pref now stored with user prefs instead of profile, as
379 // kDnsPrefetchingStartupList.
380 const char kDnsStartupPrefetchList
[] = "StartupDNSPrefetchList";
382 // An adaptively identified list of domain names to be pre-fetched during the
383 // next startup, based on what was actually needed during this startup.
384 const char kDnsPrefetchingStartupList
[] = "dns_prefetching.startup_list";
386 // OBSOLETE: new pref now stored with user prefs instead of profile, as
387 // kDnsPrefetchingHostReferralList.
388 const char kDnsHostReferralList
[] = "HostReferralList";
390 // A list of host names used to fetch web pages, and their commonly used
391 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
392 // preconnecting to, such sub-resource hostnames).
393 // This list is adaptively grown and pruned.
394 const char kDnsPrefetchingHostReferralList
[] =
395 "dns_prefetching.host_referral_list";
397 // Disables the SPDY protocol.
398 const char kDisableSpdy
[] = "spdy.disabled";
400 // Prefs for persisting HttpServerProperties.
401 const char kHttpServerProperties
[] = "net.http_server_properties";
403 // Prefs for server names that support SPDY protocol.
404 const char kSpdyServers
[] = "spdy.servers";
406 // Prefs for servers that support Alternate-Protocol.
407 const char kAlternateProtocolServers
[] = "spdy.alternate_protocol";
409 // Disables the listed protocol schemes.
410 const char kDisabledSchemes
[] = "protocol.disabled_schemes";
412 #if defined(OS_ANDROID) || defined(OS_IOS)
413 // Last time that a check for cloud policy management was done. This time is
414 // recorded on Android so that retries aren't attempted on every startup.
415 // Instead the cloud policy registration is retried at least 1 or 3 days later.
416 const char kLastPolicyCheckTime
[] = "policy.last_policy_check_time";
419 // Prefix URL for the experimental Instant ZeroSuggest provider.
420 const char kInstantUIZeroSuggestUrlPrefix
[] =
421 "instant_ui.zero_suggest_url_prefix";
423 // Used to migrate preferences from local state to user preferences to
424 // enable multiple profiles.
425 // BITMASK with possible values (see browser_prefs.cc for enum):
426 // 0: No preferences migrated.
427 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
428 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
429 // kBrowserWindowPlacement
430 const char kMultipleProfilePrefMigration
[] =
431 "local_state.multiple_profile_prefs_version";
433 // A boolean pref set to true if prediction of network actions is allowed.
434 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
435 // of web pages, and resource prefetching.
436 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
437 // preferences are not lost.
438 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
439 // is functioning as per crbug.com/334602.
440 const char kNetworkPredictionEnabled
[] = "dns_prefetching.enabled";
442 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
443 // if prediction of network actions is allowed, depending on network type.
444 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
445 // of web pages, and resource prefetching.
446 // TODO(bnc): Implement this preference as per crbug.com/334602.
447 const char kNetworkPredictionOptions
[] = "net.network_prediction_options";
449 // An integer representing the state of the default apps installation process.
450 // This value is persisted in the profile's user preferences because the process
451 // is async, and the user may have stopped chrome in the middle. The next time
452 // the profile is opened, the process will continue from where it left off.
454 // See possible values in external_provider_impl.cc.
455 const char kDefaultAppsInstallState
[] = "default_apps_install_state";
457 // A boolean pref set to true if the Chrome Web Store icons should be hidden
458 // from the New Tab Page and app launcher.
459 const char kHideWebStoreIcon
[] = "hide_web_store_icon";
461 #if defined(OS_CHROMEOS)
462 // A dictionary pref to hold the mute setting for all the currently known
464 const char kAudioDevicesMute
[] = "settings.audio.devices.mute";
466 // A dictionary pref storing the volume settings for all the currently known
468 const char kAudioDevicesVolumePercent
[] =
469 "settings.audio.devices.volume_percent";
471 // An integer pref to initially mute volume if 1. This pref is ignored if
472 // |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
473 // when the policy is lifted the original mute state is restored. This setting
474 // is here only for migration purposes now. It is being replaced by the
475 // |kAudioDevicesMute| setting.
476 const char kAudioMute
[] = "settings.audio.mute";
478 // A double pref storing the user-requested volume. This setting is here only
479 // for migration purposes now. It is being replaced by the
480 // |kAudioDevicesVolumePercent| setting.
481 const char kAudioVolumePercent
[] = "settings.audio.volume_percent";
483 // A boolean pref set to true if touchpad tap-to-click is enabled.
484 const char kTapToClickEnabled
[] = "settings.touchpad.enable_tap_to_click";
486 // A boolean pref set to true if touchpad tap-dragging is enabled.
487 const char kTapDraggingEnabled
[] = "settings.touchpad.enable_tap_dragging";
489 // A boolean pref set to true if touchpad three-finger-click is enabled.
490 const char kEnableTouchpadThreeFingerClick
[] =
491 "settings.touchpad.enable_three_finger_click";
493 // A boolean pref set to true if touchpad natural scrolling is enabled.
494 const char kNaturalScroll
[] = "settings.touchpad.natural_scroll";
496 // A boolean pref set to true if primary mouse button is the left button.
497 const char kPrimaryMouseButtonRight
[] = "settings.mouse.primary_right";
499 // A integer pref for the touchpad sensitivity.
500 const char kMouseSensitivity
[] = "settings.mouse.sensitivity2";
502 // A integer pref for the touchpad sensitivity.
503 const char kTouchpadSensitivity
[] = "settings.touchpad.sensitivity2";
505 // A boolean pref set to true if time should be displayed in 24-hour clock.
506 const char kUse24HourClock
[] = "settings.clock.use_24hour_clock";
508 // A boolean pref to disable Google Drive integration.
509 // The pref prefix should remain as "gdata" for backward compatibility.
510 const char kDisableDrive
[] = "gdata.disabled";
512 // A boolean pref to disable Drive over cellular connections.
513 // The pref prefix should remain as "gdata" for backward compatibility.
514 const char kDisableDriveOverCellular
[] = "gdata.cellular.disabled";
516 // A boolean pref to disable hosted files on Drive.
517 // The pref prefix should remain as "gdata" for backward compatibility.
518 const char kDisableDriveHostedFiles
[] = "gdata.hosted_files.disabled";
520 // A string pref set to the current input method.
521 const char kLanguageCurrentInputMethod
[] =
522 "settings.language.current_input_method";
524 // A string pref set to the previous input method.
525 const char kLanguagePreviousInputMethod
[] =
526 "settings.language.previous_input_method";
528 // A string pref (comma-separated list) set to the "next engine in menu"
530 const char kLanguageHotkeyNextEngineInMenu
[] =
531 "settings.language.hotkey_next_engine_in_menu";
533 // A string pref (comma-separated list) set to the "previous engine"
535 const char kLanguageHotkeyPreviousEngine
[] =
536 "settings.language.hotkey_previous_engine";
538 // A string pref (comma-separated list) set to the preferred language IDs
539 // (ex. "en-US,fr,ko").
540 const char kLanguagePreferredLanguages
[] =
541 "settings.language.preferred_languages";
543 // A string pref (comma-separated list) set to the preloaded (active) input
544 // method IDs (ex. "pinyin,mozc").
545 const char kLanguagePreloadEngines
[] = "settings.language.preload_engines";
547 // A List pref (comma-separated list) set to the extension IMEs to be enabled.
548 const char kLanguageEnabledExtensionImes
[] =
549 "settings.language.enabled_extension_imes";
551 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
552 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
553 // src/chrome/browser/chromeos/input_method/xkeyboard.h
554 const char kLanguageRemapSearchKeyTo
[] =
555 // Note: we no longer use XKB for remapping these keys, but we can't change
556 // the pref names since the names are already synced with the cloud.
557 "settings.language.xkb_remap_search_key_to";
558 const char kLanguageRemapControlKeyTo
[] =
559 "settings.language.xkb_remap_control_key_to";
560 const char kLanguageRemapAltKeyTo
[] =
561 "settings.language.xkb_remap_alt_key_to";
562 const char kLanguageRemapCapsLockKeyTo
[] =
563 "settings.language.remap_caps_lock_key_to";
564 const char kLanguageRemapDiamondKeyTo
[] =
565 "settings.language.remap_diamond_key_to";
567 // A boolean pref that causes top-row keys to be interpreted as function keys
568 // instead of as media keys.
569 const char kLanguageSendFunctionKeys
[] =
570 "settings.language.send_function_keys";
572 // A boolean pref which determines whether key repeat is enabled.
573 const char kLanguageXkbAutoRepeatEnabled
[] =
574 "settings.language.xkb_auto_repeat_enabled_r2";
575 // A integer pref which determines key repeat delay (in ms).
576 const char kLanguageXkbAutoRepeatDelay
[] =
577 "settings.language.xkb_auto_repeat_delay_r2";
578 // A integer pref which determines key repeat interval (in ms).
579 const char kLanguageXkbAutoRepeatInterval
[] =
580 "settings.language.xkb_auto_repeat_interval_r2";
581 // "_r2" suffixes were added to the three prefs above when we changed the
582 // preferences to not be user-configurable or sync with the cloud. The prefs are
583 // now user-configurable and syncable again, but we don't want to overwrite the
584 // current values with the old synced values, so we continue to use this suffix.
586 // A boolean pref which determines whether the large cursor feature is enabled.
587 const char kAccessibilityLargeCursorEnabled
[] =
588 "settings.a11y.large_cursor_enabled";
590 // A boolean pref which determines whether the sticky keys feature is enabled.
591 const char kAccessibilityStickyKeysEnabled
[] =
592 "settings.a11y.sticky_keys_enabled";
593 // A boolean pref which determines whether spoken feedback is enabled.
594 const char kAccessibilitySpokenFeedbackEnabled
[] = "settings.accessibility";
595 // A boolean pref which determines whether high conrast is enabled.
596 const char kAccessibilityHighContrastEnabled
[] =
597 "settings.a11y.high_contrast_enabled";
598 // A boolean pref which determines whether screen magnifier is enabled.
599 const char kAccessibilityScreenMagnifierEnabled
[] =
600 "settings.a11y.screen_magnifier";
601 // A integer pref which determines what type of screen magnifier is enabled.
602 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
603 // we are using another name pref here.
604 const char kAccessibilityScreenMagnifierType
[] =
605 "settings.a11y.screen_magnifier_type2";
606 // A double pref which determines a zooming scale of the screen magnifier.
607 const char kAccessibilityScreenMagnifierScale
[] =
608 "settings.a11y.screen_magnifier_scale";
609 // A boolean pref which determines whether the virtual keyboard is enabled for
610 // accessibility. This feature is separate from displaying an onscreen keyboard
611 // due to lack of a physical keyboard.
612 const char kAccessibilityVirtualKeyboardEnabled
[] =
613 "settings.a11y.virtual_keyboard";
614 // A boolean pref which determines whether autoclick is enabled.
615 const char kAccessibilityAutoclickEnabled
[] = "settings.a11y.autoclick";
616 // An integer pref which determines time in ms between when the mouse cursor
617 // stops and when an autoclick is triggered.
618 const char kAccessibilityAutoclickDelayMs
[] =
619 "settings.a11y.autoclick_delay_ms";
620 // A boolean pref which determines whether the accessibility menu shows
621 // regardless of the state of a11y features.
622 const char kShouldAlwaysShowAccessibilityMenu
[] = "settings.a11y.enable_menu";
624 // A boolean pref which turns on Advanced Filesystem
625 // (USB support, SD card, etc).
626 const char kLabsAdvancedFilesystemEnabled
[] =
627 "settings.labs.advanced_filesystem";
629 // A boolean pref which turns on the mediaplayer.
630 const char kLabsMediaplayerEnabled
[] = "settings.labs.mediaplayer";
632 // A boolean pref that turns on automatic screen locking.
633 const char kEnableAutoScreenLock
[] = "settings.enable_screen_lock";
635 // A boolean pref of whether to show mobile plan notifications.
636 const char kShowPlanNotifications
[] =
637 "settings.internet.mobile.show_plan_notifications";
639 // A boolean pref of whether to show 3G promo notification.
640 const char kShow3gPromoNotification
[] =
641 "settings.internet.mobile.show_3g_promo_notification";
643 // A string pref that contains version where "What's new" promo was shown.
644 const char kChromeOSReleaseNotesVersion
[] = "settings.release_notes.version";
646 // A boolean pref that controls whether proxy settings from shared network
647 // settings (accordingly from device policy) are applied or ignored.
648 const char kUseSharedProxies
[] = "settings.use_shared_proxies";
650 // Power state of the current displays from the last run.
651 const char kDisplayPowerState
[] = "settings.display.power_state";
652 // A dictionary pref that stores per display preferences.
653 const char kDisplayProperties
[] = "settings.display.properties";
655 // A dictionary pref that specifies per-display layout/offset information.
656 // Its key is the ID of the display and its value is a dictionary for the
657 // layout/offset information.
658 const char kSecondaryDisplays
[] = "settings.display.secondary_displays";
660 // A dictionary pref that specifies the state of the rotation lock, and the
661 // display orientation, for the internal display.
662 const char kDisplayRotationLock
[] = "settings.display.rotation_lock";
664 // A boolean pref indicating whether user activity has been observed in the
665 // current session already. The pref is used to restore information about user
666 // activity after browser crashes.
667 const char kSessionUserActivitySeen
[] = "session.user_activity_seen";
669 // A preference to keep track of the session start time. If the session length
670 // limit is configured to start running after initial user activity has been
671 // observed, the pref is set after the first user activity in a session.
672 // Otherwise, it is set immediately after session start. The pref is used to
673 // restore the session start time after browser crashes. The time is expressed
674 // as the serialization obtained from base::TimeTicks::ToInternalValue().
675 const char kSessionStartTime
[] = "session.start_time";
677 // Holds the maximum session time in milliseconds. If this pref is set, the
678 // user is logged out when the maximum session time is reached. The user is
679 // informed about the remaining time by a countdown timer shown in the ash
681 const char kSessionLengthLimit
[] = "session.length_limit";
683 // Whether the session length limit should start running only after the first
684 // user activity has been observed in a session.
685 const char kSessionWaitForInitialUserActivity
[] =
686 "session.wait_for_initial_user_activity";
688 // Inactivity time in milliseconds while the system is on AC power before
689 // the screen should be dimmed, turned off, or locked, before an
690 // IdleActionImminent D-Bus signal should be sent, or before
691 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
692 // kPowerAcIdleDelayMs).
693 const char kPowerAcScreenDimDelayMs
[] = "power.ac_screen_dim_delay_ms";
694 const char kPowerAcScreenOffDelayMs
[] = "power.ac_screen_off_delay_ms";
695 const char kPowerAcScreenLockDelayMs
[] = "power.ac_screen_lock_delay_ms";
696 const char kPowerAcIdleWarningDelayMs
[] = "power.ac_idle_warning_delay_ms";
697 const char kPowerAcIdleDelayMs
[] = "power.ac_idle_delay_ms";
699 // Similar delays while the system is on battery power.
700 const char kPowerBatteryScreenDimDelayMs
[] =
701 "power.battery_screen_dim_delay_ms";
702 const char kPowerBatteryScreenOffDelayMs
[] =
703 "power.battery_screen_off_delay_ms";
704 const char kPowerBatteryScreenLockDelayMs
[] =
705 "power.battery_screen_lock_delay_ms";
706 const char kPowerBatteryIdleWarningDelayMs
[] =
707 "power.battery_idle_warning_delay_ms";
708 const char kPowerBatteryIdleDelayMs
[] =
709 "power.battery_idle_delay_ms";
711 // Action that should be performed when the idle delay is reached while the
712 // system is on AC power or battery power.
713 // Values are from the chromeos::PowerPolicyController::Action enum.
714 const char kPowerAcIdleAction
[] = "power.ac_idle_action";
715 const char kPowerBatteryIdleAction
[] = "power.battery_idle_action";
717 // Action that should be performed when the lid is closed.
718 // Values are from the chromeos::PowerPolicyController::Action enum.
719 const char kPowerLidClosedAction
[] = "power.lid_closed_action";
721 // Should audio and video activity be used to disable the above delays?
722 const char kPowerUseAudioActivity
[] = "power.use_audio_activity";
723 const char kPowerUseVideoActivity
[] = "power.use_video_activity";
725 // Should extensions be able to use the chrome.power API to override
726 // screen-related power management (including locking)?
727 const char kPowerAllowScreenWakeLocks
[] = "power.allow_screen_wake_locks";
729 // Amount by which the screen-dim delay should be scaled while the system
730 // is in presentation mode. Values are limited to a minimum of 1.0.
731 const char kPowerPresentationScreenDimDelayFactor
[] =
732 "power.presentation_screen_dim_delay_factor";
734 // Amount by which the screen-dim delay should be scaled when user activity is
735 // observed while the screen is dimmed or soon after the screen has been turned
736 // off. Values are limited to a minimum of 1.0.
737 const char kPowerUserActivityScreenDimDelayFactor
[] =
738 "power.user_activity_screen_dim_delay_factor";
740 // Whether the power management delays should start running only after the first
741 // user activity has been observed in a session.
742 const char kPowerWaitForInitialUserActivity
[] =
743 "power.wait_for_initial_user_activity";
745 // The URL from which the Terms of Service can be downloaded. The value is only
746 // honored for public accounts.
747 const char kTermsOfServiceURL
[] = "terms_of_service.url";
749 // Indicates that the Profile has made navigations that used a certificate
750 // installed by the system administrator. If that is true then the local cache
751 // of remote data is tainted (e.g. shared scripts), and future navigations
752 // show a warning indicating that the organization may track the browsing
754 const char kUsedPolicyCertificatesOnce
[] = "used_policy_certificates_once";
756 // Indicates whether the remote attestation is enabled for the user.
757 const char kAttestationEnabled
[] = "attestation.enabled";
758 // The list of extensions allowed to use the platformKeysPrivate API for
759 // remote attestation.
760 const char kAttestationExtensionWhitelist
[] = "attestation.extension_whitelist";
762 // A boolean pref indicating whether the projection touch HUD is enabled or not.
763 const char kTouchHudProjectionEnabled
[] = "touch_hud.projection_enabled";
765 // A pref to configure networks. Its value must be a list of
766 // NetworkConfigurations according to the OpenNetworkConfiguration
768 // Currently, this pref is only used to store the policy. The user's
769 // configuration is still stored in Shill.
770 const char kOpenNetworkConfiguration
[] = "onc";
772 // A boolean pref that tracks whether the user has already given consent for
773 // enabling remote attestation for content protection.
774 const char kRAConsentFirstTime
[] = "settings.privacy.ra_consent";
776 // A boolean pref recording whether user has dismissed the multiprofile
777 // itroduction dialog show.
778 const char kMultiProfileNeverShowIntro
[] =
779 "settings.multi_profile_never_show_intro";
781 // A boolean pref recording whether user has dismissed the multiprofile
782 // teleport warning dialog show.
783 const char kMultiProfileWarningShowDismissed
[] =
784 "settings.multi_profile_warning_show_dismissed";
786 // A string pref that holds string enum values of how the user should behave
787 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
788 // for more details of the valid values.
789 const char kMultiProfileUserBehavior
[] = "settings.multiprofile_user_behavior";
791 // A boolean preference indicating whether user has seen first-run tutorial
793 const char kFirstRunTutorialShown
[] = "settings.first_run_tutorial_shown";
795 // Indicates the amount of time for which a user authenticated via SAML can use
796 // offline authentication against a cached password before being forced to go
797 // through online authentication against GAIA again. The time is expressed in
798 // seconds. A value of -1 indicates no limit, allowing the user to use offline
799 // authentication indefinitely. The limit is in effect only if GAIA redirected
800 // the user to a SAML IdP during the last online authentication.
801 const char kSAMLOfflineSigninTimeLimit
[] = "saml.offline_signin_time_limit";
803 // A preference to keep track of the last time the user authenticated against
804 // GAIA using SAML. The preference is updated whenever the user authenticates
805 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
806 // current time. If GAIA performs the authentication itself, the preference is
807 // cleared. The time is expressed as the serialization obtained from
808 // base::Time::ToInternalValue().
809 const char kSAMLLastGAIASignInTime
[] = "saml.last_gaia_sign_in_time";
811 // The total number of seconds that the machine has spent sitting on the
813 const char kTimeOnOobe
[] = "settings.time_on_oobe";
815 // The app/extension name who sets the current wallpaper. If current wallpaper
816 // is set by the component wallpaper picker, it is set to an empty string.
817 const char kCurrentWallpaperAppName
[] = "wallpaper.app.name";
819 // List of mounted file systems via the File System Provider API. Used to
820 // restore them after a reboot.
821 const char kFileSystemProviderMounted
[] = "file_system_provider.mounted";
823 // A boolean pref set to true if the virtual keyboard should be enabled.
824 const char kTouchVirtualKeyboardEnabled
[] = "ui.touch_virtual_keyboard_enabled";
826 // An integer pref that controls the wake on wifi features that should be
828 const char kWakeOnWiFiEnabled
[] = "settings.internet.wake_on_wifi";
830 #endif // defined(OS_CHROMEOS)
832 // The disabled messages in IPC logging.
833 const char kIpcDisabledMessages
[] = "ipc_log_disabled_messages";
835 // A boolean pref set to true if a Home button to open the Home pages should be
836 // visible on the toolbar.
837 const char kShowHomeButton
[] = "browser.show_home_button";
839 // A string value which saves short list of recently user selected encodings
840 // separated with comma punctuation mark.
841 const char kRecentlySelectedEncoding
[] = "profile.recently_selected_encodings";
843 // Clear Browsing Data dialog preferences.
844 const char kDeleteBrowsingHistory
[] = "browser.clear_data.browsing_history";
845 const char kDeleteDownloadHistory
[] = "browser.clear_data.download_history";
846 const char kDeleteCache
[] = "browser.clear_data.cache";
847 const char kDeleteCookies
[] = "browser.clear_data.cookies";
848 const char kDeletePasswords
[] = "browser.clear_data.passwords";
849 const char kDeleteFormData
[] = "browser.clear_data.form_data";
850 const char kDeleteHostedAppsData
[] = "browser.clear_data.hosted_apps_data";
851 const char kDeauthorizeContentLicenses
[] =
852 "browser.clear_data.content_licenses";
853 const char kDeleteTimePeriod
[] = "browser.clear_data.time_period";
854 const char kLastClearBrowsingDataTime
[] =
855 "browser.last_clear_browsing_data_time";
857 // Boolean pref to define the default values for using spellchecker.
858 const char kEnableContinuousSpellcheck
[] = "browser.enable_spellchecking";
860 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
861 const char kEnabledLabsExperiments
[] = "browser.enabled_labs_experiments";
863 // Boolean pref to define the default values for using auto spell correct.
864 const char kEnableAutoSpellCorrect
[] = "browser.enable_autospellcorrect";
866 // Boolean pref to define the default setting for "block offensive words".
867 // The old key value is kept to avoid unnecessary migration code.
868 const char kSpeechRecognitionFilterProfanities
[] =
869 "browser.speechinput_censor_results";
871 // List of speech recognition context names (extensions or websites) for which
872 // the tray notification balloon has already been shown.
873 const char kSpeechRecognitionTrayNotificationShownContexts
[] =
874 "browser.speechinput_tray_notification_shown_contexts";
876 // Boolean controlling whether history saving is disabled.
877 const char kSavingBrowserHistoryDisabled
[] = "history.saving_disabled";
879 // Boolean controlling whether deleting browsing and download history is
881 const char kAllowDeletingBrowserHistory
[] = "history.deleting_enabled";
883 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
884 const char kForceSafeSearch
[] = "settings.force_safesearch";
886 // Boolean controlling whether History is recorded and synced for
888 const char kRecordHistory
[] = "settings.history_recorded";
890 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
891 // Linux specific preference on whether we should match the system theme.
892 const char kUsesSystemTheme
[] = "extensions.theme.use_system";
894 const char kCurrentThemePackFilename
[] = "extensions.theme.pack";
895 const char kCurrentThemeID
[] = "extensions.theme.id";
896 const char kCurrentThemeImages
[] = "extensions.theme.images";
897 const char kCurrentThemeColors
[] = "extensions.theme.colors";
898 const char kCurrentThemeTints
[] = "extensions.theme.tints";
899 const char kCurrentThemeDisplayProperties
[] = "extensions.theme.properties";
901 // Boolean pref which persists whether the extensions_ui is in developer mode
902 // (showing developer packing tools and extensions details)
903 const char kExtensionsUIDeveloperMode
[] = "extensions.ui.developer_mode";
905 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
906 // Tool promotion has been dismissed by the user.
907 const char kExtensionsUIDismissedADTPromo
[] =
908 "extensions.ui.dismissed_adt_promo";
910 // Dictionary pref that tracks which command belongs to which
911 // extension + named command pair.
912 const char kExtensionCommands
[] = "extensions.commands";
914 // Pref containing the directory for internal plugins as written to the plugins
916 const char kPluginsLastInternalDirectory
[] = "plugins.last_internal_directory";
918 // List pref containing information (dictionaries) on plugins.
919 const char kPluginsPluginsList
[] = "plugins.plugins_list";
921 // List pref containing names of plugins that are disabled by policy.
922 const char kPluginsDisabledPlugins
[] = "plugins.plugins_disabled";
924 // List pref containing exceptions to the list of plugins disabled by policy.
925 const char kPluginsDisabledPluginsExceptions
[] =
926 "plugins.plugins_disabled_exceptions";
928 // List pref containing names of plugins that are enabled by policy.
929 const char kPluginsEnabledPlugins
[] = "plugins.plugins_enabled";
931 // When bundled NPAPI Flash is removed, if at that point it is enabled while
932 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
933 // want to do so only once.
934 const char kPluginsMigratedToPepperFlash
[] = "plugins.migrated_to_pepper_flash";
936 // In the early stage of component-updated PPAPI Flash, we did field trials in
937 // which it was set to disabled by default. The corresponding settings item may
938 // remain in some users' profiles. Currently it affects both the bundled and
939 // component-updated PPAPI Flash (since the two share the same enable/disable
940 // state). We want to remove this item to get those users to use PPAPI Flash.
941 // We will want to do so only once.
942 const char kPluginsRemovedOldComponentPepperFlashSettings
[] =
943 "plugins.removed_old_component_pepper_flash_settings";
945 #if !defined(OS_ANDROID)
946 // Whether about:plugins is shown in the details mode or not.
947 const char kPluginsShowDetails
[] = "plugins.show_details";
950 // Boolean that indicates whether outdated plugins are allowed or not.
951 const char kPluginsAllowOutdated
[] = "plugins.allow_outdated";
953 // Boolean that indicates whether plugins that require authorization should
954 // be always allowed or not.
955 const char kPluginsAlwaysAuthorize
[] = "plugins.always_authorize";
957 #if defined(ENABLE_PLUGIN_INSTALLATION)
958 // Dictionary holding plug-ins metadata.
959 const char kPluginsMetadata
[] = "plugins.metadata";
961 // Last update time of plug-ins resource cache.
962 const char kPluginsResourceCacheUpdate
[] = "plugins.resource_cache_update";
965 // Boolean that indicates whether we should check if we are the default browser
967 const char kCheckDefaultBrowser
[] = "browser.check_default_browser";
969 // Policy setting whether default browser check should be disabled and default
970 // browser registration should take place.
971 const char kDefaultBrowserSettingEnabled
[] =
972 "browser.default_browser_setting_enabled";
974 #if defined(OS_MACOSX)
975 // Boolean that indicates whether the application should show the info bar
976 // asking the user to set up automatic updates when Keystone promotion is
978 const char kShowUpdatePromotionInfoBar
[] =
979 "browser.show_update_promotion_info_bar";
982 // Boolean that is false if we should show window manager decorations. If
983 // true, we draw a custom chrome frame (thicker title bar and blue border).
984 const char kUseCustomChromeFrame
[] = "browser.custom_chrome_frame";
986 #if !defined(OS_ANDROID)
987 // Which plugins have been whitelisted manually by the user.
988 const char kContentSettingsPluginWhitelist
[] =
989 "profile.content_settings.plugin_whitelist";
992 // Boolean that is true if we should unconditionally block third-party cookies,
993 // regardless of other content settings.
994 const char kBlockThirdPartyCookies
[] = "profile.block_third_party_cookies";
996 // Boolean that is true when all locally stored site data (e.g. cookies, local
997 // storage, etc..) should be deleted on exit.
998 const char kClearSiteDataOnExit
[] = "profile.clear_site_data_on_exit";
1000 // Double that indicates the default zoom level.
1001 const char kPartitionDefaultZoomLevel
[] = "partition.default_zoom_level";
1002 // TODO(wjmaclean): Remove this once sufficient users have migrated to the
1003 // per-StoragePartition zoom levels. http://crbug.com/420643.
1004 const char kDefaultZoomLevelDeprecated
[] = "profile.default_zoom_level";
1006 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
1007 // be displayed at the default zoom level.
1008 const char kPartitionPerHostZoomLevels
[] = "partition.per_host_zoom_levels";
1009 // TODO(wjmaclean): Remove this.
1010 const char kPerHostZoomLevelsDeprecated
[] = "profile.per_host_zoom_levels";
1012 // A dictionary that tracks the default data model to use for each section of
1014 const char kAutofillDialogAutofillDefault
[] = "autofill.data_model_default";
1016 // Whether a user opted out of making purchases with Google Wallet; changed via
1017 // the autofill dialog's account chooser and set explicitly on dialog submission
1018 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1019 const char kAutofillDialogPayWithoutWallet
[] = "autofill.pay_without_wallet";
1021 // Which GAIA users have accepted that use of Google Wallet implies their
1022 // location will be shared with fraud protection services.
1023 const char kAutofillDialogWalletLocationAcceptance
[] =
1024 "autofill.wallet_location_disclosure";
1026 // Whether a user wants to save data locally in Autofill.
1027 const char kAutofillDialogSaveData
[] = "autofill.save_data";
1029 // Whether the user has selected "Same as billing" for the shipping address when
1030 // using Google Wallet.
1031 const char kAutofillDialogWalletShippingSameAsBilling
[] =
1032 "autofill.wallet_shipping_same_as_billing";
1034 // The number of times the generated credit card bubble has been shown.
1035 const char kAutofillGeneratedCardBubbleTimesShown
[] =
1036 "autofill.generated_card_bubble_times_shown";
1038 // A dictionary that tracks the defaults to be set on the next invocation
1039 // of the requestAutocomplete dialog.
1040 const char kAutofillDialogDefaults
[] = "autofill.rac_dialog_defaults";
1042 #if !defined(OS_ANDROID)
1043 const char kPinnedTabs
[] = "pinned_tabs";
1046 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1047 const char kDisable3DAPIs
[] = "disable_3d_apis";
1049 const char kEnableDeprecatedWebPlatformFeatures
[] =
1050 "enable_deprecated_web_platform_features";
1052 // Whether to enable hyperlink auditing ("<a ping>").
1053 const char kEnableHyperlinkAuditing
[] = "enable_a_ping";
1055 // Whether to enable sending referrers.
1056 const char kEnableReferrers
[] = "enable_referrers";
1058 // Whether to send the DNT header.
1059 const char kEnableDoNotTrack
[] = "enable_do_not_track";
1061 // GL_VENDOR string.
1062 const char kGLVendorString
[] = "gl_vendor_string";
1064 // GL_RENDERER string.
1065 const char kGLRendererString
[] = "gl_renderer_string";
1067 // GL_VERSION string.
1068 const char kGLVersionString
[] = "gl_version_string";
1070 // Boolean that specifies whether to import the form data for autofill from the
1071 // default browser on first run.
1072 const char kImportAutofillFormData
[] = "import_autofill_form_data";
1074 // Boolean that specifies whether to import bookmarks from the default browser
1076 const char kImportBookmarks
[] = "import_bookmarks";
1078 // Boolean that specifies whether to import the browsing history from the
1079 // default browser on first run.
1080 const char kImportHistory
[] = "import_history";
1082 // Boolean that specifies whether to import the homepage from the default
1083 // browser on first run.
1084 const char kImportHomepage
[] = "import_home_page";
1086 // Boolean that specifies whether to import the saved passwords from the default
1087 // browser on first run.
1088 const char kImportSavedPasswords
[] = "import_saved_passwords";
1090 // Boolean that specifies whether to import the search engine from the default
1091 // browser on first run.
1092 const char kImportSearchEngine
[] = "import_search_engine";
1094 // Profile avatar and name
1095 const char kProfileAvatarIndex
[] = "profile.avatar_index";
1096 const char kProfileName
[] = "profile.name";
1097 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1098 // because it was randomly assigned at profile creation time.
1099 const char kProfileUsingDefaultName
[] = "profile.using_default_name";
1100 // Whether a profile is using an avatar without having explicitely chosen it
1101 // (i.e. was assigned by default by legacy profile creation).
1102 const char kProfileUsingDefaultAvatar
[] = "profile.using_default_avatar";
1103 const char kProfileUsingGAIAAvatar
[] = "profile.using_gaia_avatar";
1105 // The supervised user ID.
1106 const char kSupervisedUserId
[] = "profile.managed_user_id";
1108 // 64-bit integer serialization of the base::Time when the user's GAIA info
1109 // was last updated.
1110 const char kProfileGAIAInfoUpdateTime
[] = "profile.gaia_info_update_time";
1112 // The URL from which the GAIA profile picture was downloaded. This is cached to
1113 // prevent the same picture from being downloaded multiple times.
1114 const char kProfileGAIAInfoPictureURL
[] = "profile.gaia_info_picture_url";
1116 // Integer that specifies the number of times that we have shown the upgrade
1117 // tutorial card in the avatar menu bubble.
1118 const char kProfileAvatarTutorialShown
[] =
1119 "profile.avatar_bubble_tutorial_shown";
1121 // Indicates if we've already shown a notification that high contrast
1122 // mode is on, recommending high-contrast extensions and themes.
1123 const char kInvertNotificationShown
[] = "invert_notification_version_2_shown";
1125 // Boolean controlling whether printing is enabled.
1126 const char kPrintingEnabled
[] = "printing.enabled";
1128 // Boolean controlling whether print preview is disabled.
1129 const char kPrintPreviewDisabled
[] = "printing.print_preview_disabled";
1131 // An integer pref specifying the fallback behavior for sites outside of content
1133 // 0: Allow (does nothing)
1136 const char kDefaultSupervisedUserFilteringBehavior
[] =
1137 "profile.managed.default_filtering_behavior";
1139 // Whether this user is permitted to create supervised users.
1140 const char kSupervisedUserCreationAllowed
[] =
1141 "profile.managed_user_creation_allowed";
1143 // List pref containing the users supervised by this user.
1144 const char kSupervisedUsers
[] = "profile.managed_users";
1146 // String that indicates that the profile reset prompt has already been shown to
1147 // the user (profile).
1148 const char kProfileResetPromptMementoInProfilePrefs
[] =
1149 "profile.reset_prompt_memento";
1151 // List pref containing the extension ids which are not allowed to send
1152 // notifications to the message center.
1153 const char kMessageCenterDisabledExtensionIds
[] =
1154 "message_center.disabled_extension_ids";
1156 // List pref containing the system component ids which are not allowed to send
1157 // notifications to the message center.
1158 const char kMessageCenterDisabledSystemComponentIds
[] =
1159 "message_center.disabled_system_component_ids";
1161 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1162 // by the user. Syncable.
1163 // Note: This is now read-only. The welcome notification writes the _local
1165 extern const char kWelcomeNotificationDismissed
[] =
1166 "message_center.welcome_notification_dismissed";
1168 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1169 // by the user on this machine.
1170 extern const char kWelcomeNotificationDismissedLocal
[] =
1171 "message_center.welcome_notification_dismissed_local";
1173 // Boolean pref indicating the welcome notification was previously popped up.
1174 extern const char kWelcomeNotificationPreviouslyPoppedUp
[] =
1175 "message_center.welcome_notification_previously_popped_up";
1177 // Integer pref containing the expiration timestamp of the welcome notification.
1178 extern const char kWelcomeNotificationExpirationTimestamp
[] =
1179 "message_center.welcome_notification_expiration_timestamp";
1181 // Boolean pref that determines whether the user can enter fullscreen mode.
1182 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1184 extern const char kFullscreenAllowed
[] = "fullscreen.allowed";
1186 // Enable notifications for new devices on the local network that can be
1187 // registered to the user's account, e.g. Google Cloud Print printers.
1188 const char kLocalDiscoveryNotificationsEnabled
[] =
1189 "local_discovery.notifications_enabled";
1191 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
1192 // a preference was reset.
1193 const char kPreferenceResetTime
[] = "prefs.preference_reset_time";
1195 // The GCM channel's enabled state.
1196 const char kGCMChannelEnabled
[] = "gcm.channel_enabled";
1198 // How many Service Workers are registered with the Push API (could be zero).
1199 const char kPushMessagingRegistrationCount
[] =
1200 "gcm.push_messaging_registration_count";
1202 // Whether a user is allowed to use Easy Unlock.
1203 const char kEasyUnlockAllowed
[] = "easy_unlock.allowed";
1205 // Whether Easy Unlock is enabled.
1206 const char kEasyUnlockEnabled
[] = "easy_unlock.enabled";
1208 // Preference storing Easy Unlock pairing data.
1209 const char kEasyUnlockPairing
[] = "easy_unlock.pairing";
1211 // Whether close proximity between the remote and the local device is required
1212 // in order to use Easy Unlock.
1213 const char kEasyUnlockProximityRequired
[] = "easy_unlock.proximity_required";
1215 // Whether to show the Easy Unlock first run tutorial.
1216 const char kEasyUnlockShowTutorial
[] = "easy_unlock.show_tutorial";
1218 // A cache of zero suggest results using JSON serialized into a string.
1219 const char kZeroSuggestCachedResults
[] = "zerosuggest.cachedresults";
1221 // *************** LOCAL STATE ***************
1222 // These are attached to the machine/installation
1224 // A pref to configure networks device-wide. Its value must be a list of
1225 // NetworkConfigurations according to the OpenNetworkConfiguration
1227 // Currently, this pref is only used to store the policy. The user's
1228 // configuration is still stored in Shill.
1229 const char kDeviceOpenNetworkConfiguration
[] = "device_onc";
1231 // Directory of the last profile used.
1232 const char kProfileLastUsed
[] = "profile.last_used";
1234 // List of directories of the profiles last active.
1235 const char kProfilesLastActive
[] = "profile.last_active_profiles";
1237 // Total number of profiles created for this Chrome build. Used to tag profile
1239 const char kProfilesNumCreated
[] = "profile.profiles_created";
1241 // String containing the version of Chrome that the profile was created by.
1242 // If profile was created before this feature was added, this pref will default
1244 const char kProfileCreatedByVersion
[] = "profile.created_by_version";
1246 // A map of profile data directory to cached information. This cache can be
1247 // used to display information about profiles without actually having to load
1249 const char kProfileInfoCache
[] = "profile.info_cache";
1251 // Dictionary that maps profile keys to strings that indicate that the profile
1252 // reset prompt has already been shown to the corresponding user (profile).
1253 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1254 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1255 // explanation of why this redundancy is needed.
1256 const char kProfileResetPromptMementosInLocalState
[] =
1257 "profile.reset_prompt_mementos";
1259 // Prefs for SSLConfigServicePref.
1260 const char kCertRevocationCheckingEnabled
[] = "ssl.rev_checking.enabled";
1261 const char kCertRevocationCheckingRequiredLocalAnchors
[] =
1262 "ssl.rev_checking.required_for_local_anchors";
1263 const char kSSLVersionMin
[] = "ssl.version_min";
1264 const char kSSLVersionMax
[] = "ssl.version_max";
1265 const char kSSLVersionFallbackMin
[] = "ssl.version_fallback_min";
1266 const char kCipherSuiteBlacklist
[] = "ssl.cipher_suites.blacklist";
1267 const char kDisableSSLRecordSplitting
[] = "ssl.ssl_record_splitting.disabled";
1269 // Dictionary of dates when a site's SSL blocking interstitial was proceeded
1271 const char kSSLBlockingBypassed
[] = "ssl.ssl_blocking_bypassed";
1273 // A boolean pref of the EULA accepted flag.
1274 const char kEulaAccepted
[] = "EulaAccepted";
1276 // Boolean that specifies whether or not crash reporting and metrics reporting
1277 // are sent over the network for analysis.
1278 const char kMetricsReportingEnabled
[] =
1279 "user_experience_metrics.reporting_enabled";
1281 // Boolean that specifies whether or not crash reports are sent
1282 // over the network for analysis.
1283 #if defined(OS_ANDROID)
1284 const char kCrashReportingEnabled
[] =
1285 "user_experience_metrics_crash.reporting_enabled";
1288 // 64-bit integer serialization of the base::Time from the last successful seed
1289 // fetch (i.e. when the Variations server responds with 200 or 304).
1290 const char kVariationsLastFetchTime
[] = "variations_last_fetch_time";
1292 // String for the restrict parameter to be appended to the variations URL.
1293 const char kVariationsRestrictParameter
[] = "variations_restrict_parameter";
1295 // String serialized form of variations seed protobuf.
1296 const char kVariationsSeed
[] = "variations_seed";
1298 // 64-bit integer serialization of the base::Time from the last seed received.
1299 const char kVariationsSeedDate
[] = "variations_seed_date";
1301 // SHA-1 hash of the serialized variations seed data (hex encoded).
1302 const char kVariationsSeedHash
[] = "variations_seed_hash";
1304 // Digital signature of the binary variations seed data, base64-encoded.
1305 const char kVariationsSeedSignature
[] = "variations_seed_signature";
1307 // Number of times a page load event occurred since the last report.
1308 const char kStabilityPageLoadCount
[] =
1309 "user_experience_metrics.stability.page_load_count";
1311 // Number of times a renderer process crashed since the last report.
1312 const char kStabilityRendererCrashCount
[] =
1313 "user_experience_metrics.stability.renderer_crash_count";
1315 // Number of times an extension renderer process crashed since the last report.
1316 const char kStabilityExtensionRendererCrashCount
[] =
1317 "user_experience_metrics.stability.extension_renderer_crash_count";
1319 // This is the location of a list of dictionaries of plugin stability stats.
1320 const char kStabilityPluginStats
[] =
1321 "user_experience_metrics.stability.plugin_stats2";
1323 // Number of times the renderer has become non-responsive since the last
1325 const char kStabilityRendererHangCount
[] =
1326 "user_experience_metrics.stability.renderer_hang_count";
1328 // Total number of child process crashes (other than renderer / extension
1329 // renderer ones, and plugin children, which are counted separately) since the
1331 const char kStabilityChildProcessCrashCount
[] =
1332 "user_experience_metrics.stability.child_process_crash_count";
1334 // On Chrome OS, total number of non-Chrome user process crashes
1335 // since the last report.
1336 const char kStabilityOtherUserCrashCount
[] =
1337 "user_experience_metrics.stability.other_user_crash_count";
1339 // On Chrome OS, total number of kernel crashes since the last report.
1340 const char kStabilityKernelCrashCount
[] =
1341 "user_experience_metrics.stability.kernel_crash_count";
1343 // On Chrome OS, total number of unclean system shutdowns since the
1345 const char kStabilitySystemUncleanShutdownCount
[] =
1346 "user_experience_metrics.stability.system_unclean_shutdowns";
1348 #if defined(OS_ANDROID)
1349 // Activity type that is currently in the foreground for the UMA session.
1350 // Uses the ActivityTypeIds::Type enum.
1351 const char kStabilityForegroundActivityType
[] =
1352 "user_experience_metrics.stability.current_foreground_activity_type";
1354 // Tracks which Activities were launched during the last session.
1355 // See |metrics_service_android.cc| for its usage.
1356 const char kStabilityLaunchedActivityFlags
[] =
1357 "user_experience_metrics.stability.launched_activity_flags";
1359 // List pref: Counts how many times each Activity was launched.
1360 // Indexed into by ActivityTypeIds::Type.
1361 const char kStabilityLaunchedActivityCounts
[] =
1362 "user_experience_metrics.stability.launched_activity_counts";
1364 // List pref: Counts how many times each Activity type was in the foreground
1365 // when a UMA session failed to be shut down properly.
1366 // Indexed into by ActivityTypeIds::Type.
1367 const char kStabilityCrashedActivityCounts
[] =
1368 "user_experience_metrics.stability.crashed_activity_counts";
1371 // The keys below are used for the dictionaries in the
1372 // kStabilityPluginStats list.
1373 const char kStabilityPluginName
[] = "name";
1374 const char kStabilityPluginLaunches
[] = "launches";
1375 const char kStabilityPluginInstances
[] = "instances";
1376 const char kStabilityPluginCrashes
[] = "crashes";
1377 const char kStabilityPluginLoadingErrors
[] = "loading_errors";
1379 // The keys below are strictly increasing counters over the lifetime of
1380 // a chrome installation. They are (optionally) sent up to the uninstall
1381 // survey in the event of uninstallation.
1382 const char kUninstallMetricsPageLoadCount
[] =
1383 "uninstall_metrics.page_load_count";
1384 const char kUninstallLastLaunchTimeSec
[] =
1385 "uninstall_metrics.last_launch_time_sec";
1386 const char kUninstallLastObservedRunTimeSec
[] =
1387 "uninstall_metrics.last_observed_running_time_sec";
1389 // String containing the version of Chrome for which Chrome will not prompt the
1390 // user about setting Chrome as the default browser.
1391 const char kBrowserSuppressDefaultBrowserPrompt
[] =
1392 "browser.suppress_default_browser_prompt_for_version";
1394 // A collection of position, size, and other data relating to the browser
1395 // window to restore on startup.
1396 const char kBrowserWindowPlacement
[] = "browser.window_placement";
1398 // Browser window placement for popup windows.
1399 const char kBrowserWindowPlacementPopup
[] = "browser.window_placement_popup";
1401 // A collection of position, size, and other data relating to the task
1402 // manager window to restore on startup.
1403 const char kTaskManagerWindowPlacement
[] = "task_manager.window_placement";
1405 // A collection of position, size, and other data relating to app windows to
1406 // restore on startup.
1407 const char kAppWindowPlacement
[] = "browser.app_window_placement";
1409 // An integer specifying the total number of bytes to be used by the
1410 // renderer's in-memory cache of objects.
1411 const char kMemoryCacheSize
[] = "renderer.memory_cache.size";
1413 // String which specifies where to download files to by default.
1414 const char kDownloadDefaultDirectory
[] = "download.default_directory";
1416 // Boolean that records if the download directory was changed by an
1417 // upgrade a unsafe location to a safe location.
1418 const char kDownloadDirUpgraded
[] = "download.directory_upgrade";
1420 #if defined(OS_WIN) || defined(OS_LINUX) || \
1421 (defined(OS_MACOSX) && !defined(OS_IOS))
1422 const char kOpenPdfDownloadInSystemReader
[] =
1423 "download.open_pdf_in_system_reader";
1426 // String which specifies where to save html files to by default.
1427 const char kSaveFileDefaultDirectory
[] = "savefile.default_directory";
1429 // The type used to save the page. See the enum SavePackage::SavePackageType in
1430 // the chrome/browser/download/save_package.h for the possible values.
1431 const char kSaveFileType
[] = "savefile.type";
1433 // String which specifies the last directory that was chosen for uploading
1434 // or opening a file.
1435 const char kSelectFileLastDirectory
[] = "selectfile.last_directory";
1437 // Boolean that specifies if file selection dialogs are shown.
1438 const char kAllowFileSelectionDialogs
[] = "select_file_dialogs.allowed";
1440 // Map of default tasks, associated by MIME type.
1441 const char kDefaultTasksByMimeType
[] =
1442 "filebrowser.tasks.default_by_mime_type";
1444 // Map of default tasks, associated by file suffix.
1445 const char kDefaultTasksBySuffix
[] =
1446 "filebrowser.tasks.default_by_suffix";
1448 // Extensions which should be opened upon completion.
1449 const char kDownloadExtensionsToOpen
[] = "download.extensions_to_open";
1451 // Integer which specifies the frequency in milliseconds for detecting whether
1452 // plugin windows are hung.
1453 const char kHungPluginDetectFrequency
[] = "browser.hung_plugin_detect_freq";
1455 // Integer which specifies the timeout value to be used for SendMessageTimeout
1456 // to detect a hung plugin window.
1457 const char kPluginMessageResponseTimeout
[] =
1458 "browser.plugin_message_response_timeout";
1460 // String which represents the dictionary name for our spell-checker.
1461 const char kSpellCheckDictionary
[] = "spellcheck.dictionary";
1463 // String which represents whether we use the spelling service.
1464 const char kSpellCheckUseSpellingService
[] = "spellcheck.use_spelling_service";
1466 // Dictionary of schemes used by the external protocol handler.
1467 // The value is true if the scheme must be ignored.
1468 const char kExcludedSchemes
[] = "protocol_handler.excluded_schemes";
1470 // Keys used for MAC handling of SafeBrowsing requests.
1471 const char kSafeBrowsingClientKey
[] = "safe_browsing.client_key";
1472 const char kSafeBrowsingWrappedKey
[] = "safe_browsing.wrapped_key";
1474 // Integer that specifies the index of the tab the user was on when they
1475 // last visited the options window.
1476 const char kOptionsWindowLastTabIndex
[] = "options_window.last_tab_index";
1478 // Integer that specifies the index of the tab the user was on when they
1479 // last visited the Certificate Manager window.
1480 const char kCertificateManagerWindowLastTabIndex
[] =
1481 "certificate_manager_window.last_tab_index";
1483 // Integer that specifies if the first run bubble should be shown.
1484 // This preference is only registered by the first-run procedure.
1485 const char kShowFirstRunBubbleOption
[] = "show-first-run-bubble-option";
1487 // String containing the last known intranet redirect URL, if any. See
1488 // intranet_redirect_detector.h for more information.
1489 const char kLastKnownIntranetRedirectOrigin
[] = "browser.last_redirect_origin";
1491 // An enum value of how the browser was shut down (see browser_shutdown.h).
1492 const char kShutdownType
[] = "shutdown.type";
1493 // Number of processes that were open when the user shut down.
1494 const char kShutdownNumProcesses
[] = "shutdown.num_processes";
1495 // Number of processes that were shut down using the slow path.
1496 const char kShutdownNumProcessesSlow
[] = "shutdown.num_processes_slow";
1498 // Whether to restart the current Chrome session automatically as the last thing
1499 // before shutting everything down.
1500 const char kRestartLastSessionOnShutdown
[] = "restart.last.session.on.shutdown";
1502 // Set before autorestarting Chrome, cleared on clean exit.
1503 const char kWasRestarted
[] = "was.restarted";
1506 // Preference to be used while relaunching Chrome. This preference dictates if
1507 // Chrome should be launched in Metro or Desktop mode.
1508 // For more info take a look at ChromeRelaunchMode enum.
1509 const char kRelaunchMode
[] = "relaunch.mode";
1512 // Placeholder preference for disabling voice / video chat if it is ever added.
1513 // Currently, this does not change any behavior.
1514 const char kDisableVideoAndChat
[] = "disable_video_chat";
1516 // Whether Extensions are enabled.
1517 const char kDisableExtensions
[] = "extensions.disabled";
1519 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1520 const char kDisablePluginFinder
[] = "plugins.disable_plugin_finder";
1522 // Customized app page names that appear on the New Tab Page.
1523 const char kNtpAppPageNames
[] = "ntp.app_page_names";
1525 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1526 const char kNtpCollapsedCurrentlyOpenTabs
[] = "ntp.collapsed_open_tabs";
1528 // Keeps track of which sessions are collapsed in the Other Devices menu.
1529 const char kNtpCollapsedForeignSessions
[] = "ntp.collapsed_foreign_sessions";
1531 // Keeps track of recently closed tabs collapsed state in the Other Devices
1533 const char kNtpCollapsedRecentlyClosedTabs
[] =
1534 "ntp.collapsed_recently_closed_tabs";
1536 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1537 const char kNtpCollapsedSnapshotDocument
[] = "ntp.collapsed_snapshot_document";
1539 // Keeps track of sync promo collapsed state in the Other Devices menu.
1540 const char kNtpCollapsedSyncPromo
[] = "ntp.collapsed_sync_promo";
1542 // Serves dates to determine display of elements on the NTP.
1543 const char kNtpDateResourceServer
[] = "ntp.date_resource_server";
1545 // New Tab Page URLs that should not be shown as most visited thumbnails.
1546 const char kNtpMostVisitedURLsBlacklist
[] = "ntp.most_visited_blacklist";
1548 // True if a desktop sync session was found for this user.
1549 const char kNtpPromoDesktopSessionFound
[] = "ntp.promo_desktop_session_found";
1551 // Last time of update of promo_resource_cache.
1552 const char kNtpPromoResourceCacheUpdate
[] = "ntp.promo_resource_cache_update";
1554 // Which bookmarks folder should be visible on the new tab page v4.
1555 const char kNtpShownBookmarksFolder
[] = "ntp.shown_bookmarks_folder";
1557 // Which page should be visible on the new tab page v4
1558 const char kNtpShownPage
[] = "ntp.shown_page";
1560 // Serves tips for the NTP.
1561 const char kNtpTipsResourceServer
[] = "ntp.tips_resource_server";
1563 // Boolean indicating whether the web store is active for the current locale.
1564 const char kNtpWebStoreEnabled
[] = "ntp.webstore_enabled";
1566 // A private RSA key for ADB handshake.
1567 const char kDevToolsAdbKey
[] = "devtools.adb_key";
1569 const char kDevToolsDisabled
[] = "devtools.disabled";
1571 // Determines whether devtools should be discovering usb devices for
1572 // remote debugging at chrome://inspect.
1573 const char kDevToolsDiscoverUsbDevicesEnabled
[] =
1574 "devtools.discover_usb_devices";
1576 // Maps of files edited locally using DevTools.
1577 const char kDevToolsEditedFiles
[] = "devtools.edited_files";
1579 // List of file system paths added in DevTools.
1580 const char kDevToolsFileSystemPaths
[] = "devtools.file_system_paths";
1582 // A boolean specifying whether dev tools window should be opened docked.
1583 const char kDevToolsOpenDocked
[] = "devtools.open_docked";
1585 // A boolean specifying whether port forwarding should be enabled.
1586 const char kDevToolsPortForwardingEnabled
[] =
1587 "devtools.port_forwarding_enabled";
1589 // A boolean specifying whether default port forwarding configuration has been
1591 const char kDevToolsPortForwardingDefaultSet
[] =
1592 "devtools.port_forwarding_default_set";
1594 // A dictionary of port->location pairs for port forwarding.
1595 const char kDevToolsPortForwardingConfig
[] = "devtools.port_forwarding_config";
1597 #if defined(OS_ANDROID)
1598 // A boolean specifying whether remote dev tools debugging is enabled.
1599 const char kDevToolsRemoteEnabled
[] = "devtools.remote_enabled";
1602 // Boolean indicating that TiclInvalidationService should use GCM channel.
1603 // False or lack of settings means XMPPPushClient channel.
1604 const char kInvalidationServiceUseGCMChannel
[] =
1605 "invalidation_service.use_gcm_channel";
1607 // Local hash of authentication password, used for off-line authentication
1608 // when on-line authentication is not available.
1609 const char kGoogleServicesPasswordHash
[] = "google.services.password_hash";
1611 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1612 // Tracks the number of times that we have shown the sign in promo at startup.
1613 const char kSignInPromoStartupCount
[] = "sync_promo.startup_count";
1615 // Boolean tracking whether the user chose to skip the sign in promo.
1616 const char kSignInPromoUserSkipped
[] = "sync_promo.user_skipped";
1618 // Boolean that specifies if the sign in promo is allowed to show on first run.
1619 // This preference is specified in the master preference file to suppress the
1620 // sign in promo for some installations.
1621 const char kSignInPromoShowOnFirstRunAllowed
[] =
1622 "sync_promo.show_on_first_run_allowed";
1624 // Boolean that specifies if we should show a bubble in the new tab page.
1625 // The bubble is used to confirm that the user is signed into sync.
1626 const char kSignInPromoShowNTPBubble
[] = "sync_promo.show_ntp_bubble";
1629 // Create web application shortcut dialog preferences.
1630 const char kWebAppCreateOnDesktop
[] = "browser.web_app.create_on_desktop";
1631 const char kWebAppCreateInAppsMenu
[] = "browser.web_app.create_in_apps_menu";
1632 const char kWebAppCreateInQuickLaunchBar
[] =
1633 "browser.web_app.create_in_quick_launch_bar";
1635 // Dictionary that maps Geolocation network provider server URLs to
1636 // corresponding access token.
1637 const char kGeolocationAccessToken
[] = "geolocation.access_token";
1639 #if defined(OS_ANDROID)
1640 // Boolean that controls the enabled-state of Geolocation in content.
1641 const char kGeolocationEnabled
[] = "geolocation.enabled";
1644 #if defined(ENABLE_GOOGLE_NOW)
1645 // Boolean that is true when Google services can use the user's location.
1646 const char kGoogleGeolocationAccessEnabled
[] =
1647 "googlegeolocationaccess.enabled";
1650 // The default audio capture device used by the Media content setting.
1651 const char kDefaultAudioCaptureDevice
[] = "media.default_audio_capture_device";
1653 // The default video capture device used by the Media content setting.
1654 const char kDefaultVideoCaptureDevice
[] = "media.default_video_capture_Device";
1656 // The salt used for creating random MediaSource IDs.
1657 const char kMediaDeviceIdSalt
[] = "media.device_id_salt";
1659 // Boolean that indicates whether to allow firewall traversal while trying to
1660 // establish the initial connection from the client or host.
1661 const char kRemoteAccessHostFirewallTraversal
[] =
1662 "remote_access.host_firewall_traversal";
1664 // Boolean controlling whether 2-factor auth should be required when connecting
1665 // to a host (instead of a PIN).
1666 const char kRemoteAccessHostRequireTwoFactor
[] =
1667 "remote_access.host_require_two_factor";
1669 // String containing the domain name that hosts must belong to. If blank, then
1670 // hosts can belong to any domain.
1671 const char kRemoteAccessHostDomain
[] = "remote_access.host_domain";
1673 // String containing the domain name of the Chromoting Directory.
1674 // Used by Chromoting host and client.
1675 const char kRemoteAccessHostTalkGadgetPrefix
[] =
1676 "remote_access.host_talkgadget_prefix";
1678 // Boolean controlling whether curtaining is required when connecting to a host.
1679 const char kRemoteAccessHostRequireCurtain
[] =
1680 "remote_access.host_require_curtain";
1682 // Boolean controlling whether curtaining is required when connecting to a host.
1683 const char kRemoteAccessHostAllowClientPairing
[] =
1684 "remote_access.host_allow_client_pairing";
1686 // Whether Chrome Remote Desktop can proxy gnubby authentication traffic.
1687 const char kRemoteAccessHostAllowGnubbyAuth
[] =
1688 "remote_access.host_allow_gnubby_auth";
1690 // Boolean that indicates whether the Chromoting host should allow connections
1691 // using relay servers.
1692 const char kRemoteAccessHostAllowRelayedConnection
[] =
1693 "remote_access.host_allow_relayed_connection";
1695 // String containing the UDP port range that the Chromoting host should used
1696 // when connecting to clients. The port range should be in the form:
1697 // <min_port>-<max_port>. E.g. 12400-12409.
1698 const char kRemoteAccessHostUdpPortRange
[] =
1699 "remote_access.host_udp_port_range";
1701 // The last used printer and its settings.
1702 const char kPrintPreviewStickySettings
[] =
1703 "printing.print_preview_sticky_settings";
1705 // The last requested size of the dialog as it was closed.
1706 const char kCloudPrintDialogWidth
[] = "cloud_print.dialog_size.width";
1707 const char kCloudPrintDialogHeight
[] = "cloud_print.dialog_size.height";
1708 const char kCloudPrintSigninDialogWidth
[] =
1709 "cloud_print.signin_dialog_size.width";
1710 const char kCloudPrintSigninDialogHeight
[] =
1711 "cloud_print.signin_dialog_size.height";
1713 // The list of BackgroundContents that should be loaded when the browser
1715 const char kRegisteredBackgroundContents
[] = "background_contents.registered";
1717 #if !defined(OS_ANDROID)
1718 // An int that stores how often we've shown the "Chrome is configured to
1719 // auto-launch" infobar.
1720 const char kShownAutoLaunchInfobar
[] = "browser.shown_autolaunch_infobar";
1723 // String that lists supported HTTP authentication schemes.
1724 const char kAuthSchemes
[] = "auth.schemes";
1726 // Boolean that specifies whether to disable CNAME lookups when generating
1728 const char kDisableAuthNegotiateCnameLookup
[] =
1729 "auth.disable_negotiate_cname_lookup";
1731 // Boolean that specifies whether to include the port in a generated Kerberos
1733 const char kEnableAuthNegotiatePort
[] = "auth.enable_negotiate_port";
1735 // Whitelist containing servers for which Integrated Authentication is enabled.
1736 const char kAuthServerWhitelist
[] = "auth.server_whitelist";
1738 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1740 const char kAuthNegotiateDelegateWhitelist
[] =
1741 "auth.negotiate_delegate_whitelist";
1743 // String that specifies the name of a custom GSSAPI library to load.
1744 const char kGSSAPILibraryName
[] = "auth.gssapi_library_name";
1746 // Boolean that specifies whether to allow basic auth prompting on cross-
1747 // domain sub-content requests.
1748 const char kAllowCrossOriginAuthPrompt
[] = "auth.allow_cross_origin_prompt";
1750 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1751 const char kBuiltInDnsClientEnabled
[] = "async_dns.enabled";
1753 // A pref holding the value of the policy used to explicitly allow or deny
1754 // access to audio capture devices. When enabled or not set, the user is
1755 // prompted for device access. When disabled, access to audio capture devices
1756 // is not allowed and no prompt will be shown.
1757 // See also kAudioCaptureAllowedUrls.
1758 const char kAudioCaptureAllowed
[] = "hardware.audio_capture_enabled";
1759 // Holds URL patterns that specify URLs that will be granted access to audio
1760 // capture devices without prompt. NOTE: This whitelist is currently only
1761 // supported when running in kiosk mode.
1762 // TODO(tommi): Update comment when this is supported for all modes.
1763 const char kAudioCaptureAllowedUrls
[] = "hardware.audio_capture_allowed_urls";
1765 // A pref holding the value of the policy used to explicitly allow or deny
1766 // access to video capture devices. When enabled or not set, the user is
1767 // prompted for device access. When disabled, access to video capture devices
1768 // is not allowed and no prompt will be shown.
1769 const char kVideoCaptureAllowed
[] = "hardware.video_capture_enabled";
1770 // Holds URL patterns that specify URLs that will be granted access to video
1771 // capture devices without prompt. NOTE: This whitelist is currently only
1772 // supported when running in kiosk mode.
1773 // TODO(tommi): Update comment when this is supported for all modes.
1774 const char kVideoCaptureAllowedUrls
[] = "hardware.video_capture_allowed_urls";
1776 // A boolean pref that controls the enabled-state of hotword search voice
1778 const char kHotwordSearchEnabled
[] = "hotword.search_enabled_2";
1780 // A boolean pref that controls the enabled-state of hotword search voice
1781 // trigger from any screen.
1782 const char kHotwordAlwaysOnSearchEnabled
[] = "hotword.always_on_search_enabled";
1784 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1785 // seconds of audio data before is sent back to improve voice search.
1786 const char kHotwordAudioLoggingEnabled
[] = "hotword.audio_logging_enabled";
1788 // A boolean pref that controls the user's global account preference for
1789 // audio history is enabled. Updated whenever the user changes it in
1790 // chrome://settings and also polled for every 24 hours and on first voice
1791 // search action after profile startup.
1792 const char kHotwordAudioHistoryEnabled
[] = "hotword.audio_history_enabled";
1794 // A string holding the locale information under which Hotword was installed.
1795 // It is used for comparison since the hotword voice search trigger must be
1796 // reinstalled to handle a new language.
1797 const char kHotwordPreviousLanguage
[] = "hotword.previous_language";
1799 #if defined(OS_ANDROID)
1800 // Boolean that controls the global enabled-state of protected media identifier.
1801 const char kProtectedMediaIdentifierEnabled
[] =
1802 "protected_media_identifier.enabled";
1805 #if defined(OS_CHROMEOS)
1806 // Dictionary for transient storage of settings that should go into device
1807 // settings storage before owner has been assigned.
1808 const char kDeviceSettingsCache
[] = "signed_settings_cache";
1810 // The hardware keyboard layout of the device. This should look like
1812 const char kHardwareKeyboardLayout
[] = "intl.hardware_keyboard";
1814 // An integer pref which shows number of times carrier deal promo
1815 // notification has been shown to user.
1816 const char kCarrierDealPromoShown
[] =
1817 "settings.internet.mobile.carrier_deal_promo_shown";
1819 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1820 // it's not the default value; otherwise, no auto-enrollment decision has been
1822 const char kShouldAutoEnroll
[] = "ShouldAutoEnroll";
1824 // An integer pref with the maximum number of bits used by the client in a
1825 // previous auto-enrollment request. If the client goes through an auto update
1826 // during OOBE and reboots into a version of the OS with a larger maximum
1827 // modulus, then it will retry auto-enrollment using the updated value.
1828 const char kAutoEnrollmentPowerLimit
[] = "AutoEnrollmentPowerLimit";
1830 // The local state pref that stores device activity times before reporting
1831 // them to the policy server.
1832 const char kDeviceActivityTimes
[] = "device_status.activity_times";
1834 // A pref holding the last known location when device location reporting is
1836 const char kDeviceLocation
[] = "device_status.location";
1838 // A pref holding the value of the policy used to disable mounting of external
1839 // storage for the user.
1840 const char kExternalStorageDisabled
[] = "hardware.external_storage_disabled";
1842 // A pref holding the value of the policy used to disable playing audio on
1843 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
1844 // it, therefore when the policy is lifted the original mute state is restored.
1845 const char kAudioOutputAllowed
[] = "hardware.audio_output_enabled";
1847 // A dictionary that maps usernames to wallpaper properties.
1848 const char kUsersWallpaperInfo
[] = "user_wallpaper_info";
1850 // Copy of owner swap mouse buttons option to use on login screen.
1851 const char kOwnerPrimaryMouseButtonRight
[] = "owner.mouse.primary_right";
1853 // Copy of owner tap-to-click option to use on login screen.
1854 const char kOwnerTapToClickEnabled
[] = "owner.touchpad.enable_tap_to_click";
1856 // The length of device uptime after which an automatic reboot is scheduled,
1857 // expressed in seconds.
1858 const char kUptimeLimit
[] = "automatic_reboot.uptime_limit";
1860 // Whether an automatic reboot should be scheduled when an update has been
1861 // applied and a reboot is required to complete the update process.
1862 const char kRebootAfterUpdate
[] = "automatic_reboot.reboot_after_update";
1864 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1865 // for connection to Google APIs when the user isn't logged in. Currently used
1866 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1867 // Public Accounts and kiosks.
1868 const char kDeviceRobotAnyApiRefreshToken
[] =
1869 "device_robot_refresh_token.any-api";
1871 // Device requisition for enterprise enrollment.
1872 const char kDeviceEnrollmentRequisition
[] = "enrollment.device_requisition";
1874 // Whether to automatically start the enterprise enrollment step during OOBE.
1875 const char kDeviceEnrollmentAutoStart
[] = "enrollment.auto_start";
1877 // Whether the user may exit enrollment.
1878 const char kDeviceEnrollmentCanExit
[] = "enrollment.can_exit";
1880 // How many times HID detection OOBE dialog was shown.
1881 const char kTimesHIDDialogShown
[] = "HIDDialog.shown_how_many_times";
1883 // Dictionary of per-user Least Recently Used input method (used at login
1885 extern const char kUsersLRUInputMethod
[] = "UsersLRUInputMethod";
1887 // A dictionary pref of the echo offer check flag. It sets offer info when
1888 // an offer is checked.
1889 extern const char kEchoCheckedOffers
[] = "EchoCheckedOffers";
1891 // Key name of a dictionary in local state to store cached multiprofle user
1892 // behavior policy value.
1893 const char kCachedMultiProfileUserBehavior
[] = "CachedMultiProfileUserBehavior";
1895 // A string pref with initial locale set in VPD or manifest.
1896 const char kInitialLocale
[] = "intl.initial_locale";
1898 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1899 const char kOobeComplete
[] = "OobeComplete";
1901 // The name of the screen that has to be shown if OOBE has been interrupted.
1902 const char kOobeScreenPending
[] = "OobeScreenPending";
1904 // A boolean pref of the device registered flag (second part after first login).
1905 const char kDeviceRegistered
[] = "DeviceRegistered";
1907 // Boolean pref to signal corrupted enrollment to force the device through
1908 // enrollment recovery flow upon next boot.
1909 const char kEnrollmentRecoveryRequired
[] = "EnrollmentRecoveryRequired";
1911 // List of usernames that used certificates pushed by policy before.
1912 // This is used to prevent these users from joining multiprofile sessions.
1913 const char kUsedPolicyCertificates
[] = "policy.used_policy_certificates";
1915 // A dictionary containing server-provided device state pulled form the cloud
1917 const char kServerBackedDeviceState
[] = "server_backed_device_state";
1919 // Customized wallpaper URL, which is already downloaded and scaled.
1920 // The URL from this preference must never be fetched. It is compared to the
1921 // URL from customization document to check if wallpaper URL has changed
1922 // since wallpaper was cached.
1923 const char kCustomizationDefaultWallpaperURL
[] =
1924 "customization.default_wallpaper_url";
1926 // System uptime, when last logout started.
1927 // This is saved to file and cleared after chrome process starts.
1928 const char kLogoutStartedLast
[] = "chromeos.logout-started";
1930 // An integer pref of the current consumer management enrollment stage. The
1931 // meaning of the value is defined in the enum EnrollmentStage in:
1932 // chrome/browser/chromeos/policy/consumer_management_service.h
1933 const char kConsumerManagementEnrollmentStage
[] =
1934 "consumer_management.enrollment_stage";
1935 #endif // defined(OS_CHROMEOS)
1937 // Whether there is a Flash version installed that supports clearing LSO data.
1938 const char kClearPluginLSODataEnabled
[] = "browser.clear_lso_data_enabled";
1940 // Whether we should show Pepper Flash-specific settings.
1941 const char kPepperFlashSettingsEnabled
[] =
1942 "browser.pepper_flash_settings_enabled";
1944 // String which specifies where to store the disk cache.
1945 const char kDiskCacheDir
[] = "browser.disk_cache_dir";
1946 // Pref name for the policy specifying the maximal cache size.
1947 const char kDiskCacheSize
[] = "browser.disk_cache_size";
1948 // Pref name for the policy specifying the maximal media cache size.
1949 const char kMediaCacheSize
[] = "browser.media_cache_size";
1951 // Specifies the release channel that the device should be locked to.
1952 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1953 // empty string, in which case the value will be ignored.
1954 // TODO(dubroy): This preference may not be necessary once
1955 // http://crosbug.com/17015 is implemented and the update engine can just
1956 // fetch the correct value from the policy.
1957 const char kChromeOsReleaseChannel
[] = "cros.system.releaseChannel";
1959 const char kPerformanceTracingEnabled
[] =
1960 "feedback.performance_tracing_enabled";
1962 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1963 // Defaults to false.
1964 const char kTabStripStackedLayout
[] = "tab-strip-stacked-layout";
1966 // Indicates that factory reset was requested from options page or reset screen.
1967 const char kFactoryResetRequested
[] = "FactoryResetRequested";
1969 // Indicates that debugging features were requested from oobe screen.
1970 const char kDebuggingFeaturesRequested
[] = "DebuggingFeaturesRequested";
1972 // Boolean recording whether we have showed a balloon that calls out the message
1973 // center for desktop notifications.
1974 const char kMessageCenterShowedFirstRunBalloon
[] =
1975 "message_center.showed_first_run_balloon";
1977 // Boolean recording whether the user has disabled the notifications
1978 // menubar or systray icon.
1979 const char kMessageCenterShowIcon
[] = "message_center.show_icon";
1981 const char kMessageCenterForcedOnTaskbar
[] =
1982 "message_center.was_forced_on_taskbar";
1984 // *************** SERVICE PREFS ***************
1985 // These are attached to the service process.
1987 const char kCloudPrintRoot
[] = "cloud_print";
1988 const char kCloudPrintProxyEnabled
[] = "cloud_print.enabled";
1989 // The unique id for this instance of the cloud print proxy.
1990 const char kCloudPrintProxyId
[] = "cloud_print.proxy_id";
1991 // The GAIA auth token for Cloud Print
1992 const char kCloudPrintAuthToken
[] = "cloud_print.auth_token";
1993 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
1994 // This should eventually go away because the above token should work for both.
1995 const char kCloudPrintXMPPAuthToken
[] = "cloud_print.xmpp_auth_token";
1996 // The email address of the account used to authenticate with the Cloud Print
1998 const char kCloudPrintEmail
[] = "cloud_print.email";
1999 // Settings specific to underlying print system.
2000 const char kCloudPrintPrintSystemSettings
[] =
2001 "cloud_print.print_system_settings";
2002 // A boolean indicating whether we should poll for print jobs when don't have
2003 // an XMPP connection (false by default).
2004 const char kCloudPrintEnableJobPoll
[] = "cloud_print.enable_job_poll";
2005 const char kCloudPrintRobotRefreshToken
[] = "cloud_print.robot_refresh_token";
2006 const char kCloudPrintRobotEmail
[] = "cloud_print.robot_email";
2007 // A boolean indicating whether we should connect to cloud print new printers.
2008 const char kCloudPrintConnectNewPrinters
[] =
2009 "cloud_print.user_settings.connectNewPrinters";
2010 // A boolean indicating whether we should ping XMPP connection.
2011 const char kCloudPrintXmppPingEnabled
[] = "cloud_print.xmpp_ping_enabled";
2012 // An int value indicating the average timeout between xmpp pings.
2013 const char kCloudPrintXmppPingTimeout
[] = "cloud_print.xmpp_ping_timeout_sec";
2014 // Dictionary with settings stored by connector setup page.
2015 const char kCloudPrintUserSettings
[] = "cloud_print.user_settings";
2016 // List of printers settings.
2017 extern const char kCloudPrintPrinters
[] = "cloud_print.user_settings.printers";
2018 // A boolean indicating whether submitting jobs to Google Cloud Print is
2019 // blocked by policy.
2020 const char kCloudPrintSubmitEnabled
[] = "cloud_print.submit_enabled";
2022 // Preference to store proxy settings.
2023 const char kProxy
[] = "proxy";
2024 const char kMaxConnectionsPerProxy
[] = "net.max_connections_per_proxy";
2026 #if defined(OS_MACOSX)
2027 // Set to true if the user removed our login item so we should not create a new
2028 // one when uninstalling background apps.
2029 const char kUserRemovedLoginItem
[] = "background_mode.user_removed_login_item";
2031 // Set to true if Chrome already created a login item, so there's no need to
2032 // create another one.
2033 const char kChromeCreatedLoginItem
[] =
2034 "background_mode.chrome_created_login_item";
2036 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2038 const char kMigratedLoginItemPref
[] =
2039 "background_mode.migrated_login_item_pref";
2041 // A boolean that tracks whether to show a notification when trying to quit
2042 // while there are apps running.
2043 const char kNotifyWhenAppsKeepChromeAlive
[] =
2044 "apps.notify-when-apps-keep-chrome-alive";
2047 // Set to true if background mode is enabled on this browser.
2048 const char kBackgroundModeEnabled
[] = "background_mode.enabled";
2050 // Set to true if hardware acceleration mode is enabled on this browser.
2051 const char kHardwareAccelerationModeEnabled
[] =
2052 "hardware_acceleration_mode.enabled";
2054 // Hardware acceleration mode from previous browser launch.
2055 const char kHardwareAccelerationModePrevious
[] =
2056 "hardware_acceleration_mode_previous";
2058 // List of protocol handlers.
2059 const char kRegisteredProtocolHandlers
[] =
2060 "custom_handlers.registered_protocol_handlers";
2062 // List of protocol handlers the user has requested not to be asked about again.
2063 const char kIgnoredProtocolHandlers
[] =
2064 "custom_handlers.ignored_protocol_handlers";
2066 // List of protocol handlers registered by policy.
2067 const char kPolicyRegisteredProtocolHandlers
[] =
2068 "custom_handlers.policy.registered_protocol_handlers";
2070 // List of protocol handlers the policy has requested to be ignored.
2071 const char kPolicyIgnoredProtocolHandlers
[] =
2072 "custom_handlers.policy.ignored_protocol_handlers";
2074 // Whether user-specified handlers for protocols and content types can be
2076 const char kCustomHandlersEnabled
[] = "custom_handlers.enabled";
2078 // Integer that specifies the policy refresh rate for device-policy in
2079 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2080 // by the cloud policy subsystem.
2081 const char kDevicePolicyRefreshRate
[] = "policy.device_refresh_rate";
2083 // A boolean where true means that the browser has previously attempted to
2084 // enable autoupdate and failed, so the next out-of-date browser start should
2085 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2087 const char kAttemptedToEnableAutoupdate
[] =
2088 "browser.attempted_to_enable_autoupdate";
2090 // The next media gallery ID to assign.
2091 const char kMediaGalleriesUniqueId
[] = "media_galleries.gallery_id";
2093 // A list of dictionaries, where each dictionary represents a known media
2095 const char kMediaGalleriesRememberedGalleries
[] =
2096 "media_galleries.remembered_galleries";
2098 // The last time a media scan completed.
2099 const char kMediaGalleriesLastScanTime
[] = "media_galleries.last_scan_time";
2101 #if defined(USE_ASH)
2102 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2103 // local variant is not synced and is used if set. If the local variant is not
2104 // set its value is set from the synced value (once prefs have been
2105 // synced). This gives a per-machine setting that is initialized from the last
2107 // These values are default on the machine but can be overridden by per-display
2108 // values in kShelfPreferences (unless overridden by managed policy).
2109 // String value corresponding to ash::Shell::ShelfAlignment.
2110 const char kShelfAlignment
[] = "shelf_alignment";
2111 const char kShelfAlignmentLocal
[] = "shelf_alignment_local";
2112 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2113 const char kShelfAutoHideBehavior
[] = "auto_hide_behavior";
2114 const char kShelfAutoHideBehaviorLocal
[] = "auto_hide_behavior_local";
2115 // This value stores chrome icon's index in the launcher. This should be handled
2116 // separately with app shortcut's index because of ShelfModel's backward
2117 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2118 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2119 // creating two chrome icons.
2120 const char kShelfChromeIconIndex
[] = "shelf_chrome_icon_index";
2121 // Dictionary value that holds per-display preference of shelf alignment and
2122 // auto-hide behavior. Key of the dictionary is the id of the display, and
2123 // its value is a dictionary whose keys are kShelfAlignment and
2124 // kShelfAutoHideBehavior.
2125 const char kShelfPreferences
[] = "shelf_preferences";
2127 // Integer value in milliseconds indicating the length of time for which a
2128 // confirmation dialog should be shown when the user presses the logout button.
2129 // A value of 0 indicates that logout should happen immediately, without showing
2130 // a confirmation dialog.
2131 const char kLogoutDialogDurationMs
[] = "logout_dialog_duration_ms";
2132 const char kPinnedLauncherApps
[] = "pinned_launcher_apps";
2133 // Boolean value indicating whether to show a logout button in the ash tray.
2134 const char kShowLogoutButtonInTray
[] = "show_logout_button_in_tray";
2137 #if defined(USE_AURA)
2138 // Tuning settings for gestures.
2139 const char kMaxSeparationForGestureTouchesInPixels
[] =
2140 "gesture.max_separation_for_gesture_touches_in_pixels";
2141 const char kSemiLongPressTimeInMs
[] = "gesture.semi_long_press_time_in_ms";
2142 const char kTabScrubActivationDelayInMs
[] =
2143 "gesture.tab_scrub_activation_delay_in_ms";
2144 const char kFlingMaxCancelToDownTimeInMs
[] =
2145 "gesture.fling_max_cancel_to_down_time_in_ms";
2146 const char kFlingMaxTapGapTimeInMs
[] = "gesture.fling_max_tap_gap_time_in_ms";
2147 const char kOverscrollHorizontalThresholdComplete
[] =
2148 "overscroll.horizontal_threshold_complete";
2149 const char kOverscrollVerticalThresholdComplete
[] =
2150 "overscroll.vertical_threshold_complete";
2151 const char kOverscrollMinimumThresholdStart
[] =
2152 "overscroll.minimum_threshold_start";
2153 const char kOverscrollMinimumThresholdStartTouchpad
[] =
2154 "overscroll.minimum_threshold_start_touchpad";
2155 const char kOverscrollVerticalThresholdStart
[] =
2156 "overscroll.vertical_threshold_start";
2157 const char kOverscrollHorizontalResistThreshold
[] =
2158 "overscroll.horizontal_resist_threshold";
2159 const char kOverscrollVerticalResistThreshold
[] =
2160 "overscroll.vertical_resist_threshold";
2163 // Counts how many more times the 'profile on a network share' warning should be
2164 // shown to the user before the next silence period.
2165 const char kNetworkProfileWarningsLeft
[] = "network_profile.warnings_left";
2166 // Tracks the time of the last shown warning. Used to reset
2167 // |network_profile.warnings_left| after a silence period.
2168 const char kNetworkProfileLastWarningTime
[] =
2169 "network_profile.last_warning_time";
2171 #if defined(OS_CHROMEOS)
2172 // The RLZ brand code, if enabled.
2173 const char kRLZBrand
[] = "rlz.brand";
2174 // Whether RLZ pings are disabled.
2175 const char kRLZDisabled
[] = "rlz.disabled";
2178 #if defined(ENABLE_APP_LIST)
2179 // The directory in user data dir that contains the profile to be used with the
2181 const char kAppListProfile
[] = "app_list.profile";
2183 // The number of times the app launcher was launched since last ping and
2184 // the time of the last ping.
2185 const char kAppListLaunchCount
[] = "app_list.launch_count";
2186 const char kLastAppListLaunchPing
[] = "app_list.last_launch_ping";
2188 // The number of times the an app was launched from the app launcher since last
2189 // ping and the time of the last ping.
2190 const char kAppListAppLaunchCount
[] = "app_list.app_launch_count";
2191 const char kLastAppListAppLaunchPing
[] = "app_list.last_app_launch_ping";
2193 // A boolean that tracks whether the user has ever enabled the app launcher.
2194 const char kAppLauncherHasBeenEnabled
[] =
2195 "apps.app_launcher.has_been_enabled";
2197 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2198 // install, command line, etc. For UMA.
2199 const char kAppListEnableMethod
[] = "app_list.how_enabled";
2201 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2202 const char kAppListEnableTime
[] = "app_list.when_enabled";
2204 // TODO(calamity): remove this pref since app launcher will always be
2206 // Local state caching knowledge of whether the app launcher is installed.
2207 const char kAppLauncherIsEnabled
[] =
2208 "apps.app_launcher.should_show_apps_page";
2210 // Integer representing the version of the app launcher shortcut installed on
2211 // the system. Incremented, e.g., when embedded icons change.
2212 const char kAppLauncherShortcutVersion
[] = "apps.app_launcher.shortcut_version";
2214 // A boolean identifying if we should show the app launcher promo or not.
2215 const char kShowAppLauncherPromo
[] = "app_launcher.show_promo";
2217 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2218 // a Drive app id and the value is the corresponding Chrome app id. The pref
2219 // is unsynable and used to track local mappings only.
2220 const char kAppLauncherDriveAppMapping
[] =
2221 "apps.app_launcher.drive_app_mapping";
2223 // A list of Drive app ids that tracks the uninstallable Drive apps.
2224 const char kAppLauncherUninstalledDriveApps
[] =
2225 "apps.app_launcher.uninstalled_drive_apps";
2228 // If set, the user requested to launch the app with this extension id while
2229 // in Metro mode, and then relaunched to Desktop mode to start it.
2230 const char kAppLaunchForMetroRestart
[] = "apps.app_launch_for_metro_restart";
2232 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2233 // launch of the specified app when restarting Chrome in desktop mode.
2234 const char kAppLaunchForMetroRestartProfile
[] =
2235 "apps.app_launch_for_metro_restart_profile";
2237 // An integer that is incremented whenever changes are made to app shortcuts.
2238 // Increasing this causes all app shortcuts to be recreated.
2239 const char kAppShortcutsVersion
[] = "apps.shortcuts_version";
2241 // How often the bubble has been shown.
2242 extern const char kModuleConflictBubbleShown
[] = "module_conflict.bubble_shown";
2244 // A string pref for storing the salt used to compute the pepper device ID.
2245 const char kDRMSalt
[] = "settings.privacy.drm_salt";
2246 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2247 // enables the use of remote attestation for content protection.
2248 const char kEnableDRM
[] = "settings.privacy.drm_enabled";
2250 // An integer per-profile pref that signals if the watchdog extension is
2251 // installed and active. We need to know if the watchdog extension active for
2252 // ActivityLog initialization before the extension system is initialized.
2253 const char kWatchdogExtensionActive
[] =
2254 "profile.extensions.activity_log.num_consumers_active";
2256 #if defined(OS_ANDROID)
2257 // A list of partner bookmark rename/remove mappings.
2258 // Each list item is a dictionary containing a "url", a "provider_title" and
2259 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2260 // given by the PartnerBookmarksProvider and either the user-visible renamed
2261 // title or an empty string if the bookmark node was removed.
2262 const char kPartnerBookmarkMappings
[] = "partnerbookmarks.mappings";
2265 // Whether DNS Quick Check is disabled in proxy resolution.
2266 const char kQuickCheckEnabled
[] = "proxy.quick_check_enabled";
2268 // Whether Guest Mode is enabled within the browser.
2269 const char kBrowserGuestModeEnabled
[] = "profile.browser_guest_enabled";
2271 // Whether Adding a new Person is enabled within the user manager.
2272 const char kBrowserAddPersonEnabled
[] = "profile.add_person_enabled";
2274 // A dictionary that maps user id to hardlock state.
2275 const char kEasyUnlockHardlockState
[] = "easy_unlock.hardlock_state";
2277 // The beginning of time span when we count user's "Nope" for the password
2279 const char kPasswordBubbleTimeStamp
[] = "password_bubble.timestamp";
2281 // The count of user's "Nope" for the password bubble.
2282 const char kPasswordBubbleNopesCount
[] = "password_bubble.nopes";
2284 // Last user's interaction with the password bubble.
2285 const char kPasswordBubbleLastInteractions
[] = "password_bubble.interactions";
2287 } // namespace prefs