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
16 // A bool pref that keeps whether the child status for this profile was already
17 // successfully checked via ChildAccountService.
18 const char kChildAccountStatusKnown
[] = "child_account_status_known";
20 // A string property indicating whether default apps should be installed
21 // in this profile. Use the value "install" to enable defaults apps, or
22 // "noinstall" to disable them. This property is usually set in the
23 // master_preferences and copied into the profile preferences on first run.
24 // Defaults apps are installed only when creating a new profile.
25 const char kDefaultApps
[] = "default_apps";
27 // Disables screenshot accelerators and extension APIs.
28 // This setting resides both in profile prefs and local state. Accelerator
29 // handling code reads local state, while extension APIs use profile pref.
30 const char kDisableScreenshots
[] = "disable_screenshots";
32 // If set to true profiles are created in ephemeral mode and do not store their
33 // data in the profile folder on disk but only in memory.
34 const char kForceEphemeralProfiles
[] = "profile.ephemeral_mode";
36 // A boolean specifying whether the New Tab page is the home page or not.
37 const char kHomePageIsNewTabPage
[] = "homepage_is_newtabpage";
39 // This is the URL of the page to load when opening new tabs.
40 const char kHomePage
[] = "homepage";
42 // An integer that keeps track of the profile icon version. This allows us to
43 // determine the state of the profile icon for icon format changes.
44 const char kProfileIconVersion
[] = "profile.icon_version";
46 // Used to determine if the last session exited cleanly. Set to false when
47 // first opened, and to true when closing. On startup if the value is false,
48 // it means the profile didn't exit cleanly.
49 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards
51 const char kSessionExitedCleanly
[] = "profile.exited_cleanly";
53 // A string pref whose values is one of the values defined by
54 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
55 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
56 // shutdown. Used to determine the exit type the last time the profile was open.
57 const char kSessionExitType
[] = "profile.exit_type";
59 // An integer pref. Holds one of several values:
60 // 0: (deprecated) open the homepage on startup.
61 // 1: restore the last session.
62 // 2: this was used to indicate a specific session should be restored. It is
63 // no longer used, but saved to avoid conflict with old preferences.
64 // 3: unused, previously indicated the user wants to restore a saved session.
65 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
66 // 5: open the New Tab Page on startup.
67 const char kRestoreOnStartup
[] = "session.restore_on_startup";
69 // A preference to keep track of whether we have already checked whether we
70 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
71 // We only need to do this check once, on upgrade from m18 or lower to m19 or
73 const char kRestoreOnStartupMigrated
[] = "session.restore_on_startup_migrated";
75 // Serialized migration time of kURLsToRestoreOnStartup (see
76 // base::Time::ToInternalValue for details on serialization format).
77 const char kRestoreStartupURLsMigrationTime
[] =
78 "session.startup_urls_migration_time";
80 // The URLs to restore on startup or when the home button is pressed. The URLs
81 // are only restored on startup if kRestoreOnStartup is 4.
82 const char kURLsToRestoreOnStartup
[] = "session.startup_urls";
84 // Old startup url pref name for kURLsToRestoreOnStartup.
85 const char kURLsToRestoreOnStartupOld
[] = "session.urls_to_restore_on_startup";
87 // Stores the email address associated with the google account of the custodian
88 // of the supervised user, set when the supervised user is created.
89 const char kSupervisedUserCustodianEmail
[] = "profile.managed.custodian_email";
91 // Stores the display name associated with the google account of the custodian
92 // of the supervised user, updated (if possible) each time the supervised user
94 const char kSupervisedUserCustodianName
[] = "profile.managed.custodian_name";
96 // Stores the URL of the profile image associated with the google account of the
97 // custodian of the supervised user.
98 const char kSupervisedUserCustodianProfileImageURL
[] =
99 "profile.managed.custodian_profile_image_url";
101 // Stores the URL of the profile associated with the google account of the
102 // custodian of the supervised user.
103 const char kSupervisedUserCustodianProfileURL
[] =
104 "profile.managed.custodian_profile_url";
106 // Maps host names to whether the host is manually allowed or blocked.
107 const char kSupervisedUserManualHosts
[] = "profile.managed.manual_hosts";
109 // Maps URLs to whether the URL is manually allowed or blocked.
110 const char kSupervisedUserManualURLs
[] = "profile.managed.manual_urls";
112 // Stores whether the SafeSites filter is enabled.
113 const char kSupervisedUserSafeSites
[] = "profile.managed.safe_sites";
115 // Stores the email address associated with the google account of the secondary
116 // custodian of the supervised user, set when the supervised user is created.
117 const char kSupervisedUserSecondCustodianEmail
[] =
118 "profile.managed.second_custodian_email";
120 // Stores the display name associated with the google account of the secondary
121 // custodian of the supervised user, updated (if possible) each time the
122 // supervised user starts a session.
123 const char kSupervisedUserSecondCustodianName
[] =
124 "profile.managed.second_custodian_name";
126 // Stores the URL of the profile image associated with the google account of the
127 // secondary custodian of the supervised user.
128 const char kSupervisedUserSecondCustodianProfileImageURL
[] =
129 "profile.managed.second_custodian_profile_image_url";
131 // Stores the URL of the profile associated with the google account of the
132 // secondary custodian of the supervised user.
133 const char kSupervisedUserSecondCustodianProfileURL
[] =
134 "profile.managed.second_custodian_profile_url";
136 // Stores settings that can be modified both by a supervised user and their
137 // manager. See SupervisedUserSharedSettingsService for a description of
139 const char kSupervisedUserSharedSettings
[] = "profile.managed.shared_settings";
141 // A dictionary storing whitelists for a supervised user. The key is the CRX ID
142 // of the whitelist, the value a dictionary containing whitelist properties
143 // (currently the name).
144 const char kSupervisedUserWhitelists
[] = "profile.managed.whitelists";
146 // The application locale.
147 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
148 // and user's profile. Global property determines locale of login screen,
149 // while user's profile determines his personal locale preference.
150 const char kApplicationLocale
[] = "intl.app_locale";
151 #if defined(OS_CHROMEOS)
152 // Locale preference of device' owner. ChromeOS device appears in this locale
153 // after startup/wakeup/signout.
154 const char kOwnerLocale
[] = "intl.owner_locale";
155 // Locale accepted by user. Non-syncable.
156 // Used to determine whether we need to show Locale Change notification.
157 const char kApplicationLocaleAccepted
[] = "intl.app_locale_accepted";
158 // Non-syncable item.
159 // It is used in two distinct ways.
160 // (1) Used for two-step initialization of locale in ChromeOS
161 // because synchronization of kApplicationLocale is not instant.
162 // (2) Used to detect locale change. Locale change is detected by
163 // LocaleChangeGuard in case values of kApplicationLocaleBackup and
164 // kApplicationLocale are both non-empty and differ.
165 // Following is a table showing how state of those prefs may change upon
166 // common real-life use cases:
167 // AppLocale Backup Accepted
168 // Initial login - A -
171 // -----------------------------------------------------------
172 // Initial login - A -
173 // No sync and second login A A -
174 // Change options B B -
175 // -----------------------------------------------------------
176 // Initial login - A -
178 // Locale changed on login screen A C -
180 // -----------------------------------------------------------
181 // Initial login - A -
184 const char kApplicationLocaleBackup
[] = "intl.app_locale_backup";
187 // The default character encoding to assume for a web page in the
188 // absence of MIME charset specification
189 const char kDefaultCharset
[] = "intl.charset_default";
191 // The value to use for Accept-Languages HTTP header when making an HTTP
193 const char kAcceptLanguages
[] = "intl.accept_languages";
195 // The value to use for showing locale-dependent encoding list for different
196 // locale, it's initialized from the corresponding string resource that is
197 // stored in non-translatable part of the resource bundle.
198 const char kStaticEncodings
[] = "intl.static_encodings";
200 // If these change, the corresponding enums in the extension API
201 // experimental.fontSettings.json must also change.
202 const char* const kWebKitScriptsForFontFamilyMaps
[] = {
203 #define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
204 #include "chrome/common/pref_font_script_names-inl.h"
205 ALL_FONT_SCRIPTS("unused param")
206 #undef EXPAND_SCRIPT_FONT
209 const size_t kWebKitScriptsForFontFamilyMapsLength
=
210 arraysize(kWebKitScriptsForFontFamilyMaps
);
212 // Strings for WebKit font family preferences. If these change, the pref prefix
213 // in pref_names_util.cc and the pref format in font_settings_api.cc must also
215 const char kWebKitStandardFontFamilyMap
[] =
216 WEBKIT_WEBPREFS_FONTS_STANDARD
;
217 const char kWebKitFixedFontFamilyMap
[] =
218 WEBKIT_WEBPREFS_FONTS_FIXED
;
219 const char kWebKitSerifFontFamilyMap
[] =
220 WEBKIT_WEBPREFS_FONTS_SERIF
;
221 const char kWebKitSansSerifFontFamilyMap
[] =
222 WEBKIT_WEBPREFS_FONTS_SANSERIF
;
223 const char kWebKitCursiveFontFamilyMap
[] =
224 WEBKIT_WEBPREFS_FONTS_CURSIVE
;
225 const char kWebKitFantasyFontFamilyMap
[] =
226 WEBKIT_WEBPREFS_FONTS_FANTASY
;
227 const char kWebKitPictographFontFamilyMap
[] =
228 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH
;
229 const char kWebKitStandardFontFamilyArabic
[] =
230 "webkit.webprefs.fonts.standard.Arab";
232 const char kWebKitFixedFontFamilyArabic
[] =
233 "webkit.webprefs.fonts.fixed.Arab";
235 const char kWebKitSerifFontFamilyArabic
[] =
236 "webkit.webprefs.fonts.serif.Arab";
237 const char kWebKitSansSerifFontFamilyArabic
[] =
238 "webkit.webprefs.fonts.sansserif.Arab";
240 const char kWebKitStandardFontFamilyCyrillic
[] =
241 "webkit.webprefs.fonts.standard.Cyrl";
242 const char kWebKitFixedFontFamilyCyrillic
[] =
243 "webkit.webprefs.fonts.fixed.Cyrl";
244 const char kWebKitSerifFontFamilyCyrillic
[] =
245 "webkit.webprefs.fonts.serif.Cyrl";
246 const char kWebKitSansSerifFontFamilyCyrillic
[] =
247 "webkit.webprefs.fonts.sansserif.Cyrl";
248 const char kWebKitStandardFontFamilyGreek
[] =
249 "webkit.webprefs.fonts.standard.Grek";
250 const char kWebKitFixedFontFamilyGreek
[] =
251 "webkit.webprefs.fonts.fixed.Grek";
252 const char kWebKitSerifFontFamilyGreek
[] =
253 "webkit.webprefs.fonts.serif.Grek";
254 const char kWebKitSansSerifFontFamilyGreek
[] =
255 "webkit.webprefs.fonts.sansserif.Grek";
257 const char kWebKitStandardFontFamilyJapanese
[] =
258 "webkit.webprefs.fonts.standard.Jpan";
259 const char kWebKitFixedFontFamilyJapanese
[] =
260 "webkit.webprefs.fonts.fixed.Jpan";
261 const char kWebKitSerifFontFamilyJapanese
[] =
262 "webkit.webprefs.fonts.serif.Jpan";
263 const char kWebKitSansSerifFontFamilyJapanese
[] =
264 "webkit.webprefs.fonts.sansserif.Jpan";
265 const char kWebKitStandardFontFamilyKorean
[] =
266 "webkit.webprefs.fonts.standard.Hang";
267 const char kWebKitFixedFontFamilyKorean
[] =
268 "webkit.webprefs.fonts.fixed.Hang";
269 const char kWebKitSerifFontFamilyKorean
[] =
270 "webkit.webprefs.fonts.serif.Hang";
271 const char kWebKitSansSerifFontFamilyKorean
[] =
272 "webkit.webprefs.fonts.sansserif.Hang";
274 const char kWebKitCursiveFontFamilyKorean
[] =
275 "webkit.webprefs.fonts.cursive.Hang";
277 const char kWebKitStandardFontFamilySimplifiedHan
[] =
278 "webkit.webprefs.fonts.standard.Hans";
279 const char kWebKitFixedFontFamilySimplifiedHan
[] =
280 "webkit.webprefs.fonts.fixed.Hans";
281 const char kWebKitSerifFontFamilySimplifiedHan
[] =
282 "webkit.webprefs.fonts.serif.Hans";
283 const char kWebKitSansSerifFontFamilySimplifiedHan
[] =
284 "webkit.webprefs.fonts.sansserif.Hans";
285 const char kWebKitStandardFontFamilyTraditionalHan
[] =
286 "webkit.webprefs.fonts.standard.Hant";
287 const char kWebKitFixedFontFamilyTraditionalHan
[] =
288 "webkit.webprefs.fonts.fixed.Hant";
289 const char kWebKitSerifFontFamilyTraditionalHan
[] =
290 "webkit.webprefs.fonts.serif.Hant";
291 const char kWebKitSansSerifFontFamilyTraditionalHan
[] =
292 "webkit.webprefs.fonts.sansserif.Hant";
294 // WebKit preferences.
295 const char kWebKitWebSecurityEnabled
[] = "webkit.webprefs.web_security_enabled";
296 const char kWebKitDomPasteEnabled
[] = "webkit.webprefs.dom_paste_enabled";
297 const char kWebKitUsesUniversalDetector
[] =
298 "webkit.webprefs.uses_universal_detector";
299 const char kWebKitTextAreasAreResizable
[] =
300 "webkit.webprefs.text_areas_are_resizable";
301 const char kWebKitJavaEnabled
[] = "webkit.webprefs.java_enabled";
302 const char kWebkitTabsToLinks
[] = "webkit.webprefs.tabs_to_links";
303 const char kWebKitAllowDisplayingInsecureContent
[] =
304 "webkit.webprefs.allow_displaying_insecure_content";
305 const char kWebKitAllowRunningInsecureContent
[] =
306 "webkit.webprefs.allow_running_insecure_content";
307 #if defined(OS_ANDROID)
308 const char kWebKitFontScaleFactor
[] = "webkit.webprefs.font_scale_factor";
309 const char kWebKitForceEnableZoom
[] = "webkit.webprefs.force_enable_zoom";
310 const char kWebKitPasswordEchoEnabled
[] =
311 "webkit.webprefs.password_echo_enabled";
314 const char kWebKitCommonScript
[] = "Zyyy";
315 const char kWebKitStandardFontFamily
[] = "webkit.webprefs.fonts.standard.Zyyy";
316 const char kWebKitFixedFontFamily
[] = "webkit.webprefs.fonts.fixed.Zyyy";
317 const char kWebKitSerifFontFamily
[] = "webkit.webprefs.fonts.serif.Zyyy";
318 const char kWebKitSansSerifFontFamily
[] =
319 "webkit.webprefs.fonts.sansserif.Zyyy";
320 const char kWebKitCursiveFontFamily
[] = "webkit.webprefs.fonts.cursive.Zyyy";
321 const char kWebKitFantasyFontFamily
[] = "webkit.webprefs.fonts.fantasy.Zyyy";
322 const char kWebKitPictographFontFamily
[] =
323 "webkit.webprefs.fonts.pictograph.Zyyy";
324 const char kWebKitDefaultFontSize
[] = "webkit.webprefs.default_font_size";
325 const char kWebKitDefaultFixedFontSize
[] =
326 "webkit.webprefs.default_fixed_font_size";
327 const char kWebKitMinimumFontSize
[] = "webkit.webprefs.minimum_font_size";
328 const char kWebKitMinimumLogicalFontSize
[] =
329 "webkit.webprefs.minimum_logical_font_size";
330 const char kWebKitJavascriptEnabled
[] = "webkit.webprefs.javascript_enabled";
331 const char kWebKitJavascriptCanOpenWindowsAutomatically
[] =
332 "webkit.webprefs.javascript_can_open_windows_automatically";
333 const char kWebKitLoadsImagesAutomatically
[] =
334 "webkit.webprefs.loads_images_automatically";
335 const char kWebKitPluginsEnabled
[] = "webkit.webprefs.plugins_enabled";
337 // Boolean that is true when SafeBrowsing is enabled.
338 const char kSafeBrowsingEnabled
[] = "safebrowsing.enabled";
340 // Boolean that tell us whether Safe Browsing extended reporting is enabled.
341 const char kSafeBrowsingExtendedReportingEnabled
[] =
342 "safebrowsing.extended_reporting_enabled";
344 // Boolean that is true when the SafeBrowsing interstitial should not allow
345 // users to proceed anyway.
346 const char kSafeBrowsingProceedAnywayDisabled
[] =
347 "safebrowsing.proceed_anyway_disabled";
349 // A dictionary mapping incident types to a dict of incident key:digest pairs.
350 const char kSafeBrowsingIncidentsSent
[] = "safebrowsing.incidents_sent";
352 // Boolean that tells us whether users are given the option to opt in to Safe
353 // Browsing extended reporting.
354 const char kSafeBrowsingExtendedReportingOptInAllowed
[] =
355 "safebrowsing.extended_reporting_opt_in_allowed";
357 // Boolean that is true when the SSL interstitial should allow users to
358 // proceed anyway. Otherwise, proceeding is not possible.
359 const char kSSLErrorOverrideAllowed
[] = "ssl.error_override_allowed";
361 // Enum that specifies whether Incognito mode is:
362 // 0 - Enabled. Default behaviour. Default mode is available on demand.
363 // 1 - Disabled. Used cannot browse pages in Incognito mode.
364 // 2 - Forced. All pages/sessions are forced into Incognito.
365 const char kIncognitoModeAvailability
[] = "incognito.mode_availability";
367 // Boolean that is true when Suggest support is enabled.
368 const char kSearchSuggestEnabled
[] = "search.suggest_enabled";
370 #if defined(OS_ANDROID)
371 // String indicating the Contextual Search enabled state.
372 // "false" - opt-out (disabled)
373 // "" (empty string) - undecided
374 // "true" - opt-in (enabled)
375 const char kContextualSearchEnabled
[] = "search.contextual_search_enabled";
378 #if defined(OS_MACOSX)
379 // Boolean that indicates whether the browser should put up a confirmation
380 // window when the user is attempting to quit. Mac only.
381 const char kConfirmToQuitEnabled
[] = "browser.confirm_to_quit";
384 // Boolean which specifies whether we should ask the user if we should download
385 // a file (true) or just download it automatically.
386 const char kPromptForDownload
[] = "download.prompt_for_download";
388 // A boolean pref set to true if we're using Link Doctor error pages.
389 const char kAlternateErrorPagesEnabled
[] = "alternate_error_pages.enabled";
391 // An adaptively identified list of domain names to be pre-fetched during the
392 // next startup, based on what was actually needed during this startup.
393 const char kDnsPrefetchingStartupList
[] = "dns_prefetching.startup_list";
395 // A list of host names used to fetch web pages, and their commonly used
396 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
397 // preconnecting to, such sub-resource hostnames).
398 // This list is adaptively grown and pruned.
399 const char kDnsPrefetchingHostReferralList
[] =
400 "dns_prefetching.host_referral_list";
402 // Disables the SPDY protocol.
403 const char kDisableSpdy
[] = "spdy.disabled";
405 // Prefs for persisting HttpServerProperties.
406 const char kHttpServerProperties
[] = "net.http_server_properties";
408 #if defined(OS_ANDROID) || defined(OS_IOS)
409 // Last time that a check for cloud policy management was done. This time is
410 // recorded on Android so that retries aren't attempted on every startup.
411 // Instead the cloud policy registration is retried at least 1 or 3 days later.
412 const char kLastPolicyCheckTime
[] = "policy.last_policy_check_time";
415 // Prefix URL for the experimental Instant ZeroSuggest provider.
416 const char kInstantUIZeroSuggestUrlPrefix
[] =
417 "instant_ui.zero_suggest_url_prefix";
419 // A boolean pref set to true if prediction of network actions is allowed.
420 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
421 // of web pages, and resource prefetching.
422 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
423 // preferences are not lost.
424 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
425 // is functioning as per crbug.com/334602.
426 const char kNetworkPredictionEnabled
[] = "dns_prefetching.enabled";
428 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
429 // if prediction of network actions is allowed, depending on network type.
430 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
431 // of web pages, and resource prefetching.
432 // TODO(bnc): Implement this preference as per crbug.com/334602.
433 const char kNetworkPredictionOptions
[] = "net.network_prediction_options";
435 // An integer representing the state of the default apps installation process.
436 // This value is persisted in the profile's user preferences because the process
437 // is async, and the user may have stopped chrome in the middle. The next time
438 // the profile is opened, the process will continue from where it left off.
440 // See possible values in external_provider_impl.cc.
441 const char kDefaultAppsInstallState
[] = "default_apps_install_state";
443 // A boolean pref set to true if the Chrome Web Store icons should be hidden
444 // from the New Tab Page and app launcher.
445 const char kHideWebStoreIcon
[] = "hide_web_store_icon";
447 #if defined(OS_CHROMEOS)
448 // A boolean pref set to true if touchpad tap-to-click is enabled.
449 const char kTapToClickEnabled
[] = "settings.touchpad.enable_tap_to_click";
451 // A boolean pref set to true if touchpad tap-dragging is enabled.
452 const char kTapDraggingEnabled
[] = "settings.touchpad.enable_tap_dragging";
454 // A boolean pref set to true if touchpad three-finger-click is enabled.
455 const char kEnableTouchpadThreeFingerClick
[] =
456 "settings.touchpad.enable_three_finger_click";
458 // A boolean pref set to true if touchpad natural scrolling is enabled.
459 const char kNaturalScroll
[] = "settings.touchpad.natural_scroll";
461 // A boolean pref set to true if primary mouse button is the left button.
462 const char kPrimaryMouseButtonRight
[] = "settings.mouse.primary_right";
464 // A integer pref for the touchpad sensitivity.
465 const char kMouseSensitivity
[] = "settings.mouse.sensitivity2";
467 // A integer pref for the touchpad sensitivity.
468 const char kTouchpadSensitivity
[] = "settings.touchpad.sensitivity2";
470 // A boolean pref set to true if time should be displayed in 24-hour clock.
471 const char kUse24HourClock
[] = "settings.clock.use_24hour_clock";
473 // This setting disables manual timezone selection and starts periodic timezone
475 const char kResolveTimezoneByGeolocation
[] =
476 "settings.resolve_timezone_by_geolocation";
478 // A string pref set to the current input method.
479 const char kLanguageCurrentInputMethod
[] =
480 "settings.language.current_input_method";
482 // A string pref set to the previous input method.
483 const char kLanguagePreviousInputMethod
[] =
484 "settings.language.previous_input_method";
486 // A string pref (comma-separated list) set to the preferred language IDs
487 // (ex. "en-US,fr,ko").
488 const char kLanguagePreferredLanguages
[] =
489 "settings.language.preferred_languages";
490 const char kLanguagePreferredLanguagesSyncable
[] =
491 "settings.language.preferred_languages_syncable";
493 // A string pref (comma-separated list) set to the preloaded (active) input
494 // method IDs (ex. "pinyin,mozc").
495 const char kLanguagePreloadEngines
[] = "settings.language.preload_engines";
496 const char kLanguagePreloadEnginesSyncable
[] =
497 "settings.language.preload_engines_syncable";
499 // A string pref (comma-separated list) set to the extension IMEs to be enabled.
500 const char kLanguageEnabledExtensionImes
[] =
501 "settings.language.enabled_extension_imes";
502 const char kLanguageEnabledExtensionImesSyncable
[] =
503 "settings.language.enabled_extension_imes_syncable";
505 // A boolean pref to indicate whether we still need to add the globally synced
506 // input methods. False after the initial post-OOBE sync.
507 const char kLanguageShouldMergeInputMethods
[] =
508 "settings.language.merge_input_methods";
510 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
511 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
512 // src/chrome/browser/chromeos/input_method/xkeyboard.h
513 const char kLanguageRemapSearchKeyTo
[] =
514 // Note: we no longer use XKB for remapping these keys, but we can't change
515 // the pref names since the names are already synced with the cloud.
516 "settings.language.xkb_remap_search_key_to";
517 const char kLanguageRemapControlKeyTo
[] =
518 "settings.language.xkb_remap_control_key_to";
519 const char kLanguageRemapAltKeyTo
[] =
520 "settings.language.xkb_remap_alt_key_to";
521 const char kLanguageRemapCapsLockKeyTo
[] =
522 "settings.language.remap_caps_lock_key_to";
523 const char kLanguageRemapDiamondKeyTo
[] =
524 "settings.language.remap_diamond_key_to";
526 // A boolean pref that causes top-row keys to be interpreted as function keys
527 // instead of as media keys.
528 const char kLanguageSendFunctionKeys
[] =
529 "settings.language.send_function_keys";
531 // A boolean pref which determines whether key repeat is enabled.
532 const char kLanguageXkbAutoRepeatEnabled
[] =
533 "settings.language.xkb_auto_repeat_enabled_r2";
534 // A integer pref which determines key repeat delay (in ms).
535 const char kLanguageXkbAutoRepeatDelay
[] =
536 "settings.language.xkb_auto_repeat_delay_r2";
537 // A integer pref which determines key repeat interval (in ms).
538 const char kLanguageXkbAutoRepeatInterval
[] =
539 "settings.language.xkb_auto_repeat_interval_r2";
540 // "_r2" suffixes were added to the three prefs above when we changed the
541 // preferences to not be user-configurable or sync with the cloud. The prefs are
542 // now user-configurable and syncable again, but we don't want to overwrite the
543 // current values with the old synced values, so we continue to use this suffix.
545 // A boolean pref which determines whether the large cursor feature is enabled.
546 const char kAccessibilityLargeCursorEnabled
[] =
547 "settings.a11y.large_cursor_enabled";
549 // A boolean pref which determines whether the sticky keys feature is enabled.
550 const char kAccessibilityStickyKeysEnabled
[] =
551 "settings.a11y.sticky_keys_enabled";
552 // A boolean pref which determines whether spoken feedback is enabled.
553 const char kAccessibilitySpokenFeedbackEnabled
[] = "settings.accessibility";
554 // A boolean pref which determines whether high conrast is enabled.
555 const char kAccessibilityHighContrastEnabled
[] =
556 "settings.a11y.high_contrast_enabled";
557 // A boolean pref which determines whether screen magnifier is enabled.
558 const char kAccessibilityScreenMagnifierEnabled
[] =
559 "settings.a11y.screen_magnifier";
560 // A boolean pref which determines whether screen magnifier should center
561 // the text input focus.
562 const char kAccessibilityScreenMagnifierCenterFocus
[] =
563 "settings.a11y.screen_magnifier_center_focus";
564 // A integer pref which determines what type of screen magnifier is enabled.
565 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
566 // we are using another name pref here.
567 const char kAccessibilityScreenMagnifierType
[] =
568 "settings.a11y.screen_magnifier_type2";
569 // A double pref which determines a zooming scale of the screen magnifier.
570 const char kAccessibilityScreenMagnifierScale
[] =
571 "settings.a11y.screen_magnifier_scale";
572 // A boolean pref which determines whether the virtual keyboard is enabled for
573 // accessibility. This feature is separate from displaying an onscreen keyboard
574 // due to lack of a physical keyboard.
575 const char kAccessibilityVirtualKeyboardEnabled
[] =
576 "settings.a11y.virtual_keyboard";
577 // A boolean pref which determines whether autoclick is enabled.
578 const char kAccessibilityAutoclickEnabled
[] = "settings.a11y.autoclick";
579 // An integer pref which determines time in ms between when the mouse cursor
580 // stops and when an autoclick is triggered.
581 const char kAccessibilityAutoclickDelayMs
[] =
582 "settings.a11y.autoclick_delay_ms";
583 // A boolean pref which determines whether the accessibility menu shows
584 // regardless of the state of a11y features.
585 const char kShouldAlwaysShowAccessibilityMenu
[] = "settings.a11y.enable_menu";
587 // A boolean pref which turns on Advanced Filesystem
588 // (USB support, SD card, etc).
589 const char kLabsAdvancedFilesystemEnabled
[] =
590 "settings.labs.advanced_filesystem";
592 // A boolean pref which turns on the mediaplayer.
593 const char kLabsMediaplayerEnabled
[] = "settings.labs.mediaplayer";
595 // A boolean pref that turns on automatic screen locking.
596 const char kEnableAutoScreenLock
[] = "settings.enable_screen_lock";
598 // A boolean pref of whether to show 3G promo notification.
599 const char kShow3gPromoNotification
[] =
600 "settings.internet.mobile.show_3g_promo_notification";
602 // An integer pref counting times Data Saver prompt has been shown.
603 const char kDataSaverPromptsShown
[] =
604 "settings.internet.mobile.datasaver_prompts_shown";
606 // A string pref that contains version where "What's new" promo was shown.
607 const char kChromeOSReleaseNotesVersion
[] = "settings.release_notes.version";
609 // A boolean pref that controls whether proxy settings from shared network
610 // settings (accordingly from device policy) are applied or ignored.
611 const char kUseSharedProxies
[] = "settings.use_shared_proxies";
613 // Power state of the current displays from the last run.
614 const char kDisplayPowerState
[] = "settings.display.power_state";
615 // A dictionary pref that stores per display preferences.
616 const char kDisplayProperties
[] = "settings.display.properties";
618 // A dictionary pref that specifies per-display layout/offset information.
619 // Its key is the ID of the display and its value is a dictionary for the
620 // layout/offset information.
621 const char kSecondaryDisplays
[] = "settings.display.secondary_displays";
623 // A dictionary pref that specifies the state of the rotation lock, and the
624 // display orientation, for the internal display.
625 const char kDisplayRotationLock
[] = "settings.display.rotation_lock";
627 // A boolean pref indicating whether user activity has been observed in the
628 // current session already. The pref is used to restore information about user
629 // activity after browser crashes.
630 const char kSessionUserActivitySeen
[] = "session.user_activity_seen";
632 // A preference to keep track of the session start time. If the session length
633 // limit is configured to start running after initial user activity has been
634 // observed, the pref is set after the first user activity in a session.
635 // Otherwise, it is set immediately after session start. The pref is used to
636 // restore the session start time after browser crashes. The time is expressed
637 // as the serialization obtained from base::TimeTicks::ToInternalValue().
638 const char kSessionStartTime
[] = "session.start_time";
640 // Holds the maximum session time in milliseconds. If this pref is set, the
641 // user is logged out when the maximum session time is reached. The user is
642 // informed about the remaining time by a countdown timer shown in the ash
644 const char kSessionLengthLimit
[] = "session.length_limit";
646 // Whether the session length limit should start running only after the first
647 // user activity has been observed in a session.
648 const char kSessionWaitForInitialUserActivity
[] =
649 "session.wait_for_initial_user_activity";
651 // Inactivity time in milliseconds while the system is on AC power before
652 // the screen should be dimmed, turned off, or locked, before an
653 // IdleActionImminent D-Bus signal should be sent, or before
654 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
655 // kPowerAcIdleDelayMs).
656 const char kPowerAcScreenDimDelayMs
[] = "power.ac_screen_dim_delay_ms";
657 const char kPowerAcScreenOffDelayMs
[] = "power.ac_screen_off_delay_ms";
658 const char kPowerAcScreenLockDelayMs
[] = "power.ac_screen_lock_delay_ms";
659 const char kPowerAcIdleWarningDelayMs
[] = "power.ac_idle_warning_delay_ms";
660 const char kPowerAcIdleDelayMs
[] = "power.ac_idle_delay_ms";
662 // Similar delays while the system is on battery power.
663 const char kPowerBatteryScreenDimDelayMs
[] =
664 "power.battery_screen_dim_delay_ms";
665 const char kPowerBatteryScreenOffDelayMs
[] =
666 "power.battery_screen_off_delay_ms";
667 const char kPowerBatteryScreenLockDelayMs
[] =
668 "power.battery_screen_lock_delay_ms";
669 const char kPowerBatteryIdleWarningDelayMs
[] =
670 "power.battery_idle_warning_delay_ms";
671 const char kPowerBatteryIdleDelayMs
[] =
672 "power.battery_idle_delay_ms";
674 // Inactivity delays used to dim the screen or turn it off while the screen is
676 const char kPowerLockScreenDimDelayMs
[] = "power.lock_screen_dim_delay_ms";
677 const char kPowerLockScreenOffDelayMs
[] = "power.lock_screen_off_delay_ms";
679 // Action that should be performed when the idle delay is reached while the
680 // system is on AC power or battery power.
681 // Values are from the chromeos::PowerPolicyController::Action enum.
682 const char kPowerAcIdleAction
[] = "power.ac_idle_action";
683 const char kPowerBatteryIdleAction
[] = "power.battery_idle_action";
685 // Action that should be performed when the lid is closed.
686 // Values are from the chromeos::PowerPolicyController::Action enum.
687 const char kPowerLidClosedAction
[] = "power.lid_closed_action";
689 // Should audio and video activity be used to disable the above delays?
690 const char kPowerUseAudioActivity
[] = "power.use_audio_activity";
691 const char kPowerUseVideoActivity
[] = "power.use_video_activity";
693 // Should extensions be able to use the chrome.power API to override
694 // screen-related power management (including locking)?
695 const char kPowerAllowScreenWakeLocks
[] = "power.allow_screen_wake_locks";
697 // Amount by which the screen-dim delay should be scaled while the system
698 // is in presentation mode. Values are limited to a minimum of 1.0.
699 const char kPowerPresentationScreenDimDelayFactor
[] =
700 "power.presentation_screen_dim_delay_factor";
702 // Amount by which the screen-dim delay should be scaled when user activity is
703 // observed while the screen is dimmed or soon after the screen has been turned
704 // off. Values are limited to a minimum of 1.0.
705 const char kPowerUserActivityScreenDimDelayFactor
[] =
706 "power.user_activity_screen_dim_delay_factor";
708 // Whether the power management delays should start running only after the first
709 // user activity has been observed in a session.
710 const char kPowerWaitForInitialUserActivity
[] =
711 "power.wait_for_initial_user_activity";
713 // Boolean controlling whether the panel backlight should be forced to a
714 // nonzero level when user activity is observed.
715 const char kPowerForceNonzeroBrightnessForUserActivity
[] =
716 "power.force_nonzero_brightness_for_user_activity";
718 // The URL from which the Terms of Service can be downloaded. The value is only
719 // honored for public accounts.
720 const char kTermsOfServiceURL
[] = "terms_of_service.url";
722 // Indicates that the Profile has made navigations that used a certificate
723 // installed by the system administrator. If that is true then the local cache
724 // of remote data is tainted (e.g. shared scripts), and future navigations
725 // show a warning indicating that the organization may track the browsing
727 const char kUsedPolicyCertificatesOnce
[] = "used_policy_certificates_once";
729 // Indicates whether the remote attestation is enabled for the user.
730 const char kAttestationEnabled
[] = "attestation.enabled";
731 // The list of extensions allowed to use the platformKeysPrivate API for
732 // remote attestation.
733 const char kAttestationExtensionWhitelist
[] = "attestation.extension_whitelist";
735 // A boolean pref indicating whether the projection touch HUD is enabled or not.
736 const char kTouchHudProjectionEnabled
[] = "touch_hud.projection_enabled";
738 // A pref to configure networks. Its value must be a list of
739 // NetworkConfigurations according to the OpenNetworkConfiguration
741 // Currently, this pref is only used to store the policy. The user's
742 // configuration is still stored in Shill.
743 const char kOpenNetworkConfiguration
[] = "onc";
745 // A boolean pref recording whether user has dismissed the multiprofile
746 // itroduction dialog show.
747 const char kMultiProfileNeverShowIntro
[] =
748 "settings.multi_profile_never_show_intro";
750 // A boolean pref recording whether user has dismissed the multiprofile
751 // teleport warning dialog show.
752 const char kMultiProfileWarningShowDismissed
[] =
753 "settings.multi_profile_warning_show_dismissed";
755 // A string pref that holds string enum values of how the user should behave
756 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
757 // for more details of the valid values.
758 const char kMultiProfileUserBehavior
[] = "settings.multiprofile_user_behavior";
760 // A boolean preference indicating whether user has seen first-run tutorial
762 const char kFirstRunTutorialShown
[] = "settings.first_run_tutorial_shown";
764 // Indicates the amount of time for which a user authenticated via SAML can use
765 // offline authentication against a cached password before being forced to go
766 // through online authentication against GAIA again. The time is expressed in
767 // seconds. A value of -1 indicates no limit, allowing the user to use offline
768 // authentication indefinitely. The limit is in effect only if GAIA redirected
769 // the user to a SAML IdP during the last online authentication.
770 const char kSAMLOfflineSigninTimeLimit
[] = "saml.offline_signin_time_limit";
772 // A preference to keep track of the last time the user authenticated against
773 // GAIA using SAML. The preference is updated whenever the user authenticates
774 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
775 // current time. If GAIA performs the authentication itself, the preference is
776 // cleared. The time is expressed as the serialization obtained from
777 // base::Time::ToInternalValue().
778 const char kSAMLLastGAIASignInTime
[] = "saml.last_gaia_sign_in_time";
780 // The total number of seconds that the machine has spent sitting on the
782 const char kTimeOnOobe
[] = "settings.time_on_oobe";
784 // The app/extension name who sets the current wallpaper. If current wallpaper
785 // is set by the component wallpaper picker, it is set to an empty string.
786 const char kCurrentWallpaperAppName
[] = "wallpaper.app.name";
788 // List of mounted file systems via the File System Provider API. Used to
789 // restore them after a reboot.
790 const char kFileSystemProviderMounted
[] = "file_system_provider.mounted";
792 // A boolean pref set to true if the virtual keyboard should be enabled.
793 const char kTouchVirtualKeyboardEnabled
[] = "ui.touch_virtual_keyboard_enabled";
795 // A boolean pref that controls whether wake on SSID is enabled.
796 const char kWakeOnWifiSsid
[] = "settings.internet.wake_on_wifi_ssid";
798 // This is the policy CaptivePortalAuthenticationIgnoresProxy that allows to
799 // open captive portal authentication pages in a separate window under
800 // a temporary incognito profile ("signin profile" is used for this purpose),
801 // which allows to bypass the user's proxy for captive portal authentication.
802 const char kCaptivePortalAuthenticationIgnoresProxy
[] =
803 "proxy.captive_portal_ignores_proxy";
805 // This boolean controls whether the first window shown on first run should be
806 // unconditionally maximized, overriding the heuristic that normally chooses the
808 const char kForceMaximizeOnFirstRun
[] = "ui.force_maximize_on_first_run";
810 // A dictionary pref mapping public keys that identify platform keys to its
811 // properties like whether it's meant for corporate usage.
812 const char kPlatformKeys
[] = "platform_keys";
813 #endif // defined(OS_CHROMEOS)
815 // A boolean pref set to true if a Home button to open the Home pages should be
816 // visible on the toolbar.
817 const char kShowHomeButton
[] = "browser.show_home_button";
819 // A string value which saves short list of recently user selected encodings
820 // separated with comma punctuation mark.
821 const char kRecentlySelectedEncoding
[] = "profile.recently_selected_encodings";
823 // Clear Browsing Data dialog preferences.
824 const char kDeleteBrowsingHistory
[] = "browser.clear_data.browsing_history";
825 const char kDeleteDownloadHistory
[] = "browser.clear_data.download_history";
826 const char kDeleteCache
[] = "browser.clear_data.cache";
827 const char kDeleteCookies
[] = "browser.clear_data.cookies";
828 const char kDeletePasswords
[] = "browser.clear_data.passwords";
829 const char kDeleteFormData
[] = "browser.clear_data.form_data";
830 const char kDeleteHostedAppsData
[] = "browser.clear_data.hosted_apps_data";
831 const char kDeauthorizeContentLicenses
[] =
832 "browser.clear_data.content_licenses";
833 const char kDeleteTimePeriod
[] = "browser.clear_data.time_period";
834 const char kLastClearBrowsingDataTime
[] =
835 "browser.last_clear_browsing_data_time";
837 // Boolean pref to define the default values for using spellchecker.
838 const char kEnableContinuousSpellcheck
[] = "browser.enable_spellchecking";
840 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
841 const char kEnabledLabsExperiments
[] = "browser.enabled_labs_experiments";
843 // Boolean pref to define the default values for using auto spell correct.
844 const char kEnableAutoSpellCorrect
[] = "browser.enable_autospellcorrect";
846 // Boolean pref to define the default setting for "block offensive words".
847 // The old key value is kept to avoid unnecessary migration code.
848 const char kSpeechRecognitionFilterProfanities
[] =
849 "browser.speechinput_censor_results";
851 // Boolean controlling whether history saving is disabled.
852 const char kSavingBrowserHistoryDisabled
[] = "history.saving_disabled";
854 // Boolean controlling whether deleting browsing and download history is
856 const char kAllowDeletingBrowserHistory
[] = "history.deleting_enabled";
858 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
859 const char kForceGoogleSafeSearch
[] = "settings.force_google_safesearch";
861 // Boolean controlling whether Safety Mode is mandatory on YouTube.
862 const char kForceYouTubeSafetyMode
[] = "settings.force_youtube_safety_mode";
864 // Boolean controlling whether History is recorded and synced for
866 const char kRecordHistory
[] = "settings.history_recorded";
868 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
869 // Linux specific preference on whether we should match the system theme.
870 const char kUsesSystemTheme
[] = "extensions.theme.use_system";
872 const char kCurrentThemePackFilename
[] = "extensions.theme.pack";
873 const char kCurrentThemeID
[] = "extensions.theme.id";
874 const char kCurrentThemeImages
[] = "extensions.theme.images";
875 const char kCurrentThemeColors
[] = "extensions.theme.colors";
876 const char kCurrentThemeTints
[] = "extensions.theme.tints";
877 const char kCurrentThemeDisplayProperties
[] = "extensions.theme.properties";
879 // Boolean pref which persists whether the extensions_ui is in developer mode
880 // (showing developer packing tools and extensions details)
881 const char kExtensionsUIDeveloperMode
[] = "extensions.ui.developer_mode";
883 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
884 // Tool promotion has been dismissed by the user.
885 const char kExtensionsUIDismissedADTPromo
[] =
886 "extensions.ui.dismissed_adt_promo";
888 // Dictionary pref that tracks which command belongs to which
889 // extension + named command pair.
890 const char kExtensionCommands
[] = "extensions.commands";
892 // Pref containing the directory for internal plugins as written to the plugins
894 const char kPluginsLastInternalDirectory
[] = "plugins.last_internal_directory";
896 // List pref containing information (dictionaries) on plugins.
897 const char kPluginsPluginsList
[] = "plugins.plugins_list";
899 // List pref containing names of plugins that are disabled by policy.
900 const char kPluginsDisabledPlugins
[] = "plugins.plugins_disabled";
902 // List pref containing exceptions to the list of plugins disabled by policy.
903 const char kPluginsDisabledPluginsExceptions
[] =
904 "plugins.plugins_disabled_exceptions";
906 // List pref containing names of plugins that are enabled by policy.
907 const char kPluginsEnabledPlugins
[] = "plugins.plugins_enabled";
909 // When bundled NPAPI Flash is removed, if at that point it is enabled while
910 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
911 // want to do so in M45, once, for realz.
912 const char kNpapiFlashMigratedToPepperFlash
[] =
913 "plugins.npapi_flash_migrated_to_pepper_flash";
915 #if !defined(OS_ANDROID)
916 // Whether about:plugins is shown in the details mode or not.
917 const char kPluginsShowDetails
[] = "plugins.show_details";
920 // Boolean that indicates whether outdated plugins are allowed or not.
921 const char kPluginsAllowOutdated
[] = "plugins.allow_outdated";
923 // Boolean that indicates whether plugins that require authorization should
924 // be always allowed or not.
925 const char kPluginsAlwaysAuthorize
[] = "plugins.always_authorize";
927 #if defined(ENABLE_PLUGIN_INSTALLATION)
928 // Dictionary holding plugins metadata.
929 const char kPluginsMetadata
[] = "plugins.metadata";
931 // Last update time of plugins resource cache.
932 const char kPluginsResourceCacheUpdate
[] = "plugins.resource_cache_update";
935 // Boolean that indicates whether we should check if we are the default browser
937 const char kCheckDefaultBrowser
[] = "browser.check_default_browser";
939 // Policy setting whether default browser check should be disabled and default
940 // browser registration should take place.
941 const char kDefaultBrowserSettingEnabled
[] =
942 "browser.default_browser_setting_enabled";
944 #if defined(OS_MACOSX)
945 // Boolean that indicates whether the application should show the info bar
946 // asking the user to set up automatic updates when Keystone promotion is
948 const char kShowUpdatePromotionInfoBar
[] =
949 "browser.show_update_promotion_info_bar";
952 // Boolean that is false if we should show window manager decorations. If
953 // true, we draw a custom chrome frame (thicker title bar and blue border).
954 const char kUseCustomChromeFrame
[] = "browser.custom_chrome_frame";
956 #if !defined(OS_ANDROID)
957 // Which plugins have been whitelisted manually by the user.
958 const char kContentSettingsPluginWhitelist
[] =
959 "profile.content_settings.plugin_whitelist";
962 // Boolean that is true when all locally stored site data (e.g. cookies, local
963 // storage, etc..) should be deleted on exit.
964 const char kClearSiteDataOnExit
[] = "profile.clear_site_data_on_exit";
966 // Double that indicates the default zoom level.
967 const char kPartitionDefaultZoomLevel
[] = "partition.default_zoom_level";
969 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
970 // be displayed at the default zoom level.
971 const char kPartitionPerHostZoomLevels
[] = "partition.per_host_zoom_levels";
973 // A dictionary that tracks the default data model to use for each section of
975 const char kAutofillDialogAutofillDefault
[] = "autofill.data_model_default";
977 // Whether a user opted out of making purchases with Google Wallet; changed via
978 // the autofill dialog's account chooser and set explicitly on dialog submission
979 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
980 const char kAutofillDialogPayWithoutWallet
[] = "autofill.pay_without_wallet";
982 // Which GAIA users have accepted that use of Google Wallet implies their
983 // location will be shared with fraud protection services.
984 const char kAutofillDialogWalletLocationAcceptance
[] =
985 "autofill.wallet_location_disclosure";
987 // Whether a user wants to save data locally in Autofill.
988 const char kAutofillDialogSaveData
[] = "autofill.save_data";
990 // Whether the user has selected "Same as billing" for the shipping address when
991 // using Google Wallet.
992 const char kAutofillDialogWalletShippingSameAsBilling
[] =
993 "autofill.wallet_shipping_same_as_billing";
995 // The number of times the generated credit card bubble has been shown.
996 const char kAutofillGeneratedCardBubbleTimesShown
[] =
997 "autofill.generated_card_bubble_times_shown";
999 #if defined(OS_ANDROID)
1000 // A dictionary that tracks the defaults to be set on the next invocation
1001 // of the requestAutocomplete dialog.
1002 const char kAutofillDialogDefaults
[] = "autofill.rac_dialog_defaults";
1005 #if !defined(OS_ANDROID)
1006 const char kPinnedTabs
[] = "pinned_tabs";
1009 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1010 const char kDisable3DAPIs
[] = "disable_3d_apis";
1012 const char kEnableDeprecatedWebPlatformFeatures
[] =
1013 "enable_deprecated_web_platform_features";
1015 // Whether to enable hyperlink auditing ("<a ping>").
1016 const char kEnableHyperlinkAuditing
[] = "enable_a_ping";
1018 // Whether to enable sending referrers.
1019 const char kEnableReferrers
[] = "enable_referrers";
1021 // Whether to send the DNT header.
1022 const char kEnableDoNotTrack
[] = "enable_do_not_track";
1024 // GL_VENDOR string.
1025 const char kGLVendorString
[] = "gl_vendor_string";
1027 // GL_RENDERER string.
1028 const char kGLRendererString
[] = "gl_renderer_string";
1030 // GL_VERSION string.
1031 const char kGLVersionString
[] = "gl_version_string";
1033 // Boolean that specifies whether to import the form data for autofill from the
1034 // default browser on first run.
1035 const char kImportAutofillFormData
[] = "import_autofill_form_data";
1037 // Boolean that specifies whether to import bookmarks from the default browser
1039 const char kImportBookmarks
[] = "import_bookmarks";
1041 // Boolean that specifies whether to import the browsing history from the
1042 // default browser on first run.
1043 const char kImportHistory
[] = "import_history";
1045 // Boolean that specifies whether to import the homepage from the default
1046 // browser on first run.
1047 const char kImportHomepage
[] = "import_home_page";
1049 // Boolean that specifies whether to import the saved passwords from the default
1050 // browser on first run.
1051 const char kImportSavedPasswords
[] = "import_saved_passwords";
1053 // Boolean that specifies whether to import the search engine from the default
1054 // browser on first run.
1055 const char kImportSearchEngine
[] = "import_search_engine";
1057 // Profile avatar and name
1058 const char kProfileAvatarIndex
[] = "profile.avatar_index";
1059 const char kProfileName
[] = "profile.name";
1060 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1061 // because it was randomly assigned at profile creation time.
1062 const char kProfileUsingDefaultName
[] = "profile.using_default_name";
1063 // Whether a profile is using an avatar without having explicitely chosen it
1064 // (i.e. was assigned by default by legacy profile creation).
1065 const char kProfileUsingDefaultAvatar
[] = "profile.using_default_avatar";
1066 const char kProfileUsingGAIAAvatar
[] = "profile.using_gaia_avatar";
1068 // The supervised user ID.
1069 const char kSupervisedUserId
[] = "profile.managed_user_id";
1071 // 64-bit integer serialization of the base::Time when the user's GAIA info
1072 // was last updated.
1073 const char kProfileGAIAInfoUpdateTime
[] = "profile.gaia_info_update_time";
1075 // The URL from which the GAIA profile picture was downloaded. This is cached to
1076 // prevent the same picture from being downloaded multiple times.
1077 const char kProfileGAIAInfoPictureURL
[] = "profile.gaia_info_picture_url";
1079 // Integer that specifies the number of times that we have shown the upgrade
1080 // tutorial card in the avatar menu bubble.
1081 const char kProfileAvatarTutorialShown
[] =
1082 "profile.avatar_bubble_tutorial_shown";
1084 // Boolean that specifies if the user has already dismissed the right-click user
1085 // switching tutorial.
1086 const char kProfileAvatarRightClickTutorialDismissed
[] =
1087 "profile.avatar_bubble_right_click_tutorial_dismissed";
1089 // Indicates if we've already shown a notification that high contrast
1090 // mode is on, recommending high-contrast extensions and themes.
1091 const char kInvertNotificationShown
[] = "invert_notification_version_2_shown";
1093 // Boolean controlling whether printing is enabled.
1094 const char kPrintingEnabled
[] = "printing.enabled";
1096 // Boolean controlling whether print preview is disabled.
1097 const char kPrintPreviewDisabled
[] = "printing.print_preview_disabled";
1099 // An integer pref specifying the fallback behavior for sites outside of content
1101 // 0: Allow (does nothing)
1104 const char kDefaultSupervisedUserFilteringBehavior
[] =
1105 "profile.managed.default_filtering_behavior";
1107 // Whether this user is permitted to create supervised users.
1108 const char kSupervisedUserCreationAllowed
[] =
1109 "profile.managed_user_creation_allowed";
1111 // List pref containing the users supervised by this user.
1112 const char kSupervisedUsers
[] = "profile.managed_users";
1114 // String that indicates that the profile reset prompt has already been shown to
1115 // the user (profile).
1116 const char kProfileResetPromptMementoInProfilePrefs
[] =
1117 "profile.reset_prompt_memento";
1119 // List pref containing the extension ids which are not allowed to send
1120 // notifications to the message center.
1121 const char kMessageCenterDisabledExtensionIds
[] =
1122 "message_center.disabled_extension_ids";
1124 // List pref containing the system component ids which are not allowed to send
1125 // notifications to the message center.
1126 const char kMessageCenterDisabledSystemComponentIds
[] =
1127 "message_center.disabled_system_component_ids";
1129 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1130 // by the user. Syncable.
1131 // Note: This is now read-only. The welcome notification writes the _local
1133 const char kWelcomeNotificationDismissed
[] =
1134 "message_center.welcome_notification_dismissed";
1136 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1137 // by the user on this machine.
1138 const char kWelcomeNotificationDismissedLocal
[] =
1139 "message_center.welcome_notification_dismissed_local";
1141 // Boolean pref indicating the welcome notification was previously popped up.
1142 const char kWelcomeNotificationPreviouslyPoppedUp
[] =
1143 "message_center.welcome_notification_previously_popped_up";
1145 // Integer pref containing the expiration timestamp of the welcome notification.
1146 const char kWelcomeNotificationExpirationTimestamp
[] =
1147 "message_center.welcome_notification_expiration_timestamp";
1149 // Boolean pref that determines whether the user can enter fullscreen mode.
1150 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1152 const char kFullscreenAllowed
[] = "fullscreen.allowed";
1154 // Enable notifications for new devices on the local network that can be
1155 // registered to the user's account, e.g. Google Cloud Print printers.
1156 const char kLocalDiscoveryNotificationsEnabled
[] =
1157 "local_discovery.notifications_enabled";
1159 // How many Service Workers are registered with the Push API (could be zero).
1160 const char kPushMessagingRegistrationCount
[] =
1161 "gcm.push_messaging_registration_count";
1163 // Maps from app ids to origin + Service Worker registration ID.
1164 const char kPushMessagingAppIdentifierMap
[] =
1165 "gcm.push_messaging_application_id_map";
1167 // Whether a user is allowed to use Easy Unlock.
1168 const char kEasyUnlockAllowed
[] = "easy_unlock.allowed";
1170 // Whether Easy Unlock is enabled.
1171 const char kEasyUnlockEnabled
[] = "easy_unlock.enabled";
1173 // Preference storing Easy Unlock pairing data.
1174 const char kEasyUnlockPairing
[] = "easy_unlock.pairing";
1176 // Whether close proximity between the remote and the local device is required
1177 // in order to use Easy Unlock.
1178 const char kEasyUnlockProximityRequired
[] = "easy_unlock.proximity_required";
1180 #if defined(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1181 // These device IDs are used by the copresence component, to uniquely identify
1182 // this device to the server. For privacy, authenticated and unauthenticated
1183 // calls are made using different device IDs.
1184 const char kCopresenceAuthenticatedDeviceId
[] =
1185 "apps.copresence.auth_device_id";
1186 const char kCopresenceAnonymousDeviceId
[] = "apps.copresence.unauth_device_id";
1188 // Used to indicate whether or not the toolbar redesign bubble has been shown
1189 // and acknowledged, and the last time the bubble was shown.
1190 const char kToolbarIconSurfacingBubbleAcknowledged
[] =
1191 "toolbar_icon_surfacing_bubble_acknowledged";
1192 const char kToolbarIconSurfacingBubbleLastShowTime
[] =
1193 "toolbar_icon_surfacing_bubble_show_time";
1196 // Whether WebRTC should bind to individual NICs to explore all possible routing
1197 // options. Default is true.
1198 #if defined(ENABLE_WEBRTC)
1199 const char kWebRTCMultipleRoutesEnabled
[] = "webrtc.multiple_routes_enabled";
1202 // *************** LOCAL STATE ***************
1203 // These are attached to the machine/installation
1205 // A pref to configure networks device-wide. Its value must be a list of
1206 // NetworkConfigurations according to the OpenNetworkConfiguration
1208 // Currently, this pref is only used to store the policy. The user's
1209 // configuration is still stored in Shill.
1210 const char kDeviceOpenNetworkConfiguration
[] = "device_onc";
1212 // Directory of the last profile used.
1213 const char kProfileLastUsed
[] = "profile.last_used";
1215 // List of directories of the profiles last active.
1216 const char kProfilesLastActive
[] = "profile.last_active_profiles";
1218 // Total number of profiles created for this Chrome build. Used to tag profile
1220 const char kProfilesNumCreated
[] = "profile.profiles_created";
1222 // String containing the version of Chrome that the profile was created by.
1223 // If profile was created before this feature was added, this pref will default
1225 const char kProfileCreatedByVersion
[] = "profile.created_by_version";
1227 // A map of profile data directory to cached information. This cache can be
1228 // used to display information about profiles without actually having to load
1230 const char kProfileInfoCache
[] = "profile.info_cache";
1232 // Dictionary that maps profile keys to strings that indicate that the profile
1233 // reset prompt has already been shown to the corresponding user (profile).
1234 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1235 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1236 // explanation of why this redundancy is needed.
1237 const char kProfileResetPromptMementosInLocalState
[] =
1238 "profile.reset_prompt_mementos";
1240 // Prefs for SSLConfigServicePref.
1241 const char kCertRevocationCheckingEnabled
[] = "ssl.rev_checking.enabled";
1242 const char kCertRevocationCheckingRequiredLocalAnchors
[] =
1243 "ssl.rev_checking.required_for_local_anchors";
1244 const char kSSLVersionMin
[] = "ssl.version_min";
1245 const char kSSLVersionMax
[] = "ssl.version_max";
1246 const char kSSLVersionFallbackMin
[] = "ssl.version_fallback_min";
1247 const char kCipherSuiteBlacklist
[] = "ssl.cipher_suites.blacklist";
1248 const char kDisableSSLRecordSplitting
[] = "ssl.ssl_record_splitting.disabled";
1250 // Boolean that specifies whether or not crash reporting and metrics reporting
1251 // are sent over the network for analysis.
1252 const char kMetricsReportingEnabled
[] =
1253 "user_experience_metrics.reporting_enabled";
1255 // Boolean that specifies whether or not crash reports are sent
1256 // over the network for analysis.
1257 #if defined(OS_ANDROID)
1258 const char kCrashReportingEnabled
[] =
1259 "user_experience_metrics_crash.reporting_enabled";
1262 // Number of times a page load event occurred since the last report.
1263 const char kStabilityPageLoadCount
[] =
1264 "user_experience_metrics.stability.page_load_count";
1266 // Number of times a renderer process crashed since the last report.
1267 const char kStabilityRendererCrashCount
[] =
1268 "user_experience_metrics.stability.renderer_crash_count";
1270 // Number of times an extension renderer process crashed since the last report.
1271 const char kStabilityExtensionRendererCrashCount
[] =
1272 "user_experience_metrics.stability.extension_renderer_crash_count";
1274 // This is the location of a list of dictionaries of plugin stability stats.
1275 const char kStabilityPluginStats
[] =
1276 "user_experience_metrics.stability.plugin_stats2";
1278 // Number of times the renderer has become non-responsive since the last
1280 const char kStabilityRendererHangCount
[] =
1281 "user_experience_metrics.stability.renderer_hang_count";
1283 // Total number of child process crashes (other than renderer / extension
1284 // renderer ones, and plugin children, which are counted separately) since the
1286 const char kStabilityChildProcessCrashCount
[] =
1287 "user_experience_metrics.stability.child_process_crash_count";
1289 // On Chrome OS, total number of non-Chrome user process crashes
1290 // since the last report.
1291 const char kStabilityOtherUserCrashCount
[] =
1292 "user_experience_metrics.stability.other_user_crash_count";
1294 // On Chrome OS, total number of kernel crashes since the last report.
1295 const char kStabilityKernelCrashCount
[] =
1296 "user_experience_metrics.stability.kernel_crash_count";
1298 // On Chrome OS, total number of unclean system shutdowns since the
1300 const char kStabilitySystemUncleanShutdownCount
[] =
1301 "user_experience_metrics.stability.system_unclean_shutdowns";
1303 #if defined(OS_ANDROID)
1304 // Activity type that is currently in the foreground for the UMA session.
1305 // Uses the ActivityTypeIds::Type enum.
1306 const char kStabilityForegroundActivityType
[] =
1307 "user_experience_metrics.stability.current_foreground_activity_type";
1309 // Tracks which Activities were launched during the last session.
1310 // See |metrics_service_android.cc| for its usage.
1311 const char kStabilityLaunchedActivityFlags
[] =
1312 "user_experience_metrics.stability.launched_activity_flags";
1314 // List pref: Counts how many times each Activity was launched.
1315 // Indexed into by ActivityTypeIds::Type.
1316 const char kStabilityLaunchedActivityCounts
[] =
1317 "user_experience_metrics.stability.launched_activity_counts";
1319 // List pref: Counts how many times each Activity type was in the foreground
1320 // when a UMA session failed to be shut down properly.
1321 // Indexed into by ActivityTypeIds::Type.
1322 const char kStabilityCrashedActivityCounts
[] =
1323 "user_experience_metrics.stability.crashed_activity_counts";
1326 // The keys below are used for the dictionaries in the
1327 // kStabilityPluginStats list.
1328 const char kStabilityPluginName
[] = "name";
1329 const char kStabilityPluginLaunches
[] = "launches";
1330 const char kStabilityPluginInstances
[] = "instances";
1331 const char kStabilityPluginCrashes
[] = "crashes";
1332 const char kStabilityPluginLoadingErrors
[] = "loading_errors";
1334 // The keys below are strictly increasing counters over the lifetime of
1335 // a chrome installation. They are (optionally) sent up to the uninstall
1336 // survey in the event of uninstallation.
1337 const char kUninstallMetricsPageLoadCount
[] =
1338 "uninstall_metrics.page_load_count";
1339 const char kUninstallLastLaunchTimeSec
[] =
1340 "uninstall_metrics.last_launch_time_sec";
1341 const char kUninstallLastObservedRunTimeSec
[] =
1342 "uninstall_metrics.last_observed_running_time_sec";
1344 // String containing the version of Chrome for which Chrome will not prompt the
1345 // user about setting Chrome as the default browser.
1346 const char kBrowserSuppressDefaultBrowserPrompt
[] =
1347 "browser.suppress_default_browser_prompt_for_version";
1349 // A collection of position, size, and other data relating to the browser
1350 // window to restore on startup.
1351 const char kBrowserWindowPlacement
[] = "browser.window_placement";
1353 // Browser window placement for popup windows.
1354 const char kBrowserWindowPlacementPopup
[] = "browser.window_placement_popup";
1356 // A collection of position, size, and other data relating to the task
1357 // manager window to restore on startup.
1358 const char kTaskManagerWindowPlacement
[] = "task_manager.window_placement";
1360 // A collection of position, size, and other data relating to app windows to
1361 // restore on startup.
1362 const char kAppWindowPlacement
[] = "browser.app_window_placement";
1364 // String which specifies where to download files to by default.
1365 const char kDownloadDefaultDirectory
[] = "download.default_directory";
1367 // Boolean that records if the download directory was changed by an
1368 // upgrade a unsafe location to a safe location.
1369 const char kDownloadDirUpgraded
[] = "download.directory_upgrade";
1371 #if defined(OS_WIN) || defined(OS_LINUX) || \
1372 (defined(OS_MACOSX) && !defined(OS_IOS))
1373 const char kOpenPdfDownloadInSystemReader
[] =
1374 "download.open_pdf_in_system_reader";
1377 // String which specifies where to save html files to by default.
1378 const char kSaveFileDefaultDirectory
[] = "savefile.default_directory";
1380 // The type used to save the page. See the enum SavePackage::SavePackageType in
1381 // the chrome/browser/download/save_package.h for the possible values.
1382 const char kSaveFileType
[] = "savefile.type";
1384 // String which specifies the last directory that was chosen for uploading
1385 // or opening a file.
1386 const char kSelectFileLastDirectory
[] = "selectfile.last_directory";
1388 // Boolean that specifies if file selection dialogs are shown.
1389 const char kAllowFileSelectionDialogs
[] = "select_file_dialogs.allowed";
1391 // Map of default tasks, associated by MIME type.
1392 const char kDefaultTasksByMimeType
[] =
1393 "filebrowser.tasks.default_by_mime_type";
1395 // Map of default tasks, associated by file suffix.
1396 const char kDefaultTasksBySuffix
[] =
1397 "filebrowser.tasks.default_by_suffix";
1399 // Extensions which should be opened upon completion.
1400 const char kDownloadExtensionsToOpen
[] = "download.extensions_to_open";
1402 // Integer which specifies the frequency in milliseconds for detecting whether
1403 // plugin windows are hung.
1404 const char kHungPluginDetectFrequency
[] = "browser.hung_plugin_detect_freq";
1406 // Integer which specifies the timeout value to be used for SendMessageTimeout
1407 // to detect a hung plugin window.
1408 const char kPluginMessageResponseTimeout
[] =
1409 "browser.plugin_message_response_timeout";
1411 // String which represents the dictionary name for our spell-checker.
1412 // This is an old preference that is being migrated to kSpellCheckDictionaries.
1413 const char kSpellCheckDictionary
[] = "spellcheck.dictionary";
1415 // List of strings representing the dictionary names for our spell-checker.
1416 const char kSpellCheckDictionaries
[] = "spellcheck.dictionaries";
1418 // String which represents whether we use the spelling service.
1419 const char kSpellCheckUseSpellingService
[] = "spellcheck.use_spelling_service";
1421 // Dictionary of schemes used by the external protocol handler.
1422 // The value is true if the scheme must be ignored.
1423 const char kExcludedSchemes
[] = "protocol_handler.excluded_schemes";
1425 // Integer that specifies the index of the tab the user was on when they
1426 // last visited the options window.
1427 const char kOptionsWindowLastTabIndex
[] = "options_window.last_tab_index";
1429 // Integer that specifies if the first run bubble should be shown.
1430 // This preference is only registered by the first-run procedure.
1431 const char kShowFirstRunBubbleOption
[] = "show-first-run-bubble-option";
1433 // String containing the last known intranet redirect URL, if any. See
1434 // intranet_redirect_detector.h for more information.
1435 const char kLastKnownIntranetRedirectOrigin
[] = "browser.last_redirect_origin";
1437 // An enum value of how the browser was shut down (see browser_shutdown.h).
1438 const char kShutdownType
[] = "shutdown.type";
1439 // Number of processes that were open when the user shut down.
1440 const char kShutdownNumProcesses
[] = "shutdown.num_processes";
1441 // Number of processes that were shut down using the slow path.
1442 const char kShutdownNumProcessesSlow
[] = "shutdown.num_processes_slow";
1444 // Whether to restart the current Chrome session automatically as the last thing
1445 // before shutting everything down.
1446 const char kRestartLastSessionOnShutdown
[] = "restart.last.session.on.shutdown";
1448 // Set before autorestarting Chrome, cleared on clean exit.
1449 const char kWasRestarted
[] = "was.restarted";
1452 // Preference to be used while relaunching Chrome. This preference dictates if
1453 // Chrome should be launched in Metro or Desktop mode.
1454 // For more info take a look at ChromeRelaunchMode enum.
1455 const char kRelaunchMode
[] = "relaunch.mode";
1458 // Whether Extensions are enabled.
1459 const char kDisableExtensions
[] = "extensions.disabled";
1461 // Whether the plugin finder that lets you install missing plugins is enabled.
1462 const char kDisablePluginFinder
[] = "plugins.disable_plugin_finder";
1464 // Customized app page names that appear on the New Tab Page.
1465 const char kNtpAppPageNames
[] = "ntp.app_page_names";
1467 #if defined(OS_ANDROID)
1468 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1469 const char kNtpCollapsedCurrentlyOpenTabs
[] = "ntp.collapsed_open_tabs";
1472 // Keeps track of which sessions are collapsed in the Other Devices menu.
1473 const char kNtpCollapsedForeignSessions
[] = "ntp.collapsed_foreign_sessions";
1475 #if defined(OS_ANDROID)
1476 // Keeps track of recently closed tabs collapsed state in the Other Devices
1478 const char kNtpCollapsedRecentlyClosedTabs
[] =
1479 "ntp.collapsed_recently_closed_tabs";
1481 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1482 const char kNtpCollapsedSnapshotDocument
[] = "ntp.collapsed_snapshot_document";
1484 // Keeps track of sync promo collapsed state in the Other Devices menu.
1485 const char kNtpCollapsedSyncPromo
[] = "ntp.collapsed_sync_promo";
1488 // Which page should be visible on the new tab page v4
1489 const char kNtpShownPage
[] = "ntp.shown_page";
1491 // A private RSA key for ADB handshake.
1492 const char kDevToolsAdbKey
[] = "devtools.adb_key";
1494 const char kDevToolsDisabled
[] = "devtools.disabled";
1496 // Determines whether devtools should be discovering usb devices for
1497 // remote debugging at chrome://inspect.
1498 const char kDevToolsDiscoverUsbDevicesEnabled
[] =
1499 "devtools.discover_usb_devices";
1501 // Maps of files edited locally using DevTools.
1502 const char kDevToolsEditedFiles
[] = "devtools.edited_files";
1504 // List of file system paths added in DevTools.
1505 const char kDevToolsFileSystemPaths
[] = "devtools.file_system_paths";
1507 // A boolean specifying whether port forwarding should be enabled.
1508 const char kDevToolsPortForwardingEnabled
[] =
1509 "devtools.port_forwarding_enabled";
1511 // A boolean specifying whether default port forwarding configuration has been
1513 const char kDevToolsPortForwardingDefaultSet
[] =
1514 "devtools.port_forwarding_default_set";
1516 // A dictionary of port->location pairs for port forwarding.
1517 const char kDevToolsPortForwardingConfig
[] = "devtools.port_forwarding_config";
1519 // A dictionary with generic DevTools settings.
1520 const char kDevToolsPreferences
[] = "devtools.preferences";
1522 #if defined(OS_ANDROID)
1523 // A boolean specifying whether remote dev tools debugging is enabled.
1524 const char kDevToolsRemoteEnabled
[] = "devtools.remote_enabled";
1527 // Boolean indicating that TiclInvalidationService should use GCM channel.
1528 // False or lack of settings means XMPPPushClient channel.
1529 const char kInvalidationServiceUseGCMChannel
[] =
1530 "invalidation_service.use_gcm_channel";
1532 // Local hash of authentication password, used for off-line authentication
1533 // when on-line authentication is not available.
1534 const char kGoogleServicesPasswordHash
[] = "google.services.password_hash";
1536 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1537 // Tracks the number of times that we have shown the sign in promo at startup.
1538 const char kSignInPromoStartupCount
[] = "sync_promo.startup_count";
1540 // Boolean tracking whether the user chose to skip the sign in promo.
1541 const char kSignInPromoUserSkipped
[] = "sync_promo.user_skipped";
1543 // Boolean that specifies if the sign in promo is allowed to show on first run.
1544 // This preference is specified in the master preference file to suppress the
1545 // sign in promo for some installations.
1546 const char kSignInPromoShowOnFirstRunAllowed
[] =
1547 "sync_promo.show_on_first_run_allowed";
1549 // Boolean that specifies if we should show a bubble in the new tab page.
1550 // The bubble is used to confirm that the user is signed into sync.
1551 const char kSignInPromoShowNTPBubble
[] = "sync_promo.show_ntp_bubble";
1554 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1555 // Boolean tracking whether the user chose to opt out of the x-device promo.
1556 const char kCrossDevicePromoOptedOut
[] = "x_device_promo.opted_out";
1558 // Boolean tracking whether the x-device promo should be shown.
1559 const char kCrossDevicePromoShouldBeShown
[] = "x_device_promo.should_be_shown";
1561 // Int64, representing the time when we first observed a single GAIA account in
1562 // the cookie. If the most recent observation does not contain exactly one
1563 // account, this pref does not exist.
1564 const char kCrossDevicePromoObservedSingleAccountCookie
[] =
1565 "x_device_promo.single_account_observed";
1567 // Int64, representing the time to next call the ListDevices endpoint.
1568 const char kCrossDevicePromoNextFetchListDevicesTime
[] =
1569 "x_device_promo.next_list_devices_fetch";
1571 // Int containing the number of other devices where the profile's account syncs.
1572 const char kCrossDevicePromoNumDevices
[] = "x_device_promo.num_devices";
1574 // Int64, representing the time when we last saw activity on another device.
1575 const char kCrossDevicePromoLastDeviceActiveTime
[] =
1576 "x_device_promo.last_device_active_time";
1579 // Create web application shortcut dialog preferences.
1580 const char kWebAppCreateOnDesktop
[] = "browser.web_app.create_on_desktop";
1581 const char kWebAppCreateInAppsMenu
[] = "browser.web_app.create_in_apps_menu";
1582 const char kWebAppCreateInQuickLaunchBar
[] =
1583 "browser.web_app.create_in_quick_launch_bar";
1585 // Dictionary that maps Geolocation network provider server URLs to
1586 // corresponding access token.
1587 const char kGeolocationAccessToken
[] = "geolocation.access_token";
1589 #if defined(OS_ANDROID)
1590 // Boolean that controls the enabled-state of Geolocation in content.
1591 const char kGeolocationEnabled
[] = "geolocation.enabled";
1594 #if defined(ENABLE_GOOGLE_NOW)
1595 // Boolean that is true when Google services can use the user's location.
1596 const char kGoogleGeolocationAccessEnabled
[] =
1597 "googlegeolocationaccess.enabled";
1600 // Boolean that specifies whether to enable the Google Now Launcher extension.
1601 // Note: This is not the notifications component gated by ENABLE_GOOGLE_NOW.
1602 const char kGoogleNowLauncherEnabled
[] = "google_now_launcher.enabled";
1604 // The default audio capture device used by the Media content setting.
1605 const char kDefaultAudioCaptureDevice
[] = "media.default_audio_capture_device";
1607 // The default video capture device used by the Media content setting.
1608 const char kDefaultVideoCaptureDevice
[] = "media.default_video_capture_Device";
1610 // The salt used for creating random MediaSource IDs.
1611 const char kMediaDeviceIdSalt
[] = "media.device_id_salt";
1613 // The last used printer and its settings.
1614 const char kPrintPreviewStickySettings
[] =
1615 "printing.print_preview_sticky_settings";
1617 // The list of BackgroundContents that should be loaded when the browser
1619 const char kRegisteredBackgroundContents
[] = "background_contents.registered";
1622 // The "major.minor" OS version for which the welcome page was last shown.
1623 const char kLastWelcomedOSVersion
[] = "browser.last_welcomed_os_version";
1625 // An int that stores how often we've shown the "Chrome is configured to
1626 // auto-launch" infobar.
1627 const char kShownAutoLaunchInfobar
[] = "browser.shown_autolaunch_infobar";
1629 // Boolean that specifies whether or not showing the welcome page following an
1630 // OS upgrade is enabled. True by default. May be set by master_preferences or
1631 // overridden by the WelcomePageOnOSUpgradeEnabled policy setting.
1632 const char kWelcomePageOnOSUpgradeEnabled
[] =
1633 "browser.welcome_page_on_os_upgrade_enabled";
1636 // String that lists supported HTTP authentication schemes.
1637 const char kAuthSchemes
[] = "auth.schemes";
1639 // Boolean that specifies whether to disable CNAME lookups when generating
1641 const char kDisableAuthNegotiateCnameLookup
[] =
1642 "auth.disable_negotiate_cname_lookup";
1644 // Boolean that specifies whether to include the port in a generated Kerberos
1646 const char kEnableAuthNegotiatePort
[] = "auth.enable_negotiate_port";
1648 // Whitelist containing servers for which Integrated Authentication is enabled.
1649 const char kAuthServerWhitelist
[] = "auth.server_whitelist";
1651 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1653 const char kAuthNegotiateDelegateWhitelist
[] =
1654 "auth.negotiate_delegate_whitelist";
1656 // String that specifies the name of a custom GSSAPI library to load.
1657 const char kGSSAPILibraryName
[] = "auth.gssapi_library_name";
1659 // String that specifies the Android account type to use for Negotiate
1661 const char kAuthAndroidNegotiateAccountType
[] =
1662 "auth.android_negotiate_account_type";
1664 // Boolean that specifies whether to allow basic auth prompting on cross-
1665 // domain sub-content requests.
1666 const char kAllowCrossOriginAuthPrompt
[] = "auth.allow_cross_origin_prompt";
1668 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1669 const char kBuiltInDnsClientEnabled
[] = "async_dns.enabled";
1671 // A pref holding the value of the policy used to explicitly allow or deny
1672 // access to audio capture devices. When enabled or not set, the user is
1673 // prompted for device access. When disabled, access to audio capture devices
1674 // is not allowed and no prompt will be shown.
1675 // See also kAudioCaptureAllowedUrls.
1676 const char kAudioCaptureAllowed
[] = "hardware.audio_capture_enabled";
1677 // Holds URL patterns that specify URLs that will be granted access to audio
1678 // capture devices without prompt. NOTE: This whitelist is currently only
1679 // supported when running in kiosk mode.
1680 // TODO(tommi): Update comment when this is supported for all modes.
1681 const char kAudioCaptureAllowedUrls
[] = "hardware.audio_capture_allowed_urls";
1683 // A pref holding the value of the policy used to explicitly allow or deny
1684 // access to video capture devices. When enabled or not set, the user is
1685 // prompted for device access. When disabled, access to video capture devices
1686 // is not allowed and no prompt will be shown.
1687 const char kVideoCaptureAllowed
[] = "hardware.video_capture_enabled";
1688 // Holds URL patterns that specify URLs that will be granted access to video
1689 // capture devices without prompt. NOTE: This whitelist is currently only
1690 // supported when running in kiosk mode.
1691 // TODO(tommi): Update comment when this is supported for all modes.
1692 const char kVideoCaptureAllowedUrls
[] = "hardware.video_capture_allowed_urls";
1694 // A boolean pref that controls the enabled-state of hotword search voice
1696 const char kHotwordSearchEnabled
[] = "hotword.search_enabled_2";
1698 // A boolean pref that controls the enabled-state of hotword search voice
1699 // trigger from any screen.
1700 const char kHotwordAlwaysOnSearchEnabled
[] = "hotword.always_on_search_enabled";
1702 // A boolean pref that indicates whether the hotword always-on notification
1703 // has been seen already.
1704 const char kHotwordAlwaysOnNotificationSeen
[] =
1705 "hotword.always_on_notification_seen";
1707 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1708 // seconds of audio data before and the spoken query are sent back to be stored
1709 // in a user's Voice & Audio Activity. Updated whenever the user opens
1710 // chrome://settings and also polled for every 24 hours.
1711 const char kHotwordAudioLoggingEnabled
[] = "hotword.audio_logging_enabled";
1713 // A string holding the locale information under which Hotword was installed.
1714 // It is used for comparison since the hotword voice search trigger must be
1715 // reinstalled to handle a new language.
1716 const char kHotwordPreviousLanguage
[] = "hotword.previous_language";
1718 #if defined(OS_ANDROID)
1719 // Boolean that controls the global enabled-state of protected media identifier.
1720 const char kProtectedMediaIdentifierEnabled
[] =
1721 "protected_media_identifier.enabled";
1724 #if defined(OS_CHROMEOS)
1725 // Dictionary for transient storage of settings that should go into device
1726 // settings storage before owner has been assigned.
1727 const char kDeviceSettingsCache
[] = "signed_settings_cache";
1729 // The hardware keyboard layout of the device. This should look like
1731 const char kHardwareKeyboardLayout
[] = "intl.hardware_keyboard";
1733 // An integer pref which shows number of times carrier deal promo
1734 // notification has been shown to user.
1735 const char kCarrierDealPromoShown
[] =
1736 "settings.internet.mobile.carrier_deal_promo_shown";
1738 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1739 // it's not the default value; otherwise, no auto-enrollment decision has been
1741 const char kShouldAutoEnroll
[] = "ShouldAutoEnroll";
1743 // An integer pref with the maximum number of bits used by the client in a
1744 // previous auto-enrollment request. If the client goes through an auto update
1745 // during OOBE and reboots into a version of the OS with a larger maximum
1746 // modulus, then it will retry auto-enrollment using the updated value.
1747 const char kAutoEnrollmentPowerLimit
[] = "AutoEnrollmentPowerLimit";
1749 // The local state pref that stores device activity times before reporting
1750 // them to the policy server.
1751 const char kDeviceActivityTimes
[] = "device_status.activity_times";
1753 // A pref holding the last known location when device location reporting is
1755 const char kDeviceLocation
[] = "device_status.location";
1757 // A pref holding the value of the policy used to disable mounting of external
1758 // storage for the user.
1759 const char kExternalStorageDisabled
[] = "hardware.external_storage_disabled";
1761 // Copy of owner swap mouse buttons option to use on login screen.
1762 const char kOwnerPrimaryMouseButtonRight
[] = "owner.mouse.primary_right";
1764 // Copy of owner tap-to-click option to use on login screen.
1765 const char kOwnerTapToClickEnabled
[] = "owner.touchpad.enable_tap_to_click";
1767 // The length of device uptime after which an automatic reboot is scheduled,
1768 // expressed in seconds.
1769 const char kUptimeLimit
[] = "automatic_reboot.uptime_limit";
1771 // Whether an automatic reboot should be scheduled when an update has been
1772 // applied and a reboot is required to complete the update process.
1773 const char kRebootAfterUpdate
[] = "automatic_reboot.reboot_after_update";
1775 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1776 // for connection to Google APIs when the user isn't logged in. Currently used
1777 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1778 // Public Accounts and kiosks.
1779 const char kDeviceRobotAnyApiRefreshToken
[] =
1780 "device_robot_refresh_token.any-api";
1782 // Device requisition for enterprise enrollment.
1783 const char kDeviceEnrollmentRequisition
[] = "enrollment.device_requisition";
1785 // Whether to automatically start the enterprise enrollment step during OOBE.
1786 const char kDeviceEnrollmentAutoStart
[] = "enrollment.auto_start";
1788 // Whether the user may exit enrollment.
1789 const char kDeviceEnrollmentCanExit
[] = "enrollment.can_exit";
1791 // How many times HID detection OOBE dialog was shown.
1792 const char kTimesHIDDialogShown
[] = "HIDDialog.shown_how_many_times";
1794 // Dictionary of per-user Least Recently Used input method (used at login
1796 const char kUsersLRUInputMethod
[] = "UsersLRUInputMethod";
1798 // A dictionary pref of the echo offer check flag. It sets offer info when
1799 // an offer is checked.
1800 const char kEchoCheckedOffers
[] = "EchoCheckedOffers";
1802 // Key name of a dictionary in local state to store cached multiprofle user
1803 // behavior policy value.
1804 const char kCachedMultiProfileUserBehavior
[] = "CachedMultiProfileUserBehavior";
1806 // A string pref with initial locale set in VPD or manifest.
1807 const char kInitialLocale
[] = "intl.initial_locale";
1809 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1810 const char kOobeComplete
[] = "OobeComplete";
1812 // The name of the screen that has to be shown if OOBE has been interrupted.
1813 const char kOobeScreenPending
[] = "OobeScreenPending";
1815 // A boolean pref of the device registered flag (second part after first login).
1816 const char kDeviceRegistered
[] = "DeviceRegistered";
1818 // Boolean pref to signal corrupted enrollment to force the device through
1819 // enrollment recovery flow upon next boot.
1820 const char kEnrollmentRecoveryRequired
[] = "EnrollmentRecoveryRequired";
1822 // List of usernames that used certificates pushed by policy before.
1823 // This is used to prevent these users from joining multiprofile sessions.
1824 const char kUsedPolicyCertificates
[] = "policy.used_policy_certificates";
1826 // A dictionary containing server-provided device state pulled form the cloud
1828 const char kServerBackedDeviceState
[] = "server_backed_device_state";
1830 // Customized wallpaper URL, which is already downloaded and scaled.
1831 // The URL from this preference must never be fetched. It is compared to the
1832 // URL from customization document to check if wallpaper URL has changed
1833 // since wallpaper was cached.
1834 const char kCustomizationDefaultWallpaperURL
[] =
1835 "customization.default_wallpaper_url";
1837 // System uptime, when last logout started.
1838 // This is saved to file and cleared after chrome process starts.
1839 const char kLogoutStartedLast
[] = "chromeos.logout-started";
1841 // An integer pref of the current consumer management stage. The meaning of the
1842 // value is defined in:
1843 // chrome/browser/chromeos/policy/consumer_management_stage.h
1844 const char kConsumerManagementStage
[] = "consumer_management.stage";
1845 #endif // defined(OS_CHROMEOS)
1847 // Whether there is a Flash version installed that supports clearing LSO data.
1848 const char kClearPluginLSODataEnabled
[] = "browser.clear_lso_data_enabled";
1850 // Whether we should show Pepper Flash-specific settings.
1851 const char kPepperFlashSettingsEnabled
[] =
1852 "browser.pepper_flash_settings_enabled";
1854 // String which specifies where to store the disk cache.
1855 const char kDiskCacheDir
[] = "browser.disk_cache_dir";
1856 // Pref name for the policy specifying the maximal cache size.
1857 const char kDiskCacheSize
[] = "browser.disk_cache_size";
1858 // Pref name for the policy specifying the maximal media cache size.
1859 const char kMediaCacheSize
[] = "browser.media_cache_size";
1861 // Specifies the release channel that the device should be locked to.
1862 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1863 // empty string, in which case the value will be ignored.
1864 // TODO(dubroy): This preference may not be necessary once
1865 // http://crosbug.com/17015 is implemented and the update engine can just
1866 // fetch the correct value from the policy.
1867 const char kChromeOsReleaseChannel
[] = "cros.system.releaseChannel";
1869 const char kPerformanceTracingEnabled
[] =
1870 "feedback.performance_tracing_enabled";
1872 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1873 // Defaults to false.
1874 const char kTabStripStackedLayout
[] = "tab-strip-stacked-layout";
1876 // Indicates that factory reset was requested from options page or reset screen.
1877 const char kFactoryResetRequested
[] = "FactoryResetRequested";
1879 // Indicates that debugging features were requested from oobe screen.
1880 const char kDebuggingFeaturesRequested
[] = "DebuggingFeaturesRequested";
1882 // Boolean recording whether we have showed a balloon that calls out the message
1883 // center for desktop notifications.
1884 const char kMessageCenterShowedFirstRunBalloon
[] =
1885 "message_center.showed_first_run_balloon";
1887 // Boolean recording whether the user has disabled the notifications
1888 // menubar or systray icon.
1889 const char kMessageCenterShowIcon
[] = "message_center.show_icon";
1891 const char kMessageCenterForcedOnTaskbar
[] =
1892 "message_center.was_forced_on_taskbar";
1894 #if defined(OS_CHROMEOS)
1895 // This setting starts periodic timezone refresh when not in user session.
1896 // (user session is controlled by user profile preference
1897 // kResolveTimezoneByGeolocation
1898 const char kResolveDeviceTimezoneByGeolocation
[] =
1899 "settings.resolve_device_timezone_by_geolocation";
1900 #endif // defined(OS_CHROMEOS)
1902 // *************** SERVICE PREFS ***************
1903 // These are attached to the service process.
1905 const char kCloudPrintRoot
[] = "cloud_print";
1906 const char kCloudPrintProxyEnabled
[] = "cloud_print.enabled";
1907 // The unique id for this instance of the cloud print proxy.
1908 const char kCloudPrintProxyId
[] = "cloud_print.proxy_id";
1909 // The GAIA auth token for Cloud Print
1910 const char kCloudPrintAuthToken
[] = "cloud_print.auth_token";
1911 // The email address of the account used to authenticate with the Cloud Print
1913 const char kCloudPrintEmail
[] = "cloud_print.email";
1914 // Settings specific to underlying print system.
1915 const char kCloudPrintPrintSystemSettings
[] =
1916 "cloud_print.print_system_settings";
1917 // A boolean indicating whether we should poll for print jobs when don't have
1918 // an XMPP connection (false by default).
1919 const char kCloudPrintEnableJobPoll
[] = "cloud_print.enable_job_poll";
1920 const char kCloudPrintRobotRefreshToken
[] = "cloud_print.robot_refresh_token";
1921 const char kCloudPrintRobotEmail
[] = "cloud_print.robot_email";
1922 // A boolean indicating whether we should connect to cloud print new printers.
1923 const char kCloudPrintConnectNewPrinters
[] =
1924 "cloud_print.user_settings.connectNewPrinters";
1925 // A boolean indicating whether we should ping XMPP connection.
1926 const char kCloudPrintXmppPingEnabled
[] = "cloud_print.xmpp_ping_enabled";
1927 // An int value indicating the average timeout between xmpp pings.
1928 const char kCloudPrintXmppPingTimeout
[] = "cloud_print.xmpp_ping_timeout_sec";
1929 // Dictionary with settings stored by connector setup page.
1930 const char kCloudPrintUserSettings
[] = "cloud_print.user_settings";
1931 // List of printers settings.
1932 const char kCloudPrintPrinters
[] = "cloud_print.user_settings.printers";
1933 // A boolean indicating whether submitting jobs to Google Cloud Print is
1934 // blocked by policy.
1935 const char kCloudPrintSubmitEnabled
[] = "cloud_print.submit_enabled";
1937 // Preference to store proxy settings.
1938 const char kProxy
[] = "proxy";
1939 const char kMaxConnectionsPerProxy
[] = "net.max_connections_per_proxy";
1941 #if defined(OS_MACOSX)
1942 // Set to true if the user removed our login item so we should not create a new
1943 // one when uninstalling background apps.
1944 const char kUserRemovedLoginItem
[] = "background_mode.user_removed_login_item";
1946 // Set to true if Chrome already created a login item, so there's no need to
1947 // create another one.
1948 const char kChromeCreatedLoginItem
[] =
1949 "background_mode.chrome_created_login_item";
1951 // Set to true once we've initialized kChromeCreatedLoginItem for the first
1953 const char kMigratedLoginItemPref
[] =
1954 "background_mode.migrated_login_item_pref";
1956 // A boolean that tracks whether to show a notification when trying to quit
1957 // while there are apps running.
1958 const char kNotifyWhenAppsKeepChromeAlive
[] =
1959 "apps.notify-when-apps-keep-chrome-alive";
1962 // Set to true if background mode is enabled on this browser.
1963 const char kBackgroundModeEnabled
[] = "background_mode.enabled";
1965 // Set to true if hardware acceleration mode is enabled on this browser.
1966 const char kHardwareAccelerationModeEnabled
[] =
1967 "hardware_acceleration_mode.enabled";
1969 // Hardware acceleration mode from previous browser launch.
1970 const char kHardwareAccelerationModePrevious
[] =
1971 "hardware_acceleration_mode_previous";
1973 // List of protocol handlers.
1974 const char kRegisteredProtocolHandlers
[] =
1975 "custom_handlers.registered_protocol_handlers";
1977 // List of protocol handlers the user has requested not to be asked about again.
1978 const char kIgnoredProtocolHandlers
[] =
1979 "custom_handlers.ignored_protocol_handlers";
1981 // List of protocol handlers registered by policy.
1982 const char kPolicyRegisteredProtocolHandlers
[] =
1983 "custom_handlers.policy.registered_protocol_handlers";
1985 // List of protocol handlers the policy has requested to be ignored.
1986 const char kPolicyIgnoredProtocolHandlers
[] =
1987 "custom_handlers.policy.ignored_protocol_handlers";
1989 // Whether user-specified handlers for protocols and content types can be
1991 const char kCustomHandlersEnabled
[] = "custom_handlers.enabled";
1993 // Integer that specifies the policy refresh rate for device-policy in
1994 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
1995 // by the cloud policy subsystem.
1996 const char kDevicePolicyRefreshRate
[] = "policy.device_refresh_rate";
1998 // A boolean where true means that the browser has previously attempted to
1999 // enable autoupdate and failed, so the next out-of-date browser start should
2000 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2002 const char kAttemptedToEnableAutoupdate
[] =
2003 "browser.attempted_to_enable_autoupdate";
2005 // The next media gallery ID to assign.
2006 const char kMediaGalleriesUniqueId
[] = "media_galleries.gallery_id";
2008 // A list of dictionaries, where each dictionary represents a known media
2010 const char kMediaGalleriesRememberedGalleries
[] =
2011 "media_galleries.remembered_galleries";
2013 // The last time a media scan completed.
2014 const char kMediaGalleriesLastScanTime
[] = "media_galleries.last_scan_time";
2016 #if defined(USE_ASH)
2017 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2018 // local variant is not synced and is used if set. If the local variant is not
2019 // set its value is set from the synced value (once prefs have been
2020 // synced). This gives a per-machine setting that is initialized from the last
2022 // These values are default on the machine but can be overridden by per-display
2023 // values in kShelfPreferences (unless overridden by managed policy).
2024 // String value corresponding to ash::Shell::ShelfAlignment.
2025 const char kShelfAlignment
[] = "shelf_alignment";
2026 const char kShelfAlignmentLocal
[] = "shelf_alignment_local";
2027 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2028 const char kShelfAutoHideBehavior
[] = "auto_hide_behavior";
2029 const char kShelfAutoHideBehaviorLocal
[] = "auto_hide_behavior_local";
2030 // This value stores chrome icon's index in the launcher. This should be handled
2031 // separately with app shortcut's index because of ShelfModel's backward
2032 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2033 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2034 // creating two chrome icons.
2035 const char kShelfChromeIconIndex
[] = "shelf_chrome_icon_index";
2036 // Dictionary value that holds per-display preference of shelf alignment and
2037 // auto-hide behavior. Key of the dictionary is the id of the display, and
2038 // its value is a dictionary whose keys are kShelfAlignment and
2039 // kShelfAutoHideBehavior.
2040 const char kShelfPreferences
[] = "shelf_preferences";
2042 // Integer value in milliseconds indicating the length of time for which a
2043 // confirmation dialog should be shown when the user presses the logout button.
2044 // A value of 0 indicates that logout should happen immediately, without showing
2045 // a confirmation dialog.
2046 const char kLogoutDialogDurationMs
[] = "logout_dialog_duration_ms";
2047 const char kPinnedLauncherApps
[] = "pinned_launcher_apps";
2048 // Boolean value indicating whether to show a logout button in the ash tray.
2049 const char kShowLogoutButtonInTray
[] = "show_logout_button_in_tray";
2052 #if defined(USE_AURA)
2053 // Tuning settings for gestures.
2054 const char kMaxSeparationForGestureTouchesInPixels
[] =
2055 "gesture.max_separation_for_gesture_touches_in_pixels";
2056 const char kSemiLongPressTimeInMs
[] = "gesture.semi_long_press_time_in_ms";
2057 const char kTabScrubActivationDelayInMs
[] =
2058 "gesture.tab_scrub_activation_delay_in_ms";
2059 const char kFlingMaxCancelToDownTimeInMs
[] =
2060 "gesture.fling_max_cancel_to_down_time_in_ms";
2061 const char kFlingMaxTapGapTimeInMs
[] = "gesture.fling_max_tap_gap_time_in_ms";
2062 const char kOverscrollHorizontalThresholdComplete
[] =
2063 "overscroll.horizontal_threshold_complete";
2064 const char kOverscrollVerticalThresholdComplete
[] =
2065 "overscroll.vertical_threshold_complete";
2066 const char kOverscrollMinimumThresholdStart
[] =
2067 "overscroll.minimum_threshold_start";
2068 const char kOverscrollMinimumThresholdStartTouchpad
[] =
2069 "overscroll.minimum_threshold_start_touchpad";
2070 const char kOverscrollVerticalThresholdStart
[] =
2071 "overscroll.vertical_threshold_start";
2072 const char kOverscrollHorizontalResistThreshold
[] =
2073 "overscroll.horizontal_resist_threshold";
2074 const char kOverscrollVerticalResistThreshold
[] =
2075 "overscroll.vertical_resist_threshold";
2079 // Counts how many more times the 'profile on a network share' warning should be
2080 // shown to the user before the next silence period.
2081 const char kNetworkProfileWarningsLeft
[] = "network_profile.warnings_left";
2082 // Tracks the time of the last shown warning. Used to reset
2083 // |network_profile.warnings_left| after a silence period.
2084 const char kNetworkProfileLastWarningTime
[] =
2085 "network_profile.last_warning_time";
2088 #if defined(OS_CHROMEOS)
2089 // The RLZ brand code, if enabled.
2090 const char kRLZBrand
[] = "rlz.brand";
2091 // Whether RLZ pings are disabled.
2092 const char kRLZDisabled
[] = "rlz.disabled";
2095 #if defined(ENABLE_APP_LIST)
2096 // The directory in user data dir that contains the profile to be used with the
2098 const char kAppListProfile
[] = "app_list.profile";
2100 // The number of times the app launcher was launched since last ping and
2101 // the time of the last ping.
2102 const char kAppListLaunchCount
[] = "app_list.launch_count";
2103 const char kLastAppListLaunchPing
[] = "app_list.last_launch_ping";
2105 // The number of times the an app was launched from the app launcher since last
2106 // ping and the time of the last ping.
2107 const char kAppListAppLaunchCount
[] = "app_list.app_launch_count";
2108 const char kLastAppListAppLaunchPing
[] = "app_list.last_app_launch_ping";
2110 // A boolean that tracks whether the user has ever enabled the app launcher.
2111 const char kAppLauncherHasBeenEnabled
[] =
2112 "apps.app_launcher.has_been_enabled";
2114 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2115 // install, command line, etc. For UMA.
2116 const char kAppListEnableMethod
[] = "app_list.how_enabled";
2118 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2119 const char kAppListEnableTime
[] = "app_list.when_enabled";
2121 // The last time the app list was launched.
2122 const char kAppListLastLaunchTime
[] = "app_list.last_launch";
2124 #if defined(OS_MACOSX)
2125 // Integer representing the version of the app launcher shortcut installed on
2126 // the system. Incremented, e.g., when embedded icons change.
2127 const char kAppLauncherShortcutVersion
[] = "apps.app_launcher.shortcut_version";
2130 // A boolean identifying if we should show the app launcher promo or not.
2131 const char kShowAppLauncherPromo
[] = "app_launcher.show_promo";
2133 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2134 // a Drive app id and the value is the corresponding Chrome app id. The pref
2135 // is unsynable and used to track local mappings only.
2136 const char kAppLauncherDriveAppMapping
[] =
2137 "apps.app_launcher.drive_app_mapping";
2139 // A list of Drive app ids that tracks the uninstallable Drive apps.
2140 const char kAppLauncherUninstalledDriveApps
[] =
2141 "apps.app_launcher.uninstalled_drive_apps";
2142 #endif // defined(ENABLE_APP_LIST)
2145 // If set, the user requested to launch the app with this extension id while
2146 // in Metro mode, and then relaunched to Desktop mode to start it.
2147 const char kAppLaunchForMetroRestart
[] = "apps.app_launch_for_metro_restart";
2149 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2150 // launch of the specified app when restarting Chrome in desktop mode.
2151 const char kAppLaunchForMetroRestartProfile
[] =
2152 "apps.app_launch_for_metro_restart_profile";
2155 // An integer that is incremented whenever changes are made to app shortcuts.
2156 // Increasing this causes all app shortcuts to be recreated.
2157 const char kAppShortcutsVersion
[] = "apps.shortcuts_version";
2159 // How often the bubble has been shown.
2160 const char kModuleConflictBubbleShown
[] = "module_conflict.bubble_shown";
2162 // A string pref for storing the salt used to compute the pepper device ID.
2163 const char kDRMSalt
[] = "settings.privacy.drm_salt";
2164 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2165 // enables the use of remote attestation for content protection.
2166 const char kEnableDRM
[] = "settings.privacy.drm_enabled";
2168 // An integer per-profile pref that signals if the watchdog extension is
2169 // installed and active. We need to know if the watchdog extension active for
2170 // ActivityLog initialization before the extension system is initialized.
2171 const char kWatchdogExtensionActive
[] =
2172 "profile.extensions.activity_log.num_consumers_active";
2174 #if defined(OS_ANDROID)
2175 // A list of partner bookmark rename/remove mappings.
2176 // Each list item is a dictionary containing a "url", a "provider_title" and
2177 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2178 // given by the PartnerBookmarksProvider and either the user-visible renamed
2179 // title or an empty string if the bookmark node was removed.
2180 const char kPartnerBookmarkMappings
[] = "partnerbookmarks.mappings";
2183 // Whether DNS Quick Check is disabled in proxy resolution.
2184 const char kQuickCheckEnabled
[] = "proxy.quick_check_enabled";
2186 // Whether Guest Mode is enabled within the browser.
2187 const char kBrowserGuestModeEnabled
[] = "profile.browser_guest_enabled";
2189 // Whether Adding a new Person is enabled within the user manager.
2190 const char kBrowserAddPersonEnabled
[] = "profile.add_person_enabled";
2192 // Device identifier used by Easy Unlock stored in local state. This id will be
2193 // combined with a user id, before being registered with the CryptAuth server,
2194 // so it can't correlate users on the same device.
2195 const char kEasyUnlockDeviceId
[] = "easy_unlock.device_id";
2197 // A dictionary that maps user id to hardlock state.
2198 const char kEasyUnlockHardlockState
[] = "easy_unlock.hardlock_state";
2200 // A dictionary that maps user id to public part of RSA key pair used by
2201 // Easy Sign-in for the user.
2202 const char kEasyUnlockLocalStateTpmKeys
[] = "easy_unlock.public_tpm_keys";
2204 // A dictionary in local state containing each user's Easy Unlock profile
2205 // preferences, so they can be accessed outside of the user's profile. The value
2206 // is a dictionary containing an entry for each user. Each user's entry mirrors
2207 // their profile's Easy Unlock preferences.
2208 const char kEasyUnlockLocalStateUserPrefs
[] = "easy_unlock.user_prefs";
2210 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2211 const char kRecoveryComponentNeedsElevation
[] =
2212 "recovery_component.needs_elevation";
2214 // A dictionary that maps from supervised user whitelist IDs to their properties
2215 // (name and a list of clients that registered the whitelist).
2216 const char kRegisteredSupervisedUserWhitelists
[] =
2217 "supervised_users.whitelists";
2219 #if defined(ENABLE_EXTENSIONS)
2220 // Policy that indicates how to handle animated images.
2221 const char kAnimationPolicy
[] = "settings.a11y.animation_policy";
2224 const char kBackgroundTracingLastUpload
[] = "background_tracing.last_upload";
2226 } // namespace prefs