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