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