pref_names.cc revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
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. 4 5#include "chrome/common/pref_names.h" 6 7#include "base/basictypes.h" 8#include "chrome/common/pref_font_webkit_names.h" 9 10namespace prefs { 11 12// *************** PROFILE PREFS *************** 13// These are attached to the user profile 14 15// A string property indicating whether default apps should be installed 16// in this profile. Use the value "install" to enable defaults apps, or 17// "noinstall" to disable them. This property is usually set in the 18// master_preferences and copied into the profile preferences on first run. 19// Defaults apps are installed only when creating a new profile. 20const char kDefaultApps[] = "default_apps"; 21 22// Whether we have installed default apps yet in this profile. 23const char kDefaultAppsInstalled[] = "default_apps_installed"; 24 25// Disables screenshot accelerators and extension APIs. 26// This setting resides both in profile prefs and local state. Accelerator 27// handling code reads local state, while extension APIs use profile pref. 28const char kDisableScreenshots[] = "disable_screenshots"; 29 30// A boolean specifying whether the New Tab page is the home page or not. 31const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 32 33// This is the URL of the page to load when opening new tabs. 34const char kHomePage[] = "homepage"; 35 36// Maps host names to whether the host is manually allowed or blocked. 37const char kManagedModeManualHosts[] = "profile.managed.manual_hosts"; 38// Maps URLs to whether the URL is manually allowed or blocked. 39const char kManagedModeManualURLs[] = "profile.managed.manual_urls"; 40 41// Stores the email address associated with the google account of the custodian 42// of the managed user, set when the managed user is created. 43const char kManagedUserCustodianEmail[] = "profile.managed.custodian_email"; 44 45// Stores the display name associated with the google account of the custodian 46// of the managed user, updated (if possible) each time the managed user 47// starts a session. 48const char kManagedUserCustodianName[] = "profile.managed.custodian_name"; 49 50// Used to determine if the last session exited cleanly. Set to false when 51// first opened, and to true when closing. On startup if the value is false, 52// it means the profile didn't exit cleanly. 53// DEPRECATED: this is replaced by kSessionExitType and exists for backwards 54// compatability. 55const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 56 57// A string pref whose values is one of the values defined by 58// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 59// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 60// shutdown. Used to determine the exit type the last time the profile was open. 61const char kSessionExitType[] = "profile.exit_type"; 62 63// An integer pref. Holds one of several values: 64// 0: (deprecated) open the homepage on startup. 65// 1: restore the last session. 66// 2: this was used to indicate a specific session should be restored. It is 67// no longer used, but saved to avoid conflict with old preferences. 68// 3: unused, previously indicated the user wants to restore a saved session. 69// 4: restore the URLs defined in kURLsToRestoreOnStartup. 70// 5: open the New Tab Page on startup. 71const char kRestoreOnStartup[] = "session.restore_on_startup"; 72 73// The URLs to restore on startup or when the home button is pressed. The URLs 74// are only restored on startup if kRestoreOnStartup is 4. 75const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; 76 77// A preference to keep track of whether we have already checked whether we 78// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 79// We only need to do this check once, on upgrade from m18 or lower to m19 or 80// higher. 81const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 82 83// The application locale. 84// For OS_CHROMEOS we maintain kApplicationLocale property in both local state 85// and user's profile. Global property determines locale of login screen, 86// while user's profile determines his personal locale preference. 87const char kApplicationLocale[] = "intl.app_locale"; 88#if defined(OS_CHROMEOS) 89// Locale preference of device' owner. ChromeOS device appears in this locale 90// after startup/wakeup/signout. 91const char kOwnerLocale[] = "intl.owner_locale"; 92// Locale accepted by user. Non-syncable. 93// Used to determine whether we need to show Locale Change notification. 94const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted"; 95// Non-syncable item. 96// It is used in two distinct ways. 97// (1) Used for two-step initialization of locale in ChromeOS 98// because synchronization of kApplicationLocale is not instant. 99// (2) Used to detect locale change. Locale change is detected by 100// LocaleChangeGuard in case values of kApplicationLocaleBackup and 101// kApplicationLocale are both non-empty and differ. 102// Following is a table showing how state of those prefs may change upon 103// common real-life use cases: 104// AppLocale Backup Accepted 105// Initial login - A - 106// Sync B A - 107// Accept (B) B B B 108// ----------------------------------------------------------- 109// Initial login - A - 110// No sync and second login A A - 111// Change options B B - 112// ----------------------------------------------------------- 113// Initial login - A - 114// Sync A A - 115// Locale changed on login screen A C - 116// Accept (A) A A A 117// ----------------------------------------------------------- 118// Initial login - A - 119// Sync B A - 120// Revert A A - 121const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; 122#endif 123 124// The default character encoding to assume for a web page in the 125// absence of MIME charset specification 126const char kDefaultCharset[] = "intl.charset_default"; 127 128// The value to use for Accept-Languages HTTP header when making an HTTP 129// request. 130const char kAcceptLanguages[] = "intl.accept_languages"; 131 132// The value to use for showing locale-dependent encoding list for different 133// locale, it's initialized from the corresponding string resource that is 134// stored in non-translatable part of the resource bundle. 135const char kStaticEncodings[] = "intl.static_encodings"; 136 137// Obselete WebKit prefs for migration. 138const char kGlobalDefaultCharset[] = "intl.global.charset_default"; 139const char kWebKitGlobalDefaultFontSize[] = 140 "webkit.webprefs.global.default_font_size"; 141const char kWebKitGlobalDefaultFixedFontSize[] = 142 "webkit.webprefs.global.default_fixed_font_size"; 143const char kWebKitGlobalMinimumFontSize[] = 144 "webkit.webprefs.global.minimum_font_size"; 145const char kWebKitGlobalMinimumLogicalFontSize[] = 146 "webkit.webprefs.global.minimum_logical_font_size"; 147const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] = 148 "webkit.webprefs.global.javascript_can_open_windows_automatically"; 149const char kWebKitGlobalJavascriptEnabled[] = 150 "webkit.webprefs.global.javascript_enabled"; 151const char kWebKitGlobalLoadsImagesAutomatically[] = 152 "webkit.webprefs.global.loads_images_automatically"; 153const char kWebKitGlobalPluginsEnabled[] = 154 "webkit.webprefs.global.plugins_enabled"; 155const char kWebKitGlobalStandardFontFamily[] = 156 "webkit.webprefs.global.standard_font_family"; 157const char kWebKitGlobalFixedFontFamily[] = 158 "webkit.webprefs.global.fixed_font_family"; 159const char kWebKitGlobalSerifFontFamily[] = 160 "webkit.webprefs.global.serif_font_family"; 161const char kWebKitGlobalSansSerifFontFamily[] = 162 "webkit.webprefs.global.sansserif_font_family"; 163const char kWebKitGlobalCursiveFontFamily[] = 164 "webkit.webprefs.global.cursive_font_family"; 165const char kWebKitGlobalFantasyFontFamily[] = 166 "webkit.webprefs.global.fantasy_font_family"; 167const char kWebKitOldStandardFontFamily[] = 168 "webkit.webprefs.standard_font_family"; 169const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family"; 170const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family"; 171const char kWebKitOldSansSerifFontFamily[] = 172 "webkit.webprefs.sansserif_font_family"; 173const char kWebKitOldCursiveFontFamily[] = 174 "webkit.webprefs.cursive_font_family"; 175const char kWebKitOldFantasyFontFamily[] = 176 "webkit.webprefs.fantasy_font_family"; 177 178// If these change, the corresponding enums in the extension API 179// experimental.fontSettings.json must also change. 180const char* const kWebKitScriptsForFontFamilyMaps[] = { 181#define EXPAND_SCRIPT_FONT(x, script_name) script_name , 182#include "chrome/common/pref_font_script_names-inl.h" 183ALL_FONT_SCRIPTS("unused param") 184#undef EXPAND_SCRIPT_FONT 185}; 186 187const size_t kWebKitScriptsForFontFamilyMapsLength = 188 arraysize(kWebKitScriptsForFontFamilyMaps); 189 190// Strings for WebKit font family preferences. If these change, the pref prefix 191// in pref_names_util.cc and the pref format in font_settings_api.cc must also 192// change. 193const char kWebKitStandardFontFamilyMap[] = 194 WEBKIT_WEBPREFS_FONTS_STANDARD; 195const char kWebKitFixedFontFamilyMap[] = 196 WEBKIT_WEBPREFS_FONTS_FIXED; 197const char kWebKitSerifFontFamilyMap[] = 198 WEBKIT_WEBPREFS_FONTS_SERIF; 199const char kWebKitSansSerifFontFamilyMap[] = 200 WEBKIT_WEBPREFS_FONTS_SANSERIF; 201const char kWebKitCursiveFontFamilyMap[] = 202 WEBKIT_WEBPREFS_FONTS_CURSIVE; 203const char kWebKitFantasyFontFamilyMap[] = 204 WEBKIT_WEBPREFS_FONTS_FANTASY; 205const char kWebKitPictographFontFamilyMap[] = 206 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH; 207const char kWebKitStandardFontFamilyArabic[] = 208 "webkit.webprefs.fonts.standard.Arab"; 209const char kWebKitFixedFontFamilyArabic[] = 210 "webkit.webprefs.fonts.fixed.Arab"; 211const char kWebKitSerifFontFamilyArabic[] = 212 "webkit.webprefs.fonts.serif.Arab"; 213const char kWebKitSansSerifFontFamilyArabic[] = 214 "webkit.webprefs.fonts.sansserif.Arab"; 215const char kWebKitStandardFontFamilyCyrillic[] = 216 "webkit.webprefs.fonts.standard.Cyrl"; 217const char kWebKitFixedFontFamilyCyrillic[] = 218 "webkit.webprefs.fonts.fixed.Cyrl"; 219const char kWebKitSerifFontFamilyCyrillic[] = 220 "webkit.webprefs.fonts.serif.Cyrl"; 221const char kWebKitSansSerifFontFamilyCyrillic[] = 222 "webkit.webprefs.fonts.sansserif.Cyrl"; 223const char kWebKitStandardFontFamilyGreek[] = 224 "webkit.webprefs.fonts.standard.Grek"; 225const char kWebKitFixedFontFamilyGreek[] = 226 "webkit.webprefs.fonts.fixed.Grek"; 227const char kWebKitSerifFontFamilyGreek[] = 228 "webkit.webprefs.fonts.serif.Grek"; 229const char kWebKitSansSerifFontFamilyGreek[] = 230 "webkit.webprefs.fonts.sansserif.Grek"; 231const char kWebKitStandardFontFamilyJapanese[] = 232 "webkit.webprefs.fonts.standard.Jpan"; 233const char kWebKitFixedFontFamilyJapanese[] = 234 "webkit.webprefs.fonts.fixed.Jpan"; 235const char kWebKitSerifFontFamilyJapanese[] = 236 "webkit.webprefs.fonts.serif.Jpan"; 237const char kWebKitSansSerifFontFamilyJapanese[] = 238 "webkit.webprefs.fonts.sansserif.Jpan"; 239const char kWebKitStandardFontFamilyKorean[] = 240 "webkit.webprefs.fonts.standard.Hang"; 241const char kWebKitFixedFontFamilyKorean[] = 242 "webkit.webprefs.fonts.fixed.Hang"; 243const char kWebKitSerifFontFamilyKorean[] = 244 "webkit.webprefs.fonts.serif.Hang"; 245const char kWebKitSansSerifFontFamilyKorean[] = 246 "webkit.webprefs.fonts.sansserif.Hang"; 247const char kWebKitCursiveFontFamilyKorean[] = 248 "webkit.webprefs.fonts.cursive.Hang"; 249const char kWebKitStandardFontFamilySimplifiedHan[] = 250 "webkit.webprefs.fonts.standard.Hans"; 251const char kWebKitFixedFontFamilySimplifiedHan[] = 252 "webkit.webprefs.fonts.fixed.Hans"; 253const char kWebKitSerifFontFamilySimplifiedHan[] = 254 "webkit.webprefs.fonts.serif.Hans"; 255const char kWebKitSansSerifFontFamilySimplifiedHan[] = 256 "webkit.webprefs.fonts.sansserif.Hans"; 257const char kWebKitStandardFontFamilyTraditionalHan[] = 258 "webkit.webprefs.fonts.standard.Hant"; 259const char kWebKitFixedFontFamilyTraditionalHan[] = 260 "webkit.webprefs.fonts.fixed.Hant"; 261const char kWebKitSerifFontFamilyTraditionalHan[] = 262 "webkit.webprefs.fonts.serif.Hant"; 263const char kWebKitSansSerifFontFamilyTraditionalHan[] = 264 "webkit.webprefs.fonts.sansserif.Hant"; 265 266// WebKit preferences. 267const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; 268const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; 269const char kWebKitShrinksStandaloneImagesToFit[] = 270 "webkit.webprefs.shrinks_standalone_images_to_fit"; 271const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; 272const char kWebKitUsesUniversalDetector[] = 273 "webkit.webprefs.uses_universal_detector"; 274const char kWebKitTextAreasAreResizable[] = 275 "webkit.webprefs.text_areas_are_resizable"; 276const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; 277const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; 278const char kWebKitAllowDisplayingInsecureContent[] = 279 "webkit.webprefs.allow_displaying_insecure_content"; 280const char kWebKitAllowRunningInsecureContent[] = 281 "webkit.webprefs.allow_running_insecure_content"; 282#if defined(OS_ANDROID) 283const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor"; 284const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom"; 285const char kWebKitPasswordEchoEnabled[] = 286 "webkit.webprefs.password_echo_enabled"; 287#endif 288 289const char kWebKitCommonScript[] = "Zyyy"; 290const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; 291const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; 292const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; 293const char kWebKitSansSerifFontFamily[] = 294 "webkit.webprefs.fonts.sansserif.Zyyy"; 295const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; 296const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; 297const char kWebKitPictographFontFamily[] = 298 "webkit.webprefs.fonts.pictograph.Zyyy"; 299const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; 300const char kWebKitDefaultFixedFontSize[] = 301 "webkit.webprefs.default_fixed_font_size"; 302const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; 303const char kWebKitMinimumLogicalFontSize[] = 304 "webkit.webprefs.minimum_logical_font_size"; 305const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; 306const char kWebKitJavascriptCanOpenWindowsAutomatically[] = 307 "webkit.webprefs.javascript_can_open_windows_automatically"; 308const char kWebKitLoadsImagesAutomatically[] = 309 "webkit.webprefs.loads_images_automatically"; 310const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; 311 312// Boolean which specifies whether the bookmark bar is visible on all tabs. 313const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs"; 314 315// Boolean which specifies whether the apps shortcut is visible on the bookmark 316// bar. 317const char kShowAppsShortcutInBookmarkBar[] = "bookmark_bar.show_apps_shortcut"; 318 319// Boolean which specifies the ids of the bookmark nodes that are expanded in 320// the bookmark editor. 321const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes"; 322 323// Boolean controlling whether password generation is enabled (will allow users 324// to generated passwords on account creation pages). 325const char kPasswordGenerationEnabled[] = "password_generation.enabled"; 326 327// Boolean that is true if the password manager is on (will record new 328// passwords and fill in known passwords). 329const char kPasswordManagerEnabled[] = "profile.password_manager_enabled"; 330 331// Boolean controlling whether the password manager allows to retrieve passwords 332// in clear text. 333const char kPasswordManagerAllowShowPasswords[] = 334 "profile.password_manager_allow_show_passwords"; 335 336// Booleans identifying whether normal and reverse auto-logins are enabled. 337const char kAutologinEnabled[] = "autologin.enabled"; 338const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; 339 340// List to keep track of emails for which the user has rejected one-click 341// sign-in. 342const char kReverseAutologinRejectedEmailList[] = 343 "reverse_autologin.rejected_email_list"; 344 345// Boolean that is true when SafeBrowsing is enabled. 346const char kSafeBrowsingEnabled[] = "safebrowsing.enabled"; 347 348// Boolean that is true when SafeBrowsing Malware Report is enabled. 349const char kSafeBrowsingReportingEnabled[] = 350 "safebrowsing.reporting_enabled"; 351 352// Boolean that is true when the SafeBrowsing interstitial should not allow 353// users to proceed anyway. 354const char kSafeBrowsingProceedAnywayDisabled[] = 355 "safebrowsing.proceed_anyway_disabled"; 356 357// Enum that specifies whether Incognito mode is: 358// 0 - Enabled. Default behaviour. Default mode is available on demand. 359// 1 - Disabled. Used cannot browse pages in Incognito mode. 360// 2 - Forced. All pages/sessions are forced into Incognito. 361const char kIncognitoModeAvailability[] = "incognito.mode_availability"; 362 363// Boolean that is true when Suggest support is enabled. 364const char kSearchSuggestEnabled[] = "search.suggest_enabled"; 365 366// Boolean that indicates whether the browser should put up a confirmation 367// window when the user is attempting to quit. Mac only. 368const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 369 370// OBSOLETE. Enum that specifies whether to enforce a third-party cookie 371// blocking policy. This has been superseded by kDefaultContentSettings + 372// kBlockThirdPartyCookies. 373// 0 - allow all cookies. 374// 1 - block third-party cookies 375// 2 - block all cookies 376const char kCookieBehavior[] = "security.cookie_behavior"; 377 378// The GUID of the synced default search provider. Note that this acts like a 379// pointer to which synced search engine should be the default, rather than the 380// prefs below which describe the locally saved default search provider details 381// (and are not synced). This is ignored in the case of the default search 382// provider being managed by policy. 383const char kSyncedDefaultSearchProviderGUID[] = 384 "default_search_provider.synced_guid"; 385 386// Whether having a default search provider is enabled. 387const char kDefaultSearchProviderEnabled[] = 388 "default_search_provider.enabled"; 389 390// The URL (as understood by TemplateURLRef) the default search provider uses 391// for searches. 392const char kDefaultSearchProviderSearchURL[] = 393 "default_search_provider.search_url"; 394 395// The URL (as understood by TemplateURLRef) the default search provider uses 396// for suggestions. 397const char kDefaultSearchProviderSuggestURL[] = 398 "default_search_provider.suggest_url"; 399 400// The URL (as understood by TemplateURLRef) the default search provider uses 401// for instant results. 402const char kDefaultSearchProviderInstantURL[] = 403 "default_search_provider.instant_url"; 404 405// The Favicon URL (as understood by TemplateURLRef) of the default search 406// provider. 407const char kDefaultSearchProviderIconURL[] = 408 "default_search_provider.icon_url"; 409 410// The input encoding (as understood by TemplateURLRef) supported by the default 411// search provider. The various encodings are separated by ';' 412const char kDefaultSearchProviderEncodings[] = 413 "default_search_provider.encodings"; 414 415// The name of the default search provider. 416const char kDefaultSearchProviderName[] = "default_search_provider.name"; 417 418// The keyword of the default search provider. 419const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword"; 420 421// The id of the default search provider. 422const char kDefaultSearchProviderID[] = "default_search_provider.id"; 423 424// The prepopulate id of the default search provider. 425const char kDefaultSearchProviderPrepopulateID[] = 426 "default_search_provider.prepopulate_id"; 427 428// The alternate urls of the default search provider. 429const char kDefaultSearchProviderAlternateURLs[] = 430 "default_search_provider.alternate_urls"; 431 432// Search term placement query parameter for the default search provider. 433const char kDefaultSearchProviderSearchTermsReplacementKey[] = 434 "default_search_provider.search_terms_replacement_key"; 435 436// The dictionary key used when the default search providers are given 437// in the preferences file. Normally they are copied from the master 438// preferences file. 439const char kSearchProviderOverrides[] = "search_provider_overrides"; 440// The format version for the dictionary above. 441const char kSearchProviderOverridesVersion[] = 442 "search_provider_overrides_version"; 443 444// Boolean which specifies whether we should ask the user if we should download 445// a file (true) or just download it automatically. 446const char kPromptForDownload[] = "download.prompt_for_download"; 447 448// A boolean pref set to true if we're using Link Doctor error pages. 449const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; 450 451// OBSOLETE: new pref now stored with user prefs instead of profile, as 452// kDnsPrefetchingStartupList. 453const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList"; 454 455// An adaptively identified list of domain names to be pre-fetched during the 456// next startup, based on what was actually needed during this startup. 457const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; 458 459// OBSOLETE: new pref now stored with user prefs instead of profile, as 460// kDnsPrefetchingHostReferralList. 461const char kDnsHostReferralList[] = "HostReferralList"; 462 463// A list of host names used to fetch web pages, and their commonly used 464// sub-resource hostnames (and expected latency benefits from pre-resolving, or 465// preconnecting to, such sub-resource hostnames). 466// This list is adaptively grown and pruned. 467const char kDnsPrefetchingHostReferralList[] = 468 "dns_prefetching.host_referral_list"; 469 470// Disables the SPDY protocol. 471const char kDisableSpdy[] = "spdy.disabled"; 472 473// Prefs for persisting HttpServerProperties. 474const char kHttpServerProperties[] = "net.http_server_properties"; 475 476// Prefs for server names that support SPDY protocol. 477const char kSpdyServers[] = "spdy.servers"; 478 479// Prefs for servers that support Alternate-Protocol. 480const char kAlternateProtocolServers[] = "spdy.alternate_protocol"; 481 482// Disables the listed protocol schemes. 483const char kDisabledSchemes[] = "protocol.disabled_schemes"; 484 485// Blocks access to the listed host patterns. 486const char kUrlBlacklist[] = "policy.url_blacklist"; 487 488// Allows access to the listed host patterns, as exceptions to the blacklist. 489const char kUrlWhitelist[] = "policy.url_whitelist"; 490 491// Boolean pref indicating whether Instant search result previews are enabled. 492const char kSearchInstantEnabled[] = "instant_extended.instant_enabled"; 493 494// Prefix URL for the experimental Instant ZeroSuggest provider. 495const char kInstantUIZeroSuggestUrlPrefix[] = 496 "instant_ui.zero_suggest_url_prefix"; 497 498// Used to migrate preferences from local state to user preferences to 499// enable multiple profiles. 500// BITMASK with possible values (see browser_prefs.cc for enum): 501// 0: No preferences migrated. 502// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList 503// 2: Browser window preferences migrated: kDevToolsSplitLocation and 504// kBrowserWindowPlacement 505const char kMultipleProfilePrefMigration[] = 506 "local_state.multiple_profile_prefs_version"; 507 508// A boolean pref set to true if prediction of network actions is allowed. 509// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering 510// of web pages. 511// NOTE: The "dns_prefetching.enabled" value is used so that historical user 512// preferences are not lost. 513const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 514 515// An integer representing the state of the default apps installation process. 516// This value is persisted in the profile's user preferences because the process 517// is async, and the user may have stopped chrome in the middle. The next time 518// the profile is opened, the process will continue from where it left off. 519// 520// See possible values in external_provider_impl.cc. 521const char kDefaultAppsInstallState[] = "default_apps_install_state"; 522 523// A boolean pref set to true if the Chrome Web Store icons should be hidden 524// from the New Tab Page and app launcher. 525const char kHideWebStoreIcon[] = "hide_web_store_icon"; 526 527#if defined(OS_CHROMEOS) 528// A dictionary pref to hold the mute setting for all the currently known 529// audio devices. 530const char kAudioDevicesMute[] = "settings.audio.devices.mute"; 531 532// A dictionary pref storing the volume settings for all the currently known 533// audio devices. 534const char kAudioDevicesVolumePercent[] = 535 "settings.audio.devices.volume_percent"; 536 537// An integer pref to initially mute volume if 1. This pref is ignored if 538// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore 539// when the policy is lifted the original mute state is restored. This setting 540// is here only for migration purposes now. It is being replaced by the 541// |kAudioDevicesMute| setting. 542const char kAudioMute[] = "settings.audio.mute"; 543 544// A double pref storing the user-requested volume. This setting is here only 545// for migration purposes now. It is being replaced by the 546// |kAudioDevicesVolumePercent| setting. 547const char kAudioVolumePercent[] = "settings.audio.volume_percent"; 548 549// A boolean pref set to true if touchpad tap-to-click is enabled. 550const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click"; 551 552// A boolean pref set to true if touchpad tap-dragging is enabled. 553const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; 554 555// A boolean pref set to true if touchpad three-finger-click is enabled. 556const char kEnableTouchpadThreeFingerClick[] = 557 "settings.touchpad.enable_three_finger_click"; 558 559// A boolean pref set to true if touchpad three-finger swipe is enabled. 560const char kEnableTouchpadThreeFingerSwipe[] = 561 "settings.touchpad.enable_three_finger_swipe"; 562 563// A boolean pref set to true if touchpad natural scrolling is enabled. 564const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; 565 566// A boolean pref set to true if primary mouse button is the left button. 567const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right"; 568 569// A integer pref for the touchpad sensitivity. 570const char kMouseSensitivity[] = "settings.mouse.sensitivity2"; 571 572// A integer pref for the touchpad sensitivity. 573const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2"; 574 575// A boolean pref set to true if time should be displayed in 24-hour clock. 576const char kUse24HourClock[] = "settings.clock.use_24hour_clock"; 577 578// A boolean pref to disable Google Drive integration. 579// The pref prefix should remain as "gdata" for backward compatibility. 580const char kDisableDrive[] = "gdata.disabled"; 581 582// A boolean pref to disable Drive over cellular connections. 583// The pref prefix should remain as "gdata" for backward compatibility. 584const char kDisableDriveOverCellular[] = "gdata.cellular.disabled"; 585 586// A boolean pref to disable hosted files on Drive. 587// The pref prefix should remain as "gdata" for backward compatibility. 588const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled"; 589 590// A string pref set to the current input method. 591const char kLanguageCurrentInputMethod[] = 592 "settings.language.current_input_method"; 593 594// A string pref set to the previous input method. 595const char kLanguagePreviousInputMethod[] = 596 "settings.language.previous_input_method"; 597 598// A string pref (comma-separated list) set to the "next engine in menu" 599// hot-key lists. 600const char kLanguageHotkeyNextEngineInMenu[] = 601 "settings.language.hotkey_next_engine_in_menu"; 602 603// A string pref (comma-separated list) set to the "previous engine" 604// hot-key lists. 605const char kLanguageHotkeyPreviousEngine[] = 606 "settings.language.hotkey_previous_engine"; 607 608// A string pref (comma-separated list) set to the preferred language IDs 609// (ex. "en-US,fr,ko"). 610const char kLanguagePreferredLanguages[] = 611 "settings.language.preferred_languages"; 612 613// A string pref (comma-separated list) set to the preloaded (active) input 614// method IDs (ex. "pinyin,mozc"). 615const char kLanguagePreloadEngines[] = "settings.language.preload_engines"; 616 617// A List pref (comma-separated list) set to the extension IMEs to be enabled. 618const char kLanguageEnabledExtensionImes[] = 619 "settings.language.enabled_extension_imes"; 620 621// Boolean prefs for ibus-chewing Chinese input method. 622const char kLanguageChewingAutoShiftCur[] = 623 "settings.language.chewing_auto_shift_cur"; 624const char kLanguageChewingAddPhraseDirection[] = 625 "settings.language.chewing_add_phrase_direction"; 626const char kLanguageChewingEasySymbolInput[] = 627 "settings.language.chewing_easy_symbol_input"; 628const char kLanguageChewingEscCleanAllBuf[] = 629 "settings.language.chewing_esc_clean_all_buf"; 630const char kLanguageChewingForceLowercaseEnglish[] = 631 "settings.language.chewing_force_lowercase_english"; 632const char kLanguageChewingPlainZhuyin[] = 633 "settings.language.chewing_plain_zhuyin"; 634const char kLanguageChewingPhraseChoiceRearward[] = 635 "settings.language.chewing_phrase_choice_rearward"; 636const char kLanguageChewingSpaceAsSelection[] = 637 "settings.language.chewing_space_as_selection"; 638 639// Integer prefs for ibus-chewing Chinese input method. 640const char kLanguageChewingMaxChiSymbolLen[] = 641 "settings.language.chewing_max_chi_symbol_len"; 642const char kLanguageChewingCandPerPage[] = 643 "settings.language.chewing_cand_per_page"; 644 645// String prefs for ibus-chewing Chinese input method. 646const char kLanguageChewingKeyboardType[] = 647 "settings.language.chewing_keyboard_type"; 648const char kLanguageChewingSelKeys[] = 649 "settings.language.chewing_sel_keys"; 650 651const char kLanguageChewingHsuSelKeyType[] = 652 "settings.language.chewing_hsu_sel_key_type"; 653 654// A string pref which determines the keyboard layout for Hangul input method. 655const char kLanguageHangulKeyboard[] = "settings.language.hangul_keyboard"; 656const char kLanguageHangulHanjaBindingKeys[] = 657 "settings.language.hangul_hanja_binding_keys"; 658 659// A boolean prefs for ibus-pinyin Chinese input method. 660const char kLanguagePinyinCorrectPinyin[] = 661 "settings.language.pinyin_correct_pinyin"; 662const char kLanguagePinyinFuzzyPinyin[] = 663 "settings.language.pinyin_fuzzy_pinyin"; 664const char kLanguagePinyinShiftSelectCandidate[] = 665 "settings.language.pinyin_shift_select_candidate"; 666const char kLanguagePinyinMinusEqualPage[] = 667 "settings.language.pinyin_minus_equal_page"; 668const char kLanguagePinyinCommaPeriodPage[] = 669 "settings.language.pinyin_comma_period_page"; 670const char kLanguagePinyinAutoCommit[] = 671 "settings.language.pinyin_auto_commit"; 672const char kLanguagePinyinDoublePinyin[] = 673 "settings.language.pinyin_double_pinyin"; 674const char kLanguagePinyinInitChinese[] = 675 "settings.language.pinyin_init_chinese"; 676const char kLanguagePinyinInitFull[] = 677 "settings.language.pinyin_init_full"; 678const char kLanguagePinyinInitFullPunct[] = 679 "settings.language.pinyin_init_full_punct"; 680const char kLanguagePinyinInitSimplifiedChinese[] = 681 "settings.language.pinyin_init_simplified_chinese"; 682const char kLanguagePinyinTradCandidate[] = 683 "settings.language.pinyin_trad_candidate"; 684 685// A integer prefs for ibus-pinyin Chinese input method. 686const char kLanguagePinyinDoublePinyinSchema[] = 687 "settings.language.pinyin_double_pinyin_schema"; 688const char kLanguagePinyinLookupTablePageSize[] = 689 "settings.language.pinyin_lookup_table_page_size"; 690 691// A string prefs for ibus-mozc Japanese input method. 692// ibus-mozc converts the string values to protobuf enum values defined in 693// third_party/ibus-mozc/files/src/session/config.proto. 694const char kLanguageMozcPreeditMethod[] = 695 "settings.language.mozc_preedit_method"; 696const char kLanguageMozcSessionKeymap[] = 697 "settings.language.mozc_session_keymap"; 698const char kLanguageMozcPunctuationMethod[] = 699 "settings.language.mozc_punctuation_method"; 700const char kLanguageMozcSymbolMethod[] = 701 "settings.language.mozc_symbol_method"; 702const char kLanguageMozcSpaceCharacterForm[] = 703 "settings.language.mozc_space_character_form"; 704const char kLanguageMozcHistoryLearningLevel[] = 705 "settings.language.mozc_history_learning_level"; 706const char kLanguageMozcSelectionShortcut[] = 707 "settings.language.mozc_selection_shortcut"; 708const char kLanguageMozcShiftKeyModeSwitch[] = 709 "settings.language.mozc_shift_key_mode_switch"; 710const char kLanguageMozcNumpadCharacterForm[] = 711 "settings.language.mozc_numpad_character_form"; 712const char kLanguageMozcIncognitoMode[] = 713 "settings.language.mozc_incognito_mode"; 714const char kLanguageMozcUseAutoImeTurnOff[] = 715 "settings.language.mozc_use_auto_ime_turn_off"; 716const char kLanguageMozcUseHistorySuggest[] = 717 "settings.language.mozc_use_history_suggest"; 718const char kLanguageMozcUseDictionarySuggest[] = 719 "settings.language.mozc_use_dictionary_suggest"; 720const char kLanguageMozcSuggestionsSize[] = 721 "settings.language.mozc_suggestions_size"; 722 723// A integer prefs which determine how we remap modifier keys (e.g. swap Alt and 724// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in 725// src/chrome/browser/chromeos/input_method/xkeyboard.h 726const char kLanguageRemapSearchKeyTo[] = 727 // Note: we no longer use XKB for remapping these keys, but we can't change 728 // the pref names since the names are already synced with the cloud. 729 "settings.language.xkb_remap_search_key_to"; 730const char kLanguageRemapControlKeyTo[] = 731 "settings.language.xkb_remap_control_key_to"; 732const char kLanguageRemapAltKeyTo[] = 733 "settings.language.xkb_remap_alt_key_to"; 734const char kLanguageRemapCapsLockKeyTo[] = 735 "settings.language.remap_caps_lock_key_to"; 736const char kLanguageRemapDiamondKeyTo[] = 737 "settings.language.remap_diamond_key_to"; 738 739// A boolean pref which determines whether key repeat is enabled. 740const char kLanguageXkbAutoRepeatEnabled[] = 741 "settings.language.xkb_auto_repeat_enabled_r2"; 742// A integer pref which determines key repeat delay (in ms). 743const char kLanguageXkbAutoRepeatDelay[] = 744 "settings.language.xkb_auto_repeat_delay_r2"; 745// A integer pref which determines key repeat interval (in ms). 746const char kLanguageXkbAutoRepeatInterval[] = 747 "settings.language.xkb_auto_repeat_interval_r2"; 748// "_r2" suffixes are added to the three prefs above when we change the 749// preferences not user-configurable, not to sync them with cloud. 750 751// A boolean pref which determines whether the large cursor feature is enabled. 752const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled"; 753// A boolean pref which determines whether the sticky keys feature is enabled. 754const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled"; 755// A boolean pref which determines whether spoken feedback is enabled. 756const char kSpokenFeedbackEnabled[] = "settings.accessibility"; 757// A boolean pref which determines whether high conrast is enabled. 758const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled"; 759// A boolean pref which determines whether screen magnifier is enabled. 760const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier"; 761// A integer pref which determines what type of screen magnifier is enabled. 762// Note that: 'screen_magnifier_type' had been used as string pref. Hence, 763// we are using another name pref here. 764const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2"; 765// A double pref which determines a zooming scale of the screen magnifier. 766const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale"; 767// A boolean pref which determines whether virtual keyboard is enabled. 768// TODO(hashimoto): Remove this pref. 769const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard"; 770// A boolean pref which determines whether the accessibility menu shows 771// regardless of the state of a11y features. 772const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; 773 774// A boolean pref which turns on Advanced Filesystem 775// (USB support, SD card, etc). 776const char kLabsAdvancedFilesystemEnabled[] = 777 "settings.labs.advanced_filesystem"; 778 779// A boolean pref which turns on the mediaplayer. 780const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer"; 781 782// A boolean pref that turns on screen locker. 783const char kEnableScreenLock[] = "settings.enable_screen_lock"; 784 785// A boolean pref of whether to show mobile plan notifications. 786const char kShowPlanNotifications[] = 787 "settings.internet.mobile.show_plan_notifications"; 788 789// A boolean pref of whether to show 3G promo notification. 790const char kShow3gPromoNotification[] = 791 "settings.internet.mobile.show_3g_promo_notification"; 792 793// A string pref that contains version where "What's new" promo was shown. 794const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version"; 795 796// A boolean pref that uses shared proxies. 797const char kUseSharedProxies[] = "settings.use_shared_proxies"; 798 799// Power state of the current displays from the last run. 800const char kDisplayPowerState[] = "settings.display.power_state"; 801// A dictionary pref that stores per display preferences. 802const char kDisplayProperties[] = "settings.display.properties"; 803 804// A dictionary pref that specifies per-display layout/offset information. 805// Its key is the ID of the display and its value is a dictionary for the 806// layout/offset information. 807const char kSecondaryDisplays[] = "settings.display.secondary_displays"; 808 809// A preference to keep track of the session start time. The value is set 810// after login. When the browser restarts after a crash, the pref value is not 811// changed unless it appears corrupted (value unset, value lying in the future, 812// zero value). 813const char kSessionStartTime[] = "session.start_time"; 814 815// Holds the maximum session time in milliseconds. If this pref is set, the 816// user is logged out when the maximum session time is reached. The user is 817// informed about the remaining time by a countdown timer shown in the ash 818// system tray. 819const char kSessionLengthLimit[] = "session.length_limit"; 820 821// Inactivity time in milliseconds while the system is on AC power before 822// the screen should be dimmed, turned off, or locked, before an 823// IdleActionImminent D-Bus signal should be sent, or before 824// kPowerAcIdleAction should be performed. 0 disables the delay (N/A for 825// kPowerAcIdleDelayMs). 826const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; 827const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; 828const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; 829const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; 830const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; 831 832// Similar delays while the system is on battery power. 833const char kPowerBatteryScreenDimDelayMs[] = 834 "power.battery_screen_dim_delay_ms"; 835const char kPowerBatteryScreenOffDelayMs[] = 836 "power.battery_screen_off_delay_ms"; 837const char kPowerBatteryScreenLockDelayMs[] = 838 "power.battery_screen_lock_delay_ms"; 839const char kPowerBatteryIdleWarningDelayMs[] = 840 "power.battery_idle_warning_delay_ms"; 841const char kPowerBatteryIdleDelayMs[] = 842 "power.battery_idle_delay_ms"; 843 844// Action that should be performed when the idle delay is reached while the 845// system is on AC power or battery power. 846// Values are from the chromeos::PowerPolicyController::Action enum. 847const char kPowerAcIdleAction[] = "power.ac_idle_action"; 848const char kPowerBatteryIdleAction[] = "power.battery_idle_action"; 849 850// Action that should be performed when the lid is closed. 851// Values are from the chromeos::PowerPolicyController::Action enum. 852const char kPowerLidClosedAction[] = "power.lid_closed_action"; 853 854// Should audio and video activity be used to disable the above delays? 855const char kPowerUseAudioActivity[] = "power.use_audio_activity"; 856const char kPowerUseVideoActivity[] = "power.use_video_activity"; 857 858// Should extensions be able to use the chrome.power API to override 859// screen-related power management (including locking)? 860const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; 861 862// Amount by which the screen-dim delay should be scaled while the system 863// is in presentation mode. Values are limited to a minimum of 1.0. 864const char kPowerPresentationScreenDimDelayFactor[] = 865 "power.presentation_screen_dim_delay_factor"; 866 867// Amount by which the screen-dim delay should be scaled when user activity is 868// observed while the screen is dimmed or soon after the screen has been turned 869// off. Values are limited to a minimum of 1.0. 870const char kPowerUserActivityScreenDimDelayFactor[] = 871 "power.user_activity_screen_dim_delay_factor"; 872 873// The URL from which the Terms of Service can be downloaded. The value is only 874// honored for public accounts. 875const char kTermsOfServiceURL[] = "terms_of_service.url"; 876 877// Indicates that the Profile has made navigations that used a certificate 878// installed by the system administrator. If that is true then the local cache 879// of remote data is tainted (e.g. shared scripts), and future navigations 880// show a warning indicating that the organization may track the browsing 881// session. 882const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once"; 883 884// Indicates whether the remote attestation is enabled for the user. 885const char kAttestationEnabled[] = "attestation.enabled"; 886// The list of extensions allowed to use the platformKeysPrivate API for 887// remote attestation. 888const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist"; 889#endif // defined(OS_CHROMEOS) 890 891// The disabled messages in IPC logging. 892const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 893 894// A boolean pref set to true if a Home button to open the Home pages should be 895// visible on the toolbar. 896const char kShowHomeButton[] = "browser.show_home_button"; 897 898// A string value which saves short list of recently user selected encodings 899// separated with comma punctuation mark. 900const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings"; 901 902// Clear Browsing Data dialog preferences. 903const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history"; 904const char kDeleteDownloadHistory[] = "browser.clear_data.download_history"; 905const char kDeleteCache[] = "browser.clear_data.cache"; 906const char kDeleteCookies[] = "browser.clear_data.cookies"; 907const char kDeletePasswords[] = "browser.clear_data.passwords"; 908const char kDeleteFormData[] = "browser.clear_data.form_data"; 909const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data"; 910const char kDeauthorizeContentLicenses[] = 911 "browser.clear_data.content_licenses"; 912const char kDeleteTimePeriod[] = "browser.clear_data.time_period"; 913const char kLastClearBrowsingDataTime[] = 914 "browser.last_clear_browsing_data_time"; 915 916// Boolean pref to define the default values for using spellchecker. 917const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking"; 918 919// List of names of the enabled labs experiments (see chrome/browser/labs.cc). 920const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments"; 921 922// Boolean pref to define the default values for using auto spell correct. 923const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect"; 924 925// Boolean pref to define the default setting for "block offensive words". 926// The old key value is kept to avoid unnecessary migration code. 927const char kSpeechRecognitionFilterProfanities[] = 928 "browser.speechinput_censor_results"; 929 930// List of speech recognition context names (extensions or websites) for which 931// the tray notification balloon has already been shown. 932const char kSpeechRecognitionTrayNotificationShownContexts[] = 933 "browser.speechinput_tray_notification_shown_contexts"; 934 935// Boolean controlling whether history saving is disabled. 936const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled"; 937 938// Boolean controlling whether deleting browsing and download history is 939// permitted. 940const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled"; 941 942// Boolean controlling whether SafeSearch is mandatory for Google Web Searches. 943const char kForceSafeSearch[] = "settings.force_safesearch"; 944 945#if defined(OS_LINUX) && !defined(OS_CHROMEOS) 946// Linux specific preference on whether we should match the system theme. 947const char kUsesSystemTheme[] = "extensions.theme.use_system"; 948#endif 949const char kCurrentThemePackFilename[] = "extensions.theme.pack"; 950const char kCurrentThemeID[] = "extensions.theme.id"; 951const char kCurrentThemeImages[] = "extensions.theme.images"; 952const char kCurrentThemeColors[] = "extensions.theme.colors"; 953const char kCurrentThemeTints[] = "extensions.theme.tints"; 954const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties"; 955 956// Boolean pref which persists whether the extensions_ui is in developer mode 957// (showing developer packing tools and extensions details) 958const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode"; 959 960// Integer pref that tracks the number of browser actions visible in the browser 961// actions toolbar. 962const char kExtensionToolbarSize[] = "extensions.toolbarsize"; 963 964// A preference that tracks browser action toolbar configuration. This is a list 965// object stored in the Preferences file. The extensions are stored by ID. 966const char kExtensionToolbar[] = "extensions.toolbar"; 967 968// Dictionary pref that tracks which command belongs to which 969// extension + named command pair. 970const char kExtensionCommands[] = "extensions.commands"; 971 972// Pref containing the directory for internal plugins as written to the plugins 973// list (below). 974const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory"; 975 976// List pref containing information (dictionaries) on plugins. 977const char kPluginsPluginsList[] = "plugins.plugins_list"; 978 979// List pref containing names of plugins that are disabled by policy. 980const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 981 982// List pref containing exceptions to the list of plugins disabled by policy. 983const char kPluginsDisabledPluginsExceptions[] = 984 "plugins.plugins_disabled_exceptions"; 985 986// List pref containing names of plugins that are enabled by policy. 987const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; 988 989// When first shipped, the pdf plugin will be disabled by default. When we 990// enable it by default, we'll want to do so only once. 991const char kPluginsEnabledInternalPDF[] = "plugins.enabled_internal_pdf3"; 992 993// When first shipped, the nacl plugin will be disabled by default. When we 994// enable it by default, we'll want to do so only once. 995const char kPluginsEnabledNaCl[] = "plugins.enabled_nacl"; 996 997// When bundled NPAPI Flash is removed, if at that point it is enabled while 998// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will 999// want to do so only once. 1000const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash"; 1001 1002// In the early stage of component-updated PPAPI Flash, we did field trials in 1003// which it was set to disabled by default. The corresponding settings item may 1004// remain in some users' profiles. Currently it affects both the bundled and 1005// component-updated PPAPI Flash (since the two share the same enable/disable 1006// state). We want to remove this item to get those users to use PPAPI Flash. 1007// We will want to do so only once. 1008const char kPluginsRemovedOldComponentPepperFlashSettings[] = 1009 "plugins.removed_old_component_pepper_flash_settings"; 1010 1011#if !defined(OS_ANDROID) 1012// Whether about:plugins is shown in the details mode or not. 1013const char kPluginsShowDetails[] = "plugins.show_details"; 1014#endif 1015 1016// Boolean that indicates whether outdated plugins are allowed or not. 1017const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; 1018 1019// Boolean that indicates whether plugins that require authorization should 1020// be always allowed or not. 1021const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; 1022 1023#if defined(ENABLE_PLUGIN_INSTALLATION) 1024// Dictionary holding plug-ins metadata. 1025const char kPluginsMetadata[] = "plugins.metadata"; 1026 1027// Last update time of plug-ins resource cache. 1028const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update"; 1029#endif 1030 1031// Boolean that indicates whether we should check if we are the default browser 1032// on start-up. 1033const char kCheckDefaultBrowser[] = "browser.check_default_browser"; 1034 1035#if defined(OS_WIN) 1036// By default, setting Chrome as default during first run on Windows 8 will 1037// trigger shutting down the current instance and spawning a new (Metro) 1038// Chrome. This boolean preference supresses this behaviour. 1039const char kSuppressSwitchToMetroModeOnSetDefault[] = 1040 "browser.suppress_switch_to_metro_mode_on_set_default"; 1041#endif 1042 1043// Policy setting whether default browser check should be disabled and default 1044// browser registration should take place. 1045const char kDefaultBrowserSettingEnabled[] = 1046 "browser.default_browser_setting_enabled"; 1047 1048#if defined(OS_MACOSX) 1049// Boolean that indicates whether the application should show the info bar 1050// asking the user to set up automatic updates when Keystone promotion is 1051// required. 1052const char kShowUpdatePromotionInfoBar[] = 1053 "browser.show_update_promotion_info_bar"; 1054#endif 1055 1056// Boolean that is false if we should show window manager decorations. If 1057// true, we draw a custom chrome frame (thicker title bar and blue border). 1058const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; 1059 1060// The preferred position (which corner of screen) for desktop notifications. 1061const char kDesktopNotificationPosition[] = 1062 "browser.desktop_notification_position"; 1063 1064// Dictionary of content settings applied to all hosts by default. 1065const char kDefaultContentSettings[] = "profile.default_content_settings"; 1066 1067// Boolean indicating whether the clear on exit pref was migrated to content 1068// settings yet. 1069const char kContentSettingsClearOnExitMigrated[] = 1070 "profile.content_settings.clear_on_exit_migrated"; 1071 1072// Version of the pattern format used to define content settings. 1073const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; 1074 1075// Patterns for mapping origins to origin related settings. Default settings 1076// will be applied to origins that don't match any of the patterns. The pattern 1077// format used is defined by kContentSettingsVersion. 1078const char kContentSettingsPatternPairs[] = 1079 "profile.content_settings.pattern_pairs"; 1080 1081// Version of the content settings whitelist. 1082const char kContentSettingsDefaultWhitelistVersion[] = 1083 "profile.content_settings.whitelist_version"; 1084 1085#if !defined(OS_ANDROID) 1086// Which plugins have been whitelisted manually by the user. 1087const char kContentSettingsPluginWhitelist[] = 1088 "profile.content_settings.plugin_whitelist"; 1089#endif 1090 1091// Boolean that is true if we should unconditionally block third-party cookies, 1092// regardless of other content settings. 1093const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 1094 1095// Boolean that is true when all locally stored site data (e.g. cookies, local 1096// storage, etc..) should be deleted on exit. 1097const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; 1098 1099// Double that indicates the default zoom level. 1100const char kDefaultZoomLevel[] = "profile.default_zoom_level"; 1101 1102// Dictionary that maps hostnames to zoom levels. Hosts not in this pref will 1103// be displayed at the default zoom level. 1104const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels"; 1105 1106// The number of times the dialog has been shown (all time). 1107const char kAutofillDialogShowCount[] = "autofill.show_count"; 1108 1109// Whether a user has ever paid with Wallet via the autofill dialog. 1110const char kAutofillDialogHasPaidWithWallet[] = "autofill.has_paid_with_wallet"; 1111 1112// Whether a user opted out of making purchases with Google Wallet; changed via 1113// the autofill dialog's account chooser and set explicitly on dialog submission 1114// (but not cancel). If this isn't set, the dialog assumes it's the first run. 1115const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet"; 1116 1117// A dictionary that tracks the default data model to use for each section of 1118// the dialog. 1119const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default"; 1120 1121// Modifying bookmarks is completely disabled when this is set to false. 1122const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled"; 1123 1124// Boolean that is true when the translate feature is enabled. 1125const char kEnableTranslate[] = "translate.enabled"; 1126 1127#if !defined(OS_ANDROID) 1128const char kPinnedTabs[] = "pinned_tabs"; 1129#endif 1130 1131#if defined(OS_ANDROID) 1132// Boolean that controls the enabled-state of Geolocation in content. 1133const char kGeolocationEnabled[] = "geolocation.enabled"; 1134#endif 1135 1136#if defined(ENABLE_GOOGLE_NOW) 1137// Boolean that is true when Google services can use the user's location. 1138const char kGoogleGeolocationAccessEnabled[] = 1139 "googlegeolocationaccess.enabled"; 1140#endif 1141 1142// The default audio capture device used by the Media content setting. 1143const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; 1144 1145// The default video capture device used by the Media content setting. 1146const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; 1147 1148// Preference to disable 3D APIs (WebGL, Pepper 3D). 1149const char kDisable3DAPIs[] = "disable_3d_apis"; 1150 1151// Whether to enable hyperlink auditing ("<a ping>"). 1152const char kEnableHyperlinkAuditing[] = "enable_a_ping"; 1153 1154// Whether to enable sending referrers. 1155const char kEnableReferrers[] = "enable_referrers"; 1156 1157// Whether to send the DNT header. 1158const char kEnableDoNotTrack[] = "enable_do_not_track"; 1159 1160// Boolean to enable reporting memory info to page. 1161const char kEnableMemoryInfo[] = "enable_memory_info"; 1162 1163// GL_VENDOR string. 1164const char kGLVendorString[] = "gl_vendor_string"; 1165 1166// GL_RENDERER string. 1167const char kGLRendererString[] = "gl_renderer_string"; 1168 1169// GL_VERSION string. 1170const char kGLVersionString[] = "gl_version_string"; 1171 1172// Boolean that specifies whether to import bookmarks from the default browser 1173// on first run. 1174const char kImportBookmarks[] = "import_bookmarks"; 1175 1176// Boolean that specifies whether to import the browsing history from the 1177// default browser on first run. 1178const char kImportHistory[] = "import_history"; 1179 1180// Boolean that specifies whether to import the homepage from the default 1181// browser on first run. 1182const char kImportHomepage[] = "import_home_page"; 1183 1184// Boolean that specifies whether to import the search engine from the default 1185// browser on first run. 1186const char kImportSearchEngine[] = "import_search_engine"; 1187 1188// Boolean that specifies whether to import the saved passwords from the default 1189// browser on first run. 1190const char kImportSavedPasswords[] = "import_saved_passwords"; 1191 1192#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) 1193// The local profile id for this profile. 1194const char kLocalProfileId[] = "profile.local_profile_id"; 1195 1196// Whether passwords in external services (e.g. GNOME Keyring) have been tagged 1197// with the local profile id yet. (Used for migrating to tagged passwords.) 1198const char kPasswordsUseLocalProfileId[] = 1199 "profile.passwords_use_local_profile_id"; 1200#endif 1201 1202// Profile avatar and name 1203const char kProfileAvatarIndex[] = "profile.avatar_index"; 1204const char kProfileName[] = "profile.name"; 1205 1206// Whether the profile is managed. 1207const char kProfileIsManaged[] = "profile.is_managed"; 1208 1209// Indicates if we've already shown a notification that high contrast 1210// mode is on, recommending high-contrast extensions and themes. 1211const char kInvertNotificationShown[] = "invert_notification_version_2_shown"; 1212 1213// Boolean controlling whether printing is enabled. 1214const char kPrintingEnabled[] = "printing.enabled"; 1215 1216// Boolean controlling whether print preview is disabled. 1217const char kPrintPreviewDisabled[] = "printing.print_preview_disabled"; 1218 1219// An integer pref specifying the fallback behavior for sites outside of content 1220// packs. One of: 1221// 0: Allow (does nothing) 1222// 1: Warn. 1223// 2: Block. 1224const char kDefaultManagedModeFilteringBehavior[] = 1225 "profile.managed.default_filtering_behavior"; 1226 1227// Whether this user is permitted to create managed users. 1228const char kManagedUserCreationAllowed[] = 1229 "profile.managed_user_creation_allowed"; 1230 1231// List pref containing the users managed by this user. 1232const char kManagedUsers[] = "profile.managed_users"; 1233 1234// List pref containing the extension ids which are not allowed to send 1235// notifications to the message center. 1236const char kMessageCenterDisabledExtensionIds[] = 1237 "message_center.disabled_extension_ids"; 1238 1239// List pref containing the system component ids which are not allowed to send 1240// notifications to the message center. 1241const char kMessageCenterDisabledSystemComponentIds[] = 1242 "message_center.disabled_system_component_ids"; 1243 1244// List pref containing the system component ids which are allowed to send 1245// notifications to the message center. 1246extern const char kMessageCenterEnabledSyncNotifierIds[] = 1247 "message_center.enabled_sync_notifier_ids"; 1248 1249// *************** LOCAL STATE *************** 1250// These are attached to the machine/installation 1251 1252// Directory of the last profile used. 1253const char kProfileLastUsed[] = "profile.last_used"; 1254 1255// List of directories of the profiles last active. 1256const char kProfilesLastActive[] = "profile.last_active_profiles"; 1257 1258// Total number of profiles created for this Chrome build. Used to tag profile 1259// directories. 1260const char kProfilesNumCreated[] = "profile.profiles_created"; 1261 1262// String containing the version of Chrome that the profile was created by. 1263// If profile was created before this feature was added, this pref will default 1264// to "1.0.0.0". 1265const char kProfileCreatedByVersion[] = "profile.created_by_version"; 1266 1267// A map of profile data directory to cached information. This cache can be 1268// used to display information about profiles without actually having to load 1269// them. 1270const char kProfileInfoCache[] = "profile.info_cache"; 1271 1272// Prefs for SSLConfigServicePref. 1273const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled"; 1274const char kSSLVersionMin[] = "ssl.version_min"; 1275const char kSSLVersionMax[] = "ssl.version_max"; 1276const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist"; 1277const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled"; 1278const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled"; 1279const char kEnableUnrestrictedSSL3Fallback[] = 1280 "ssl.unrestricted_ssl3_fallback.enabled"; 1281 1282// A boolean pref of the EULA accepted flag. 1283const char kEulaAccepted[] = "EulaAccepted"; 1284 1285// The metrics client GUID, entropy source and session ID. 1286const char kMetricsClientID[] = "user_experience_metrics.client_id"; 1287const char kMetricsSessionID[] = "user_experience_metrics.session_id"; 1288const char kMetricsLowEntropySource[] = 1289 "user_experience_metrics.low_entropy_source"; 1290const char kMetricsPermutedEntropyCache[] = 1291 "user_experience_metrics.permuted_entropy_cache"; 1292 1293// Date/time when the current metrics profile ID was created 1294// (which hopefully corresponds to first run). 1295const char kMetricsClientIDTimestamp[] = 1296 "user_experience_metrics.client_id_timestamp"; 1297 1298// Boolean that specifies whether or not crash reporting and metrics reporting 1299// are sent over the network for analysis. 1300const char kMetricsReportingEnabled[] = 1301 "user_experience_metrics.reporting_enabled"; 1302 1303// Boolean that specifies whether or not crash reports are sent 1304// over the network for analysis. 1305#if defined(OS_ANDROID) 1306const char kCrashReportingEnabled[] = 1307 "user_experience_metrics_crash.reporting_enabled"; 1308#endif 1309 1310// Array of strings that are each UMA logs that were supposed to be sent in the 1311// first minute of a browser session. These logs include things like crash count 1312// info, etc. 1313const char kMetricsInitialLogs[] = 1314 "user_experience_metrics.initial_logs_as_protobufs"; 1315 1316// Array of strings that are each UMA logs that were not sent because the 1317// browser terminated before these accumulated metrics could be sent. These 1318// logs typically include histograms and memory reports, as well as ongoing 1319// user activities. 1320const char kMetricsOngoingLogs[] = 1321 "user_experience_metrics.ongoing_logs_as_protobufs"; 1322 1323// Boolean that is true when bookmark prompt is enabled. 1324const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled"; 1325 1326// Number of times bookmark prompt displayed. 1327const char kBookmarkPromptImpressionCount[] = 1328 "bookmark_prompt_impression_count"; 1329 1330// 64-bit integer serialization of the base::Time from the last successful seed 1331// fetch (i.e. when the Variations server responds with 200 or 304). 1332const char kVariationsLastFetchTime[] = "variations_last_fetch_time"; 1333 1334// String for the restrict parameter to be appended to the variations URL. 1335const char kVariationsRestrictParameter[] = "variations_restrict_parameter"; 1336 1337// String serialized form of variations seed protobuf. 1338const char kVariationsSeed[] = "variations_seed"; 1339 1340// 64-bit integer serialization of the base::Time from the last seed received. 1341const char kVariationsSeedDate[] = "variations_seed_date"; 1342 1343// Where profile specific metrics are placed. 1344const char kProfileMetrics[] = "user_experience_metrics.profiles"; 1345 1346// The metrics for a profile are stored as dictionary values under the 1347// path kProfileMetrics. The individual metrics are placed under the path 1348// kProfileMetrics.kProfilePrefix<hashed-profile-id>. 1349const char kProfilePrefix[] = "profile-"; 1350 1351// True if the previous run of the program exited cleanly. 1352const char kStabilityExitedCleanly[] = 1353 "user_experience_metrics.stability.exited_cleanly"; 1354 1355// Version string of previous run, which is used to assure that stability 1356// metrics reported under current version reflect stability of the same version. 1357const char kStabilityStatsVersion[] = 1358 "user_experience_metrics.stability.stats_version"; 1359 1360// Build time, in seconds since an epoch, which is used to assure that stability 1361// metrics reported reflect stability of the same build. 1362const char kStabilityStatsBuildTime[] = 1363 "user_experience_metrics.stability.stats_buildtime"; 1364 1365// False if we received a session end and either we crashed during processing 1366// the session end or ran out of time and windows terminated us. 1367const char kStabilitySessionEndCompleted[] = 1368 "user_experience_metrics.stability.session_end_completed"; 1369 1370// Number of times the application was launched since last report. 1371const char kStabilityLaunchCount[] = 1372 "user_experience_metrics.stability.launch_count"; 1373 1374// Number of times the application exited uncleanly since the last report. 1375const char kStabilityCrashCount[] = 1376 "user_experience_metrics.stability.crash_count"; 1377 1378// Number of times the session end did not complete. 1379const char kStabilityIncompleteSessionEndCount[] = 1380 "user_experience_metrics.stability.incomplete_session_end_count"; 1381 1382// Number of times a page load event occurred since the last report. 1383const char kStabilityPageLoadCount[] = 1384 "user_experience_metrics.stability.page_load_count"; 1385 1386// Number of times a renderer process crashed since the last report. 1387const char kStabilityRendererCrashCount[] = 1388 "user_experience_metrics.stability.renderer_crash_count"; 1389 1390// Number of times an extension renderer process crashed since the last report. 1391const char kStabilityExtensionRendererCrashCount[] = 1392 "user_experience_metrics.stability.extension_renderer_crash_count"; 1393 1394// Time when the app was last launched, in seconds since the epoch. 1395const char kStabilityLaunchTimeSec[] = 1396 "user_experience_metrics.stability.launch_time_sec"; 1397 1398// Time when the app was last known to be running, in seconds since 1399// the epoch. 1400const char kStabilityLastTimestampSec[] = 1401 "user_experience_metrics.stability.last_timestamp_sec"; 1402 1403// This is the location of a list of dictionaries of plugin stability stats. 1404const char kStabilityPluginStats[] = 1405 "user_experience_metrics.stability.plugin_stats2"; 1406 1407// Number of times the renderer has become non-responsive since the last 1408// report. 1409const char kStabilityRendererHangCount[] = 1410 "user_experience_metrics.stability.renderer_hang_count"; 1411 1412// Total number of child process crashes (other than renderer / extension 1413// renderer ones, and plugin children, which are counted separately) since the 1414// last report. 1415const char kStabilityChildProcessCrashCount[] = 1416 "user_experience_metrics.stability.child_process_crash_count"; 1417 1418// On Chrome OS, total number of non-Chrome user process crashes 1419// since the last report. 1420const char kStabilityOtherUserCrashCount[] = 1421 "user_experience_metrics.stability.other_user_crash_count"; 1422 1423// On Chrome OS, total number of kernel crashes since the last report. 1424const char kStabilityKernelCrashCount[] = 1425 "user_experience_metrics.stability.kernel_crash_count"; 1426 1427// On Chrome OS, total number of unclean system shutdowns since the 1428// last report. 1429const char kStabilitySystemUncleanShutdownCount[] = 1430 "user_experience_metrics.stability.system_unclean_shutdowns"; 1431 1432// Number of times the browser has been able to register crash reporting. 1433const char kStabilityBreakpadRegistrationSuccess[] = 1434 "user_experience_metrics.stability.breakpad_registration_ok"; 1435 1436// Number of times the browser has failed to register crash reporting. 1437const char kStabilityBreakpadRegistrationFail[] = 1438 "user_experience_metrics.stability.breakpad_registration_fail"; 1439 1440// Number of times the browser has been run under a debugger. 1441const char kStabilityDebuggerPresent[] = 1442 "user_experience_metrics.stability.debugger_present"; 1443 1444// Number of times the browser has not been run under a debugger. 1445const char kStabilityDebuggerNotPresent[] = 1446 "user_experience_metrics.stability.debugger_not_present"; 1447 1448// The keys below are used for the dictionaries in the 1449// kStabilityPluginStats list. 1450const char kStabilityPluginName[] = "name"; 1451const char kStabilityPluginLaunches[] = "launches"; 1452const char kStabilityPluginInstances[] = "instances"; 1453const char kStabilityPluginCrashes[] = "crashes"; 1454const char kStabilityPluginLoadingErrors[] = "loading_errors"; 1455 1456// The keys below are strictly increasing counters over the lifetime of 1457// a chrome installation. They are (optionally) sent up to the uninstall 1458// survey in the event of uninstallation. The installation date is also by some 1459// opt-in services (currently Wallet, and soon UMA). 1460const char kInstallDate[] = "uninstall_metrics.installation_date2"; 1461const char kUninstallMetricsPageLoadCount[] = 1462 "uninstall_metrics.page_load_count"; 1463const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count"; 1464const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec"; 1465const char kUninstallLastLaunchTimeSec[] = 1466 "uninstall_metrics.last_launch_time_sec"; 1467const char kUninstallLastObservedRunTimeSec[] = 1468 "uninstall_metrics.last_observed_running_time_sec"; 1469 1470// String containing the version of Chrome for which Chrome will not prompt the 1471// user about setting Chrome as the default browser. 1472const char kBrowserSuppressDefaultBrowserPrompt[] = 1473 "browser.suppress_default_browser_prompt_for_version"; 1474 1475// A collection of position, size, and other data relating to the browser 1476// window to restore on startup. 1477const char kBrowserWindowPlacement[] = "browser.window_placement"; 1478 1479// A collection of position, size, and other data relating to the task 1480// manager window to restore on startup. 1481const char kTaskManagerWindowPlacement[] = "task_manager.window_placement"; 1482 1483// A collection of position, size, and other data relating to the keyword 1484// editor window to restore on startup. 1485const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement"; 1486 1487// A collection of position, size, and other data relating to the preferences 1488// window to restore on startup. 1489const char kPreferencesWindowPlacement[] = "preferences.window_placement"; 1490 1491// An integer specifying the total number of bytes to be used by the 1492// renderer's in-memory cache of objects. 1493const char kMemoryCacheSize[] = "renderer.memory_cache.size"; 1494 1495// String which specifies where to download files to by default. 1496const char kDownloadDefaultDirectory[] = "download.default_directory"; 1497 1498// Boolean that records if the download directory was changed by an 1499// upgrade a unsafe location to a safe location. 1500const char kDownloadDirUpgraded[] = "download.directory_upgrade"; 1501 1502// String which specifies where to save html files to by default. 1503const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; 1504 1505// The type used to save the page. See the enum SavePackage::SavePackageType in 1506// the chrome/browser/download/save_package.h for the possible values. 1507const char kSaveFileType[] = "savefile.type"; 1508 1509// String which specifies the last directory that was chosen for uploading 1510// or opening a file. 1511const char kSelectFileLastDirectory[] = "selectfile.last_directory"; 1512 1513// Boolean that specifies if file selection dialogs are shown. 1514const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; 1515 1516// Map of default tasks, associated by MIME type. 1517const char kDefaultTasksByMimeType[] = 1518 "filebrowser.tasks.default_by_mime_type"; 1519 1520// Map of default tasks, associated by file suffix. 1521const char kDefaultTasksBySuffix[] = 1522 "filebrowser.tasks.default_by_suffix"; 1523 1524// Extensions which should be opened upon completion. 1525const char kDownloadExtensionsToOpen[] = "download.extensions_to_open"; 1526 1527// Integer which specifies the frequency in milliseconds for detecting whether 1528// plugin windows are hung. 1529const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq"; 1530 1531// Integer which specifies the timeout value to be used for SendMessageTimeout 1532// to detect a hung plugin window. 1533const char kPluginMessageResponseTimeout[] = 1534 "browser.plugin_message_response_timeout"; 1535 1536// String which represents the dictionary name for our spell-checker. 1537const char kSpellCheckDictionary[] = "spellcheck.dictionary"; 1538 1539// Boolean pref indicating whether the spelling confirm dialog has been shown. 1540const char kSpellCheckConfirmDialogShown[] = "spellcheck.confirm_dialog_shown"; 1541 1542// String which represents whether we use the spelling service. 1543const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service"; 1544 1545// Dictionary of schemes used by the external protocol handler. 1546// The value is true if the scheme must be ignored. 1547const char kExcludedSchemes[] = "protocol_handler.excluded_schemes"; 1548 1549// Keys used for MAC handling of SafeBrowsing requests. 1550const char kSafeBrowsingClientKey[] = "safe_browsing.client_key"; 1551const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key"; 1552 1553// Integer that specifies the index of the tab the user was on when they 1554// last visited the options window. 1555const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index"; 1556 1557// Integer that specifies the index of the tab the user was on when they 1558// last visited the content settings window. 1559const char kContentSettingsWindowLastTabIndex[] = 1560 "content_settings_window.last_tab_index"; 1561 1562// Integer that specifies the index of the tab the user was on when they 1563// last visited the Certificate Manager window. 1564const char kCertificateManagerWindowLastTabIndex[] = 1565 "certificate_manager_window.last_tab_index"; 1566 1567// Integer that specifies if the first run bubble should be shown. 1568// This preference is only registered by the first-run procedure. 1569const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option"; 1570 1571// String containing the last known Google URL. We re-detect this on startup in 1572// most cases, and use it to send traffic to the correct Google host or with the 1573// correct Google domain/country code for whatever location the user is in. 1574const char kLastKnownGoogleURL[] = "browser.last_known_google_url"; 1575 1576// String containing the last prompted Google URL to the user. 1577// If the user is using .x TLD for Google URL and gets prompted about .y TLD 1578// for Google URL, and says "no", we should leave the search engine set to .x 1579// but not prompt again until the domain changes away from .y. 1580const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url"; 1581 1582// String containing the last known intranet redirect URL, if any. See 1583// intranet_redirect_detector.h for more information. 1584const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin"; 1585 1586// Integer containing the system Country ID the first time we checked the 1587// template URL prepopulate data. This is used to avoid adding a whole bunch of 1588// new search engine choices if prepopulation runs when the user's Country ID 1589// differs from their previous Country ID. This pref does not exist until 1590// prepopulation has been run at least once. 1591const char kCountryIDAtInstall[] = "countryid_at_install"; 1592// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead. 1593// Updated if found to the above key. 1594const char kGeoIDAtInstall[] = "geoid_at_install"; 1595 1596// An enum value of how the browser was shut down (see browser_shutdown.h). 1597const char kShutdownType[] = "shutdown.type"; 1598// Number of processes that were open when the user shut down. 1599const char kShutdownNumProcesses[] = "shutdown.num_processes"; 1600// Number of processes that were shut down using the slow path. 1601const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow"; 1602 1603// Whether to restart the current Chrome session automatically as the last thing 1604// before shutting everything down. 1605const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown"; 1606 1607// Set before autorestarting Chrome, cleared on clean exit. 1608const char kWasRestarted[] = "was.restarted"; 1609 1610#if defined(OS_WIN) 1611// On Windows 8 chrome can restart in desktop or in metro mode. 1612const char kRestartSwitchMode[] = "restart.switch_mode"; 1613#endif 1614 1615// Number of keywords. 1616const char kNumKeywords[] = "user_experience_metrics.num_keywords"; 1617 1618// Placeholder preference for disabling voice / video chat if it is ever added. 1619// Currently, this does not change any behavior. 1620const char kDisableVideoAndChat[] = "disable_video_chat"; 1621 1622// Whether Extensions are enabled. 1623const char kDisableExtensions[] = "extensions.disabled"; 1624 1625// Whether the plugin finder that lets you install missing plug-ins is enabled. 1626const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; 1627 1628// Integer boolean representing the width (in pixels) of the container for 1629// browser actions. 1630const char kBrowserActionContainerWidth[] = 1631 "extensions.browseractions.container.width"; 1632 1633// Time of the last, and next scheduled, extensions auto-update checks. 1634const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check"; 1635const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check"; 1636 1637// Whether we have run the extension-alert system (see ExtensionGlobalError) 1638// at least once for this profile. 1639const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized"; 1640 1641// The sites that are allowed to install extensions. These sites should be 1642// allowed to install extensions without the scary dangerous downloads bar. 1643// Also, when off-store-extension installs are disabled, these sites are exempt. 1644const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites"; 1645 1646// A list of allowed extension types. Extensions can only be installed if their 1647// type is on this whitelist or alternatively on kExtensionInstallAllowList or 1648// kExtensionInstallForceList. 1649const char kExtensionAllowedTypes[] = "extensions.allowed_types"; 1650 1651// Version number of last blacklist check. 1652const char kExtensionBlacklistUpdateVersion[] = 1653 "extensions.blacklistupdate.version"; 1654 1655// A whitelist of extension ids the user can install: exceptions from the 1656// following blacklist. 1657const char kExtensionInstallAllowList[] = "extensions.install.allowlist"; 1658 1659// A blacklist, containing extensions the user cannot install. This list can 1660// contain "*" meaning all extensions. This list should not be confused with the 1661// extension blacklist, which is Google controlled. 1662const char kExtensionInstallDenyList[] = "extensions.install.denylist"; 1663 1664// A list containing extensions that Chrome will silently install 1665// at startup time. It is a list of strings, each string contains 1666// an extension ID and an update URL, delimited by a semicolon. 1667// This preference is set by an admin policy, and meant to be only 1668// accessed through extensions::ExternalPolicyProvider. 1669const char kExtensionInstallForceList[] = "extensions.install.forcelist"; 1670 1671// Indicates on-disk data might have skeletal data that needs to be cleaned 1672// on the next start of the browser. 1673const char kExtensionStorageGarbageCollect[] = 1674 "extensions.storage.garbagecollect"; 1675 1676// Keeps track of which sessions are collapsed in the Other Devices menu. 1677const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; 1678 1679// New Tab Page URLs that should not be shown as most visited thumbnails. 1680const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist"; 1681 1682// Last time of update of promo_resource_cache. 1683const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update"; 1684 1685// Serves tips for the NTP. 1686const char kNtpTipsResourceServer[] = "ntp.tips_resource_server"; 1687 1688// Serves dates to determine display of elements on the NTP. 1689const char kNtpDateResourceServer[] = "ntp.date_resource_server"; 1690 1691// Which bookmarks folder should be visible on the new tab page v4. 1692const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder"; 1693 1694// Which page should be visible on the new tab page v4 1695const char kNtpShownPage[] = "ntp.shown_page"; 1696 1697// True if a desktop sync session was found for this user. 1698const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found"; 1699 1700// Boolean indicating whether the web store is active for the current locale. 1701const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled"; 1702 1703// The id of the last web store promo actually displayed on the NTP. 1704const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id"; 1705 1706// The id of the current web store promo. 1707const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id"; 1708 1709// The header line for the NTP web store promo. 1710const char kNtpWebStorePromoHeader[] = "ntp.webstorepromo.header"; 1711 1712// The button text for the NTP web store promo. 1713const char kNtpWebStorePromoButton[] = "ntp.webstorepromo.button"; 1714 1715// The button link for the NTP web store promo. 1716const char kNtpWebStorePromoLink[] = "ntp.webstorepromo.link"; 1717 1718// The image URL for the NTP web store promo logo. 1719const char kNtpWebStorePromoLogo[] = "ntp.webstorepromo.logo"; 1720 1721// The original URL for the NTP web store promo logo. 1722const char kNtpWebStorePromoLogoSource[] = "ntp.webstorepromo.logo_source"; 1723 1724// The "hide this" link text for the NTP web store promo. 1725const char kNtpWebStorePromoExpire[] = "ntp.webstorepromo.expire"; 1726 1727// Specifies what users should maximize the NTP web store promo. 1728const char kNtpWebStorePromoUserGroup[] = "ntp.webstorepromo.usergroup"; 1729 1730// Customized app page names that appear on the New Tab Page. 1731const char kNtpAppPageNames[] = "ntp.app_page_names"; 1732 1733const char kDevToolsDisabled[] = "devtools.disabled"; 1734 1735// A string specifying the dock location (either 'bottom' or 'right'). 1736const char kDevToolsDockSide[] = "devtools.dock_side"; 1737 1738// Maps of files edited locally using DevTools. 1739const char kDevToolsEditedFiles[] = "devtools.edited_files"; 1740 1741// List of file system paths added in DevTools. 1742const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths"; 1743 1744// Integer location of the horizontal split bar in the browser view. 1745const char kDevToolsHSplitLocation[] = "devtools.split_location"; 1746 1747// A boolean specifying whether dev tools window should be opened docked. 1748const char kDevToolsOpenDocked[] = "devtools.open_docked"; 1749 1750#if defined(OS_ANDROID) 1751// A boolean specifying whether remote dev tools debugging is enabled. 1752const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled"; 1753#endif 1754 1755// Integer location of the vertical split bar in the browser view. 1756const char kDevToolsVSplitLocation[] = "devtools.v_split_location"; 1757 1758#if defined(OS_ANDROID) || defined(OS_IOS) 1759// A boolean specifying whether a SPDY proxy is enabled. 1760const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled"; 1761const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before"; 1762#endif // defined(OS_ANDROID) || defined(OS_IOS) 1763 1764// Boolean which stores if the user is allowed to signin to chrome. 1765const char kSigninAllowed[] = "signin.allowed"; 1766 1767// 64-bit integer serialization of the base::Time when the last sync occurred. 1768const char kSyncLastSyncedTime[] = "sync.last_synced_time"; 1769 1770// Boolean specifying whether the user finished setting up sync. 1771const char kSyncHasSetupCompleted[] = "sync.has_setup_completed"; 1772 1773// Boolean specifying whether to automatically sync all data types (including 1774// future ones, as they're added). If this is true, the following preferences 1775// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored. 1776const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced"; 1777 1778// Booleans specifying whether the user has selected to sync the following 1779// datatypes. 1780const char kSyncAppNotifications[] = "sync.app_notifications"; 1781const char kSyncAppSettings[] = "sync.app_settings"; 1782const char kSyncApps[] = "sync.apps"; 1783const char kSyncAutofillProfile[] = "sync.autofill_profile"; 1784const char kSyncAutofill[] = "sync.autofill"; 1785const char kSyncBookmarks[] = "sync.bookmarks"; 1786const char kSyncDictionary[] = "sync.dictionary"; 1787const char kSyncExtensionSettings[] = "sync.extension_settings"; 1788const char kSyncExtensions[] = "sync.extensions"; 1789const char kSyncFaviconImages[] = "sync.favicon_images"; 1790const char kSyncFaviconTracking[] = "sync.favicon_tracking"; 1791const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives"; 1792const char kSyncManagedUserSettings[] = "sync.managed_user_settings"; 1793const char kSyncManagedUsers[] = "sync.managed_users"; 1794const char kSyncPasswords[] = "sync.passwords"; 1795const char kSyncPreferences[] = "sync.preferences"; 1796const char kSyncPriorityPreferences[] = "sync.priority_preferences"; 1797const char kSyncSearchEngines[] = "sync.search_engines"; 1798const char kSyncSessions[] = "sync.sessions"; 1799const char kSyncSyncedNotifications[] = "sync.synced_notifications"; 1800const char kSyncTabs[] = "sync.tabs"; 1801const char kSyncThemes[] = "sync.themes"; 1802const char kSyncTypedUrls[] = "sync.typed_urls"; 1803 1804// Boolean used by enterprise configuration management in order to lock down 1805// sync. 1806const char kSyncManaged[] = "sync.managed"; 1807 1808// Boolean to prevent sync from automatically starting up. This is 1809// used when sync is disabled by the user via the privacy dashboard. 1810const char kSyncSuppressStart[] = "sync.suppress_start"; 1811 1812// List of the currently acknowledged set of sync types, used to figure out 1813// if a new sync type has rolled out so we can notify the user. 1814const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types"; 1815 1816// Dictionary from sync model type (as an int) to max invalidation 1817// version (int64 represented as a string). 1818const char kSyncMaxInvalidationVersions[] = "sync.max_invalidation_versions"; 1819 1820// The GUID session sync will use to identify this client, even across sync 1821// disable/enable events. 1822const char kSyncSessionsGUID[] = "sync.session_sync_guid"; 1823 1824// An ID to uniquely identify this client to the invalidator service. 1825const char kInvalidatorClientId[] = "invalidator.client_id"; 1826 1827// Opaque state from the invalidation subsystem that is persisted via prefs. 1828// The value is base 64 encoded. 1829const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state"; 1830 1831// List of {source, name, max invalidation version} tuples. source is an int, 1832// while max invalidation version is an int64; both are stored as string 1833// representations though. 1834const char kInvalidatorMaxInvalidationVersions[] = 1835 "invalidator.max_invalidation_versions"; 1836 1837// A string that can be used to restore sync encryption infrastructure on 1838// startup so that the user doesn't need to provide credentials on each start. 1839const char kSyncEncryptionBootstrapToken[] = 1840 "sync.encryption_bootstrap_token"; 1841 1842// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key, 1843// so we don't have to do a GetKey command at restart. 1844const char kSyncKeystoreEncryptionBootstrapToken[] = 1845 "sync.keystore_encryption_bootstrap_token"; 1846 1847// Boolean tracking whether the user chose to specify a secondary encryption 1848// passphrase. 1849const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase"; 1850 1851// Preferences that follow the status of sync server triggered experiments. 1852const char kSyncFaviconsEnabled[] ="sync.favicons_syncing_enabled"; 1853 1854// String the identifies the last user that logged into sync and other 1855// google services. As opposed to kGoogleServicesUsername, this value is not 1856// cleared on signout, but while the user is signed in the two values will 1857// be the same. 1858const char kGoogleServicesLastUsername[] = "google.services.last_username"; 1859 1860// String that identifies the current user logged into sync and other google 1861// services. 1862const char kGoogleServicesUsername[] = "google.services.username"; 1863 1864// Local state pref containing a string regex that restricts which accounts 1865// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, 1866// all accounts are allowed (no restrictions). 1867const char kGoogleServicesUsernamePattern[] = 1868 "google.services.username_pattern"; 1869 1870#if !defined(OS_ANDROID) 1871// Tracks the number of times that we have shown the sync promo at startup. 1872const char kSyncPromoStartupCount[] = "sync_promo.startup_count"; 1873 1874// Boolean tracking whether the user chose to skip the sync promo. 1875const char kSyncPromoUserSkipped[] = "sync_promo.user_skipped"; 1876 1877// Boolean that specifies if the sync promo is allowed to show on first run. 1878// This preference is specified in the master preference file to suppress the 1879// sync promo for some installations. 1880const char kSyncPromoShowOnFirstRunAllowed[] = 1881 "sync_promo.show_on_first_run_allowed"; 1882 1883// Boolean that specifies if we should show a bubble in the new tab page. 1884// The bubble is used to confirm that the user is signed into sync. 1885const char kSyncPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; 1886 1887// An error to show in the sync promo bubble, if needed. If the sign in was 1888// successful, this property holds an empty string. 1889const char kSyncPromoErrorMessage[] = "sync_promo.error_message"; 1890#endif 1891 1892// Time when the user's GAIA info was last updated (represented as an int64). 1893const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time"; 1894 1895// The URL from which the GAIA profile picture was downloaded. This is cached to 1896// prevent the same picture from being downloaded multiple times. 1897const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url"; 1898 1899// Create web application shortcut dialog preferences. 1900const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; 1901const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; 1902const char kWebAppCreateInQuickLaunchBar[] = 1903 "browser.web_app.create_in_quick_launch_bar"; 1904 1905// Dictionary that maps Geolocation network provider server URLs to 1906// corresponding access token. 1907const char kGeolocationAccessToken[] = "geolocation.access_token"; 1908 1909// Boolean that indicates whether to allow firewall traversal while trying to 1910// establish the initial connection from the client or host. 1911const char kRemoteAccessHostFirewallTraversal[] = 1912 "remote_access.host_firewall_traversal"; 1913 1914// Boolean controlling whether 2-factor auth should be required when connecting 1915// to a host (instead of a PIN). 1916const char kRemoteAccessHostRequireTwoFactor[] = 1917 "remote_access.host_require_two_factor"; 1918 1919// String containing the domain name that hosts must belong to. If blank, then 1920// hosts can belong to any domain. 1921const char kRemoteAccessHostDomain[] = "remote_access.host_domain"; 1922 1923// String containing the domain name of the Chromoting Directory. 1924// Used by Chromoting host and client. 1925const char kRemoteAccessHostTalkGadgetPrefix[] = 1926 "remote_access.host_talkgadget_prefix"; 1927 1928// Boolean controlling whether curtaining is required when connecting to a host. 1929const char kRemoteAccessHostRequireCurtain[] = 1930 "remote_access.host_require_curtain"; 1931 1932// The last used printer and its settings. 1933const char kPrintPreviewStickySettings[] = 1934 "printing.print_preview_sticky_settings"; 1935// The root URL of the cloud print service. 1936const char kCloudPrintServiceURL[] = "cloud_print.service_url"; 1937 1938// The URL to use to sign in to cloud print. 1939const char kCloudPrintSigninURL[] = "cloud_print.signin_url"; 1940 1941// The last requested size of the dialog as it was closed. 1942const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width"; 1943const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; 1944const char kCloudPrintSigninDialogWidth[] = 1945 "cloud_print.signin_dialog_size.width"; 1946const char kCloudPrintSigninDialogHeight[] = 1947 "cloud_print.signin_dialog_size.height"; 1948 1949#if !defined(OS_ANDROID) 1950// The Chrome To Mobile service mobile device list pref. 1951const char kChromeToMobileDeviceList[] = "chrome_to_mobile.device_list"; 1952#endif 1953 1954// The list of BackgroundContents that should be loaded when the browser 1955// launches. 1956const char kRegisteredBackgroundContents[] = "background_contents.registered"; 1957 1958#if !defined(OS_ANDROID) 1959// An int that stores how often we've shown the "Chrome is configured to 1960// auto-launch" infobar. 1961const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; 1962#endif 1963 1964// String that lists supported HTTP authentication schemes. 1965const char kAuthSchemes[] = "auth.schemes"; 1966 1967// Boolean that specifies whether to disable CNAME lookups when generating 1968// Kerberos SPN. 1969const char kDisableAuthNegotiateCnameLookup[] = 1970 "auth.disable_negotiate_cname_lookup"; 1971 1972// Boolean that specifies whether to include the port in a generated Kerberos 1973// SPN. 1974const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port"; 1975 1976// Whitelist containing servers for which Integrated Authentication is enabled. 1977const char kAuthServerWhitelist[] = "auth.server_whitelist"; 1978 1979// Whitelist containing servers Chrome is allowed to do Kerberos delegation 1980// with. 1981const char kAuthNegotiateDelegateWhitelist[] = 1982 "auth.negotiate_delegate_whitelist"; 1983 1984// String that specifies the name of a custom GSSAPI library to load. 1985const char kGSSAPILibraryName[] = "auth.gssapi_library_name"; 1986 1987// String that specifies the origin allowed to use SpdyProxy 1988// authentication, if any. 1989const char kSpdyProxyAuthOrigin[] = "auth.spdyproxy.origin"; 1990 1991// Boolean that specifies whether to allow basic auth prompting on cross- 1992// domain sub-content requests. 1993const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt"; 1994 1995// Boolean that specifies whether the built-in asynchronous DNS client is used. 1996const char kBuiltInDnsClientEnabled[] = "async_dns.enabled"; 1997 1998// An int64 pref that contains the total size of all HTTP content that has been 1999// received from the network. 2000const char kHttpReceivedContentLength[] = "http_received_content_length"; 2001 2002// An int64 pref that contains the total original size of all HTTP content that 2003// was received over the network. 2004const char kHttpOriginalContentLength[] = "http_original_content_length"; 2005 2006#if defined(OS_ANDROID) || defined(OS_IOS) 2007// A List pref that contains daily totals of the original size of all HTTP 2008// that was received over the network. 2009const char kDailyHttpOriginalContentLength[] = 2010 "data_reduction.daily_original_length"; 2011 2012// A List pref that contains daily totals of the size of all HTTP content that 2013// has been received from the network. 2014const char kDailyHttpReceivedContentLength[] = 2015 "data_reduction.daily_received_length"; 2016 2017// An int64 pref that contains an internal representation of midnight on the 2018// date of the last update to |kDailyHttp{Original,Received}ContentLength|. 2019const char kDailyHttpContentLengthLastUpdateDate[] = 2020 "data_reduction.last_update_date"; 2021#endif // defined(OS_ANDROID) || defined(OS_IOS) 2022 2023// A pref holding the value of the policy used to explicitly allow or deny 2024// access to audio capture devices. When enabled or not set, the user is 2025// prompted for device access. When disabled, access to audio capture devices 2026// is not allowed and no prompt will be shown. 2027// See also kAudioCaptureAllowedUrls. 2028const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled"; 2029// Holds URL patterns that specify URLs that will be granted access to audio 2030// capture devices without prompt. NOTE: This whitelist is currently only 2031// supported when running in kiosk mode. 2032// TODO(tommi): Update comment when this is supported for all modes. 2033const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls"; 2034 2035// A pref holding the value of the policy used to explicitly allow or deny 2036// access to video capture devices. When enabled or not set, the user is 2037// prompted for device access. When disabled, access to video capture devices 2038// is not allowed and no prompt will be shown. 2039const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled"; 2040// Holds URL patterns that specify URLs that will be granted access to video 2041// capture devices without prompt. NOTE: This whitelist is currently only 2042// supported when running in kiosk mode. 2043// TODO(tommi): Update comment when this is supported for all modes. 2044const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls"; 2045 2046#if defined(OS_CHROMEOS) 2047// Dictionary for transient storage of settings that should go into device 2048// settings storage before owner has been assigned. 2049const char kDeviceSettingsCache[] = "signed_settings_cache"; 2050 2051// The hardware keyboard layout of the device. This should look like 2052// "xkb:us::eng". 2053const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard"; 2054 2055// An integer pref which shows number of times carrier deal promo 2056// notification has been shown to user. 2057const char kCarrierDealPromoShown[] = 2058 "settings.internet.mobile.carrier_deal_promo_shown"; 2059 2060// A boolean pref of the auto-enrollment decision. Its value is only valid if 2061// it's not the default value; otherwise, no auto-enrollment decision has been 2062// made yet. 2063const char kShouldAutoEnroll[] = "ShouldAutoEnroll"; 2064 2065// An integer pref with the maximum number of bits used by the client in a 2066// previous auto-enrollment request. If the client goes through an auto update 2067// during OOBE and reboots into a version of the OS with a larger maximum 2068// modulus, then it will retry auto-enrollment using the updated value. 2069const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; 2070 2071// The local state pref that stores device activity times before reporting 2072// them to the policy server. 2073const char kDeviceActivityTimes[] = "device_status.activity_times"; 2074 2075// A pref holding the last known location when device location reporting is 2076// enabled. 2077const char kDeviceLocation[] = "device_status.location"; 2078 2079// A string that is used to store first-time sync startup after once sync is 2080// disabled. This will be refreshed every sign-in. 2081const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token"; 2082 2083// A pref holding the value of the policy used to disable mounting of external 2084// storage for the user. 2085const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; 2086 2087// A pref holding the value of the policy used to disable playing audio on 2088// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite 2089// it, therefore when the policy is lifted the original mute state is restored. 2090const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; 2091 2092// A dictionary that maps usernames to wallpaper properties. 2093const char kUsersWallpaperInfo[] = "user_wallpaper_info"; 2094 2095// Copy of owner swap mouse buttons option to use on login screen. 2096const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right"; 2097 2098// Copy of owner tap-to-click option to use on login screen. 2099const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click"; 2100 2101// The length of device uptime after which an automatic reboot is scheduled, 2102// expressed in seconds. 2103const char kUptimeLimit[] = "automatic_reboot.uptime_limit"; 2104 2105// Whether an automatic reboot should be scheduled when an update has been 2106// applied and a reboot is required to complete the update process. 2107const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update"; 2108 2109// An any-api scoped refresh token for enterprise-enrolled devices. Allows 2110// for connection to Google APIs when the user isn't logged in. Currently used 2111// for for getting a cloudprint scoped token to allow printing in Guest mode, 2112// Public Accounts and kiosks. 2113const char kDeviceRobotAnyApiRefreshToken[] = 2114 "device_robot_refresh_token.any-api"; 2115 2116// Device requisition for enterprise enrollment. 2117const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition"; 2118 2119// Whether to automatically start the enterprise enrollment step during OOBE. 2120const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start"; 2121 2122// Whether the user may exit enrollment. 2123const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit"; 2124#endif 2125 2126// Whether there is a Flash version installed that supports clearing LSO data. 2127const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; 2128 2129// Whether we should show Pepper Flash-specific settings. 2130const char kPepperFlashSettingsEnabled[] = 2131 "browser.pepper_flash_settings_enabled"; 2132 2133// String which specifies where to store the disk cache. 2134const char kDiskCacheDir[] = "browser.disk_cache_dir"; 2135// Pref name for the policy specifying the maximal cache size. 2136const char kDiskCacheSize[] = "browser.disk_cache_size"; 2137// Pref name for the policy specifying the maximal media cache size. 2138const char kMediaCacheSize[] = "browser.media_cache_size"; 2139 2140// Specifies the release channel that the device should be locked to. 2141// Possible values: "stable-channel", "beta-channel", "dev-channel", or an 2142// empty string, in which case the value will be ignored. 2143// TODO(dubroy): This preference may not be necessary once 2144// http://crosbug.com/17015 is implemented and the update engine can just 2145// fetch the correct value from the policy. 2146const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; 2147 2148// Value of the enums in TabStrip::LayoutType as an int. 2149const char kTabStripLayoutType[] = "tab_strip_layout_type"; 2150 2151// If true, cloud policy for the user is not loaded when the user signs in. 2152const char kDisableCloudPolicyOnSignin[] = 2153 "policy.disable_cloud_policy_on_signin"; 2154 2155// Indicates that factory reset was requested from options page. 2156const char kFactoryResetRequested[] = "FactoryResetRequested"; 2157 2158// Boolean recording whether we have showed a balloon that calls out the message 2159// center for desktop notifications. 2160const char kMessageCenterShowedFirstRunBalloon[] = 2161 "message_center.showed_first_run_balloon"; 2162 2163// *************** SERVICE PREFS *************** 2164// These are attached to the service process. 2165 2166const char kCloudPrintRoot[] = "cloud_print"; 2167const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; 2168// The unique id for this instance of the cloud print proxy. 2169const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; 2170// The GAIA auth token for Cloud Print 2171const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; 2172// The GAIA auth token used by Cloud Print to authenticate with the XMPP server 2173// This should eventually go away because the above token should work for both. 2174const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token"; 2175// The email address of the account used to authenticate with the Cloud Print 2176// server. 2177const char kCloudPrintEmail[] = "cloud_print.email"; 2178// Settings specific to underlying print system. 2179const char kCloudPrintPrintSystemSettings[] = 2180 "cloud_print.print_system_settings"; 2181// A boolean indicating whether we should poll for print jobs when don't have 2182// an XMPP connection (false by default). 2183const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll"; 2184const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token"; 2185const char kCloudPrintRobotEmail[] = "cloud_print.robot_email"; 2186// A boolean indicating whether we should connect to cloud print new printers. 2187const char kCloudPrintConnectNewPrinters[] = 2188 "cloud_print.user_settings.connectNewPrinters"; 2189// A boolean indicating whether we should ping XMPP connection. 2190const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled"; 2191// An int value indicating the average timeout between xmpp pings. 2192const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec"; 2193// Dictionary with settings stored by connector setup page. 2194const char kCloudPrintUserSettings[] = "cloud_print.user_settings"; 2195// List of printers settings. 2196extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers"; 2197// A boolean indicating whether submitting jobs to Google Cloud Print is 2198// blocked by policy. 2199const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled"; 2200 2201// Preference to store proxy settings. 2202const char kProxy[] = "proxy"; 2203const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy"; 2204 2205// Preferences that are exclusively used to store managed values for default 2206// content settings. 2207const char kManagedDefaultCookiesSetting[] = 2208 "profile.managed_default_content_settings.cookies"; 2209const char kManagedDefaultImagesSetting[] = 2210 "profile.managed_default_content_settings.images"; 2211const char kManagedDefaultJavaScriptSetting[] = 2212 "profile.managed_default_content_settings.javascript"; 2213const char kManagedDefaultPluginsSetting[] = 2214 "profile.managed_default_content_settings.plugins"; 2215const char kManagedDefaultPopupsSetting[] = 2216 "profile.managed_default_content_settings.popups"; 2217const char kManagedDefaultGeolocationSetting[] = 2218 "profile.managed_default_content_settings.geolocation"; 2219const char kManagedDefaultNotificationsSetting[] = 2220 "profile.managed_default_content_settings.notifications"; 2221const char kManagedDefaultMediaStreamSetting[] = 2222 "profile.managed_default_content_settings.media_stream"; 2223 2224// Preferences that are exclusively used to store managed 2225// content settings patterns. 2226const char kManagedCookiesAllowedForUrls[] = 2227 "profile.managed_cookies_allowed_for_urls"; 2228const char kManagedCookiesBlockedForUrls[] = 2229 "profile.managed_cookies_blocked_for_urls"; 2230const char kManagedCookiesSessionOnlyForUrls[] = 2231 "profile.managed_cookies_sessiononly_for_urls"; 2232const char kManagedImagesAllowedForUrls[] = 2233 "profile.managed_images_allowed_for_urls"; 2234const char kManagedImagesBlockedForUrls[] = 2235 "profile.managed_images_blocked_for_urls"; 2236const char kManagedJavaScriptAllowedForUrls[] = 2237 "profile.managed_javascript_allowed_for_urls"; 2238const char kManagedJavaScriptBlockedForUrls[] = 2239 "profile.managed_javascript_blocked_for_urls"; 2240const char kManagedPluginsAllowedForUrls[] = 2241 "profile.managed_plugins_allowed_for_urls"; 2242const char kManagedPluginsBlockedForUrls[] = 2243 "profile.managed_plugins_blocked_for_urls"; 2244const char kManagedPopupsAllowedForUrls[] = 2245 "profile.managed_popups_allowed_for_urls"; 2246const char kManagedPopupsBlockedForUrls[] = 2247 "profile.managed_popups_blocked_for_urls"; 2248const char kManagedNotificationsAllowedForUrls[] = 2249 "profile.managed_notifications_allowed_for_urls"; 2250const char kManagedNotificationsBlockedForUrls[] = 2251 "profile.managed_notifications_blocked_for_urls"; 2252const char kManagedAutoSelectCertificateForUrls[] = 2253 "profile.managed_auto_select_certificate_for_urls"; 2254 2255#if defined(OS_MACOSX) 2256// Set to true if the user removed our login item so we should not create a new 2257// one when uninstalling background apps. 2258const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item"; 2259 2260// Set to true if Chrome already created a login item, so there's no need to 2261// create another one. 2262const char kChromeCreatedLoginItem[] = 2263 "background_mode.chrome_created_login_item"; 2264 2265// Set to true once we've initialized kChromeCreatedLoginItem for the first 2266// time. 2267const char kMigratedLoginItemPref[] = 2268 "background_mode.migrated_login_item_pref"; 2269#endif 2270 2271// Set to true if background mode is enabled on this browser. 2272const char kBackgroundModeEnabled[] = "background_mode.enabled"; 2273 2274// Set to true if hardware acceleration mode is enabled on this browser. 2275const char kHardwareAccelerationModeEnabled[] = 2276 "hardware_acceleration_mode.enabled"; 2277 2278// Hardware acceleration mode from previous browser launch. 2279const char kHardwareAccelerationModePrevious[] = 2280 "hardware_acceleration_mode_previous"; 2281 2282// List of protocol handlers. 2283const char kRegisteredProtocolHandlers[] = 2284 "custom_handlers.registered_protocol_handlers"; 2285 2286// List of protocol handlers the user has requested not to be asked about again. 2287const char kIgnoredProtocolHandlers[] = 2288 "custom_handlers.ignored_protocol_handlers"; 2289 2290// Whether user-specified handlers for protocols and content types can be 2291// specified. 2292const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 2293 2294// Integers that specify the policy refresh rate for device- and user-policy in 2295// milliseconds. Not all values are meaningful, so it is clamped to a sane range 2296// by the cloud policy subsystem. 2297const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 2298const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; 2299 2300// String that represents the recovery component last downloaded version. This 2301// takes the usual 'a.b.c.d' notation. 2302const char kRecoveryComponentVersion[] = "recovery_component.version"; 2303 2304// String that stores the component updater last known state. This is used for 2305// troubleshooting. 2306const char kComponentUpdaterState[] = "component_updater.state"; 2307 2308// The next media gallery ID to assign. 2309const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; 2310 2311// A list of dictionaries, where each dictionary represents a known media 2312// gallery. 2313const char kMediaGalleriesRememberedGalleries[] = 2314 "media_galleries.remembered_galleries"; 2315 2316#if defined(USE_ASH) 2317// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The 2318// local variant is not synced and is used if set. If the local variant is not 2319// set its value is set from the synced value (once prefs have been 2320// synced). This gives a per-machine setting that is initialized from the last 2321// set value. 2322// These values are default on the machine but can be overridden by per-display 2323// values in kShelfPreferences (unless overridden by managed policy). 2324// String value corresponding to ash::Shell::ShelfAlignment. 2325const char kShelfAlignment[] = "shelf_alignment"; 2326const char kShelfAlignmentLocal[] = "shelf_alignment_local"; 2327// String value corresponding to ash::Shell::ShelfAutoHideBehavior. 2328const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; 2329const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; 2330// This value stores chrome icon's index in the launcher. This should be handled 2331// separately with app shortcut's index because of LauncherModel's backward 2332// compatability. If we add chrome icon index to |kPinnedLauncherApps|, its 2333// index is also stored in the |kPinnedLauncherApp| pref. It may causes 2334// creating two chrome icons. 2335const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index"; 2336 2337const char kPinnedLauncherApps[] = "pinned_launcher_apps"; 2338// Boolean value indicating whether to show a logout button in the ash tray. 2339const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; 2340// Dictionary value that holds per-display preference of shelf alignment and 2341// auto-hide behavior. Key of the dictionary is the id of the display, and 2342// its value is a dictionary whose keys are kShelfAlignment and 2343// kShelfAutoHideBehavior. 2344const char kShelfPreferences[] = "shelf_preferences"; 2345 2346// Tuning for immersive fullscreen. 2347const char kImmersiveModeRevealDelayMs[] = 2348 "immersive_mode.reveal_delay_ms"; 2349const char kImmersiveModeRevealXThresholdPixels[] = 2350 "immersive_mode.reveal_x_threshold_pixels"; 2351 2352// Tuning settings for the animations when a user is cycling through workspaces 2353// via a three finger vertical scroll. 2354const char kWorkspaceCyclerShallowerThanSelectedYOffsets[] = 2355 "workspace_cycler.shallower_than_selected_y_offsets"; 2356const char kWorkspaceCyclerDeeperThanSelectedYOffsets[] = 2357 "workspace_cycler.deeper_than_selected_y_offsets"; 2358const char kWorkspaceCyclerSelectedYOffset[] = 2359 "workspace_cycler.selected_y_offset"; 2360const char kWorkspaceCyclerSelectedScale[] = 2361 "workspace_cycler.selected_scale"; 2362const char kWorkspaceCyclerMinScale[] = 2363 "workspace_cycler.min_scale"; 2364const char kWorkspaceCyclerMaxScale[] = 2365 "workspace_cycler.max_scale"; 2366const char kWorkspaceCyclerMinBrightness[] = 2367 "workspace_cycler.min_brightness"; 2368const char kWorkspaceCyclerBackgroundOpacity[] = 2369 "workspace_cycler.background_opacity"; 2370const char kWorkspaceCyclerDesktopWorkspaceBrightness[] = 2371 "workspace_cycler.desktop_workspace_brightness"; 2372const char kWorkspaceCyclerDistanceToInitiateCycling[] = 2373 "workspace_cycler.distance_to_initiate_cycling"; 2374const char kWorkspaceCyclerScrollDistanceToCycleToNextWorkspace[] = 2375 "workspace_cycler.scroll_distance_to_cycle_to_next_workspace"; 2376const char kWorkspaceCyclerCyclerStepAnimationDurationRatio[] = 2377 "workspace_cycler.cycler_step_animation_duration_ratio"; 2378const char kWorkspaceCyclerStartCyclerAnimationDuration[] = 2379 "workspace_cycler.start_cycler_animation_duration"; 2380const char kWorkspaceCyclerStopCyclerAnimationDuration[] = 2381 "workspace_cycler.stop_cycler_animation_duration"; 2382#endif 2383 2384#if defined(USE_AURA) 2385// Tuning settings for gestures. 2386const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; 2387const char kLongPressTimeInSeconds[] = 2388 "gesture.long_press_time_in_seconds"; 2389const char kMaxDistanceBetweenTapsForDoubleTap[] = 2390 "gesture.max_distance_between_taps_for_double_tap"; 2391const char kMaxDistanceForTwoFingerTapInPixels[] = 2392 "gesture.max_distance_for_two_finger_tap_in_pixels"; 2393const char kMaxSecondsBetweenDoubleClick[] = 2394 "gesture.max_seconds_between_double_click"; 2395const char kMaxSeparationForGestureTouchesInPixels[] = 2396 "gesture.max_separation_for_gesture_touches_in_pixels"; 2397const char kMaxSwipeDeviationRatio[] = 2398 "gesture.max_swipe_deviation_ratio"; 2399const char kMaxTouchDownDurationInSecondsForClick[] = 2400 "gesture.max_touch_down_duration_in_seconds_for_click"; 2401const char kMaxTouchMoveInPixelsForClick[] = 2402 "gesture.max_touch_move_in_pixels_for_click"; 2403const char kMinDistanceForPinchScrollInPixels[] = 2404 "gesture.min_distance_for_pinch_scroll_in_pixels"; 2405const char kMinFlickSpeedSquared[] = 2406 "gesture.min_flick_speed_squared"; 2407const char kMinPinchUpdateDistanceInPixels[] = 2408 "gesture.min_pinch_update_distance_in_pixels"; 2409const char kMinRailBreakVelocity[] = 2410 "gesture.min_rail_break_velocity"; 2411const char kMinScrollDeltaSquared[] = 2412 "gesture.min_scroll_delta_squared"; 2413const char kMinSwipeSpeed[] = 2414 "gesture.min_swipe_speed"; 2415const char kMinTouchDownDurationInSecondsForClick[] = 2416 "gesture.min_touch_down_duration_in_seconds_for_click"; 2417const char kPointsBufferedForVelocity[] = 2418 "gesture.points_buffered_for_velocity"; 2419const char kRailBreakProportion[] = 2420 "gesture.rail_break_proportion"; 2421const char kRailStartProportion[] = 2422 "gesture.rail_start_proportion"; 2423const char kScrollPredictionSeconds[] = 2424 "gesture.scroll_prediction_seconds"; 2425const char kSemiLongPressTimeInSeconds[] = 2426 "gesture.semi_long_press_time_in_seconds"; 2427const char kTabScrubActivationDelayInMS[] = 2428 "gesture.tab_scrub_activation_delay_in_ms"; 2429const char kFlingAccelerationCurveCoefficient0[] = 2430 "gesture.fling_acceleration_curve_coefficient_0"; 2431const char kFlingAccelerationCurveCoefficient1[] = 2432 "gesture.fling_acceleration_curve_coefficient_1"; 2433const char kFlingAccelerationCurveCoefficient2[] = 2434 "gesture.fling_acceleration_curve_coefficient_2"; 2435const char kFlingAccelerationCurveCoefficient3[] = 2436 "gesture.fling_acceleration_curve_coefficient_3"; 2437const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha"; 2438const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta"; 2439const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma"; 2440const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha"; 2441const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta"; 2442const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma"; 2443const char kFlingMaxCancelToDownTimeInMs[] = 2444 "gesture.fling_max_cancel_to_down_time_in_ms"; 2445const char kFlingMaxTapGapTimeInMs[] = 2446 "gesture.fling_max_tap_gap_time_in_ms"; 2447const char kOverscrollHorizontalThresholdComplete[] = 2448 "overscroll.horizontal_threshold_complete"; 2449const char kOverscrollVerticalThresholdComplete[] = 2450 "overscroll.vertical_threshold_complete"; 2451const char kOverscrollMinimumThresholdStart[] = 2452 "overscroll.minimum_threshold_start"; 2453const char kOverscrollHorizontalResistThreshold[] = 2454 "overscroll.horizontal_resist_threshold"; 2455const char kOverscrollVerticalResistThreshold[] = 2456 "overscroll.vertical_resist_threshold"; 2457#endif 2458 2459// Indicates whether the browser is in managed mode. 2460const char kInManagedMode[] = "managed_mode"; 2461 2462// Counts how many more times the 'profile on a network share' warning should be 2463// shown to the user before the next silence period. 2464const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; 2465// Tracks the time of the last shown warning. Used to reset 2466// |network_profile.warnings_left| after a silence period. 2467const char kNetworkProfileLastWarningTime[] = 2468 "network_profile.last_warning_time"; 2469 2470// 64-bit serialization of the time last policy usage statistics were collected 2471// by UMA_HISTOGRAM_ENUMERATION. 2472const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; 2473 2474#if defined(OS_CHROMEOS) 2475// The RLZ brand code, if enabled. 2476const char kRLZBrand[] = "rlz.brand"; 2477// Whether RLZ pings are disabled. 2478const char kRLZDisabled[] = "rlz.disabled"; 2479#endif 2480 2481// The directory in user data dir that contains the profile to be used with the 2482// app launcher. 2483extern const char kAppListProfile[] = "app_list.profile"; 2484 2485// Whether to show the app list on a browser relaunch. Used when switching out 2486// of metro mode after a user gesture requests showing the app list. 2487const char kRestartWithAppList[] = "app_list.show_on_relaunch"; 2488 2489// The number of times the app launcher was launched since last ping and 2490// the time of the last ping. 2491extern const char kAppListLaunchCount[] = "app_list.launch_count"; 2492extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; 2493 2494// The number of times the an app was launched from the app launcher since last 2495// ping and the time of the last ping. 2496extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count"; 2497extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping"; 2498 2499// How often the bubble has been shown. 2500extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; 2501 2502// A string pref for storing the salt used to compute the pepper device ID. 2503const char kDRMSalt[] = "settings.privacy.drm_salt"; 2504// A boolean pref that enables the (private) pepper GetDeviceID() call. 2505const char kEnableDRM[] = "settings.privacy.drm_enabled"; 2506 2507} // namespace prefs 2508