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