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