pref_names.cc revision 1e9bf3e0803691d0a228da41fc608347b6db4340
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.startup_urls"; 86 87// Old startup url pref name for kURLsToRestoreOnStartup. 88const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup"; 89 90// Serialized migration time of kURLsToRestoreOnStartup (see 91// base::Time::ToInternalValue for details on serialization format). 92const char kRestoreStartupURLsMigrationTime[] = 93 "session.startup_urls_migration_time"; 94 95// If set to true profiles are created in ephemeral mode and do not store their 96// data in the profile folder on disk but only in memory. 97const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 98 99// The application locale. 100// For OS_CHROMEOS we maintain kApplicationLocale property in both local state 101// and user's profile. Global property determines locale of login screen, 102// while user's profile determines his personal locale preference. 103const char kApplicationLocale[] = "intl.app_locale"; 104#if defined(OS_CHROMEOS) 105// Locale preference of device' owner. ChromeOS device appears in this locale 106// after startup/wakeup/signout. 107const char kOwnerLocale[] = "intl.owner_locale"; 108// Locale accepted by user. Non-syncable. 109// Used to determine whether we need to show Locale Change notification. 110const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted"; 111// Non-syncable item. 112// It is used in two distinct ways. 113// (1) Used for two-step initialization of locale in ChromeOS 114// because synchronization of kApplicationLocale is not instant. 115// (2) Used to detect locale change. Locale change is detected by 116// LocaleChangeGuard in case values of kApplicationLocaleBackup and 117// kApplicationLocale are both non-empty and differ. 118// Following is a table showing how state of those prefs may change upon 119// common real-life use cases: 120// AppLocale Backup Accepted 121// Initial login - A - 122// Sync B A - 123// Accept (B) B B B 124// ----------------------------------------------------------- 125// Initial login - A - 126// No sync and second login A A - 127// Change options B B - 128// ----------------------------------------------------------- 129// Initial login - A - 130// Sync A A - 131// Locale changed on login screen A C - 132// Accept (A) A A A 133// ----------------------------------------------------------- 134// Initial login - A - 135// Sync B A - 136// Revert A A - 137const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; 138#endif 139 140// The default character encoding to assume for a web page in the 141// absence of MIME charset specification 142const char kDefaultCharset[] = "intl.charset_default"; 143 144// The value to use for Accept-Languages HTTP header when making an HTTP 145// request. 146const char kAcceptLanguages[] = "intl.accept_languages"; 147 148// The value to use for showing locale-dependent encoding list for different 149// locale, it's initialized from the corresponding string resource that is 150// stored in non-translatable part of the resource bundle. 151const char kStaticEncodings[] = "intl.static_encodings"; 152 153// If these change, the corresponding enums in the extension API 154// experimental.fontSettings.json must also change. 155const char* const kWebKitScriptsForFontFamilyMaps[] = { 156#define EXPAND_SCRIPT_FONT(x, script_name) script_name , 157#include "chrome/common/pref_font_script_names-inl.h" 158ALL_FONT_SCRIPTS("unused param") 159#undef EXPAND_SCRIPT_FONT 160}; 161 162const size_t kWebKitScriptsForFontFamilyMapsLength = 163 arraysize(kWebKitScriptsForFontFamilyMaps); 164 165// Strings for WebKit font family preferences. If these change, the pref prefix 166// in pref_names_util.cc and the pref format in font_settings_api.cc must also 167// change. 168const char kWebKitStandardFontFamilyMap[] = 169 WEBKIT_WEBPREFS_FONTS_STANDARD; 170const char kWebKitFixedFontFamilyMap[] = 171 WEBKIT_WEBPREFS_FONTS_FIXED; 172const char kWebKitSerifFontFamilyMap[] = 173 WEBKIT_WEBPREFS_FONTS_SERIF; 174const char kWebKitSansSerifFontFamilyMap[] = 175 WEBKIT_WEBPREFS_FONTS_SANSERIF; 176const char kWebKitCursiveFontFamilyMap[] = 177 WEBKIT_WEBPREFS_FONTS_CURSIVE; 178const char kWebKitFantasyFontFamilyMap[] = 179 WEBKIT_WEBPREFS_FONTS_FANTASY; 180const char kWebKitPictographFontFamilyMap[] = 181 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH; 182const char kWebKitStandardFontFamilyArabic[] = 183 "webkit.webprefs.fonts.standard.Arab"; 184const char kWebKitFixedFontFamilyArabic[] = 185 "webkit.webprefs.fonts.fixed.Arab"; 186const char kWebKitSerifFontFamilyArabic[] = 187 "webkit.webprefs.fonts.serif.Arab"; 188const char kWebKitSansSerifFontFamilyArabic[] = 189 "webkit.webprefs.fonts.sansserif.Arab"; 190const char kWebKitStandardFontFamilyCyrillic[] = 191 "webkit.webprefs.fonts.standard.Cyrl"; 192const char kWebKitFixedFontFamilyCyrillic[] = 193 "webkit.webprefs.fonts.fixed.Cyrl"; 194const char kWebKitSerifFontFamilyCyrillic[] = 195 "webkit.webprefs.fonts.serif.Cyrl"; 196const char kWebKitSansSerifFontFamilyCyrillic[] = 197 "webkit.webprefs.fonts.sansserif.Cyrl"; 198const char kWebKitStandardFontFamilyGreek[] = 199 "webkit.webprefs.fonts.standard.Grek"; 200const char kWebKitFixedFontFamilyGreek[] = 201 "webkit.webprefs.fonts.fixed.Grek"; 202const char kWebKitSerifFontFamilyGreek[] = 203 "webkit.webprefs.fonts.serif.Grek"; 204const char kWebKitSansSerifFontFamilyGreek[] = 205 "webkit.webprefs.fonts.sansserif.Grek"; 206const char kWebKitStandardFontFamilyJapanese[] = 207 "webkit.webprefs.fonts.standard.Jpan"; 208const char kWebKitFixedFontFamilyJapanese[] = 209 "webkit.webprefs.fonts.fixed.Jpan"; 210const char kWebKitSerifFontFamilyJapanese[] = 211 "webkit.webprefs.fonts.serif.Jpan"; 212const char kWebKitSansSerifFontFamilyJapanese[] = 213 "webkit.webprefs.fonts.sansserif.Jpan"; 214const char kWebKitStandardFontFamilyKorean[] = 215 "webkit.webprefs.fonts.standard.Hang"; 216const char kWebKitFixedFontFamilyKorean[] = 217 "webkit.webprefs.fonts.fixed.Hang"; 218const char kWebKitSerifFontFamilyKorean[] = 219 "webkit.webprefs.fonts.serif.Hang"; 220const char kWebKitSansSerifFontFamilyKorean[] = 221 "webkit.webprefs.fonts.sansserif.Hang"; 222const char kWebKitCursiveFontFamilyKorean[] = 223 "webkit.webprefs.fonts.cursive.Hang"; 224const char kWebKitStandardFontFamilySimplifiedHan[] = 225 "webkit.webprefs.fonts.standard.Hans"; 226const char kWebKitFixedFontFamilySimplifiedHan[] = 227 "webkit.webprefs.fonts.fixed.Hans"; 228const char kWebKitSerifFontFamilySimplifiedHan[] = 229 "webkit.webprefs.fonts.serif.Hans"; 230const char kWebKitSansSerifFontFamilySimplifiedHan[] = 231 "webkit.webprefs.fonts.sansserif.Hans"; 232const char kWebKitStandardFontFamilyTraditionalHan[] = 233 "webkit.webprefs.fonts.standard.Hant"; 234const char kWebKitFixedFontFamilyTraditionalHan[] = 235 "webkit.webprefs.fonts.fixed.Hant"; 236const char kWebKitSerifFontFamilyTraditionalHan[] = 237 "webkit.webprefs.fonts.serif.Hant"; 238const char kWebKitSansSerifFontFamilyTraditionalHan[] = 239 "webkit.webprefs.fonts.sansserif.Hant"; 240 241// WebKit preferences. 242const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; 243const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; 244const char kWebKitShrinksStandaloneImagesToFit[] = 245 "webkit.webprefs.shrinks_standalone_images_to_fit"; 246const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; 247const char kWebKitUsesUniversalDetector[] = 248 "webkit.webprefs.uses_universal_detector"; 249const char kWebKitTextAreasAreResizable[] = 250 "webkit.webprefs.text_areas_are_resizable"; 251const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; 252const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; 253const char kWebKitAllowDisplayingInsecureContent[] = 254 "webkit.webprefs.allow_displaying_insecure_content"; 255const char kWebKitAllowRunningInsecureContent[] = 256 "webkit.webprefs.allow_running_insecure_content"; 257#if defined(OS_ANDROID) 258const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor"; 259const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom"; 260const char kWebKitPasswordEchoEnabled[] = 261 "webkit.webprefs.password_echo_enabled"; 262#endif 263 264const char kWebKitCommonScript[] = "Zyyy"; 265const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; 266const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; 267const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; 268const char kWebKitSansSerifFontFamily[] = 269 "webkit.webprefs.fonts.sansserif.Zyyy"; 270const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; 271const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; 272const char kWebKitPictographFontFamily[] = 273 "webkit.webprefs.fonts.pictograph.Zyyy"; 274const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; 275const char kWebKitDefaultFixedFontSize[] = 276 "webkit.webprefs.default_fixed_font_size"; 277const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; 278const char kWebKitMinimumLogicalFontSize[] = 279 "webkit.webprefs.minimum_logical_font_size"; 280const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; 281const char kWebKitJavascriptCanOpenWindowsAutomatically[] = 282 "webkit.webprefs.javascript_can_open_windows_automatically"; 283const char kWebKitLoadsImagesAutomatically[] = 284 "webkit.webprefs.loads_images_automatically"; 285const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; 286 287// Boolean which specifies whether the bookmark bar is visible on all tabs. 288const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs"; 289 290// Boolean which specifies whether the apps shortcut is visible on the bookmark 291// bar. 292const char kShowAppsShortcutInBookmarkBar[] = "bookmark_bar.show_apps_shortcut"; 293 294// Boolean which specifies the ids of the bookmark nodes that are expanded in 295// the bookmark editor. 296const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes"; 297 298// Boolean controlling whether password generation is enabled (will allow users 299// to generated passwords on account creation pages). 300const char kPasswordGenerationEnabled[] = "password_generation.enabled"; 301 302// Boolean that is true if the password manager is on (will record new 303// passwords and fill in known passwords). 304const char kPasswordManagerEnabled[] = "profile.password_manager_enabled"; 305 306// Boolean controlling whether the password manager allows to retrieve passwords 307// in clear text. 308const char kPasswordManagerAllowShowPasswords[] = 309 "profile.password_manager_allow_show_passwords"; 310 311// A list of numbers. Each number corresponds to one of the domains monitored 312// for save-password-prompt breakages. That number is a random index into 313// the array of groups containing the monitored domain. That group should be 314// used for reporting that domain. 315const char kPasswordManagerGroupsForDomains[] = 316 "profile.password_manager_groups_for_domains"; 317 318// Booleans identifying whether normal and reverse auto-logins are enabled. 319const char kAutologinEnabled[] = "autologin.enabled"; 320const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; 321 322// List to keep track of emails for which the user has rejected one-click 323// sign-in. 324const char kReverseAutologinRejectedEmailList[] = 325 "reverse_autologin.rejected_email_list"; 326 327// Boolean that is true when SafeBrowsing is enabled. 328const char kSafeBrowsingEnabled[] = "safebrowsing.enabled"; 329 330// Boolean that is true when SafeBrowsing Malware Report is enabled. 331const char kSafeBrowsingReportingEnabled[] = 332 "safebrowsing.reporting_enabled"; 333 334// Boolean that is true when the SafeBrowsing interstitial should not allow 335// users to proceed anyway. 336const char kSafeBrowsingProceedAnywayDisabled[] = 337 "safebrowsing.proceed_anyway_disabled"; 338 339// Enum that specifies whether Incognito mode is: 340// 0 - Enabled. Default behaviour. Default mode is available on demand. 341// 1 - Disabled. Used cannot browse pages in Incognito mode. 342// 2 - Forced. All pages/sessions are forced into Incognito. 343const char kIncognitoModeAvailability[] = "incognito.mode_availability"; 344 345// Boolean that is true when Suggest support is enabled. 346const char kSearchSuggestEnabled[] = "search.suggest_enabled"; 347 348// Boolean that indicates whether the browser should put up a confirmation 349// window when the user is attempting to quit. Mac only. 350const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 351 352// OBSOLETE. Enum that specifies whether to enforce a third-party cookie 353// blocking policy. This has been superseded by kDefaultContentSettings + 354// kBlockThirdPartyCookies. 355// 0 - allow all cookies. 356// 1 - block third-party cookies 357// 2 - block all cookies 358const char kCookieBehavior[] = "security.cookie_behavior"; 359 360// The GUID of the synced default search provider. Note that this acts like a 361// pointer to which synced search engine should be the default, rather than the 362// prefs below which describe the locally saved default search provider details 363// (and are not synced). This is ignored in the case of the default search 364// provider being managed by policy. 365const char kSyncedDefaultSearchProviderGUID[] = 366 "default_search_provider.synced_guid"; 367 368// Whether having a default search provider is enabled. 369const char kDefaultSearchProviderEnabled[] = 370 "default_search_provider.enabled"; 371 372// The URL (as understood by TemplateURLRef) the default search provider uses 373// for searches. 374const char kDefaultSearchProviderSearchURL[] = 375 "default_search_provider.search_url"; 376 377// The URL (as understood by TemplateURLRef) the default search provider uses 378// for suggestions. 379const char kDefaultSearchProviderSuggestURL[] = 380 "default_search_provider.suggest_url"; 381 382// The URL (as understood by TemplateURLRef) the default search provider uses 383// for instant results. 384const char kDefaultSearchProviderInstantURL[] = 385 "default_search_provider.instant_url"; 386 387// The URL (as understood by TemplateURLRef) the default search provider uses 388// for image search results. 389const char kDefaultSearchProviderImageURL[] = 390 "default_search_provider.image_url"; 391 392// The URL (as understood by TemplateURLRef) the default search provider uses 393// for the new tab page. 394const char kDefaultSearchProviderNewTabURL[] = 395 "default_search_provider.new_tab_url"; 396 397// The string of post parameters (as understood by TemplateURLRef) the default 398// search provider uses for searches by using POST. 399const char kDefaultSearchProviderSearchURLPostParams[] = 400 "default_search_provider.search_url_post_params"; 401 402// The string of post parameters (as understood by TemplateURLRef) the default 403// search provider uses for suggestions by using POST. 404const char kDefaultSearchProviderSuggestURLPostParams[] = 405 "default_search_provider.suggest_url_post_params"; 406 407// The string of post parameters (as understood by TemplateURLRef) the default 408// search provider uses for instant results by using POST. 409const char kDefaultSearchProviderInstantURLPostParams[] = 410 "default_search_provider.instant_url_post_params"; 411 412// The string of post parameters (as understood by TemplateURLRef) the default 413// search provider uses for image search results by using POST. 414const char kDefaultSearchProviderImageURLPostParams[] = 415 "default_search_provider.image_url_post_params"; 416 417// The Favicon URL (as understood by TemplateURLRef) of the default search 418// provider. 419const char kDefaultSearchProviderIconURL[] = 420 "default_search_provider.icon_url"; 421 422// The input encoding (as understood by TemplateURLRef) supported by the default 423// search provider. The various encodings are separated by ';' 424const char kDefaultSearchProviderEncodings[] = 425 "default_search_provider.encodings"; 426 427// The name of the default search provider. 428const char kDefaultSearchProviderName[] = "default_search_provider.name"; 429 430// The keyword of the default search provider. 431const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword"; 432 433// The id of the default search provider. 434const char kDefaultSearchProviderID[] = "default_search_provider.id"; 435 436// The prepopulate id of the default search provider. 437const char kDefaultSearchProviderPrepopulateID[] = 438 "default_search_provider.prepopulate_id"; 439 440// The alternate urls of the default search provider. 441const char kDefaultSearchProviderAlternateURLs[] = 442 "default_search_provider.alternate_urls"; 443 444// Search term placement query parameter for the default search provider. 445const char kDefaultSearchProviderSearchTermsReplacementKey[] = 446 "default_search_provider.search_terms_replacement_key"; 447 448// The dictionary key used when the default search providers are given 449// in the preferences file. Normally they are copied from the master 450// preferences file. 451const char kSearchProviderOverrides[] = "search_provider_overrides"; 452// The format version for the dictionary above. 453const char kSearchProviderOverridesVersion[] = 454 "search_provider_overrides_version"; 455 456// Boolean which specifies whether we should ask the user if we should download 457// a file (true) or just download it automatically. 458const char kPromptForDownload[] = "download.prompt_for_download"; 459 460// A boolean pref set to true if we're using Link Doctor error pages. 461const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; 462 463// OBSOLETE: new pref now stored with user prefs instead of profile, as 464// kDnsPrefetchingStartupList. 465const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList"; 466 467// An adaptively identified list of domain names to be pre-fetched during the 468// next startup, based on what was actually needed during this startup. 469const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; 470 471// OBSOLETE: new pref now stored with user prefs instead of profile, as 472// kDnsPrefetchingHostReferralList. 473const char kDnsHostReferralList[] = "HostReferralList"; 474 475// A list of host names used to fetch web pages, and their commonly used 476// sub-resource hostnames (and expected latency benefits from pre-resolving, or 477// preconnecting to, such sub-resource hostnames). 478// This list is adaptively grown and pruned. 479const char kDnsPrefetchingHostReferralList[] = 480 "dns_prefetching.host_referral_list"; 481 482// Disables the SPDY protocol. 483const char kDisableSpdy[] = "spdy.disabled"; 484 485// Prefs for persisting HttpServerProperties. 486const char kHttpServerProperties[] = "net.http_server_properties"; 487 488// Prefs for server names that support SPDY protocol. 489const char kSpdyServers[] = "spdy.servers"; 490 491// Prefs for servers that support Alternate-Protocol. 492const char kAlternateProtocolServers[] = "spdy.alternate_protocol"; 493 494// Disables the listed protocol schemes. 495const char kDisabledSchemes[] = "protocol.disabled_schemes"; 496 497// Blocks access to the listed host patterns. 498const char kUrlBlacklist[] = "policy.url_blacklist"; 499 500// Allows access to the listed host patterns, as exceptions to the blacklist. 501const char kUrlWhitelist[] = "policy.url_whitelist"; 502 503#if defined(OS_ANDROID) 504// Last time that a check for cloud policy management was done. This time is 505// recorded on Android so that retries aren't attempted on every startup. 506// Instead the cloud policy registration is retried at least 1 or 3 days later. 507const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; 508 509// A list of bookmarks to include in a Managed Bookmarks root node. Each 510// list item is a dictionary containig a "name" and an "url" entry, detailing 511// the bookmark name and target URL respectively. 512const char kManagedBookmarks[] = "policy.managed_bookmarks"; 513#endif 514 515// Prefix URL for the experimental Instant ZeroSuggest provider. 516const char kInstantUIZeroSuggestUrlPrefix[] = 517 "instant_ui.zero_suggest_url_prefix"; 518 519// Used to migrate preferences from local state to user preferences to 520// enable multiple profiles. 521// BITMASK with possible values (see browser_prefs.cc for enum): 522// 0: No preferences migrated. 523// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList 524// 2: Browser window preferences migrated: kDevToolsSplitLocation and 525// kBrowserWindowPlacement 526const char kMultipleProfilePrefMigration[] = 527 "local_state.multiple_profile_prefs_version"; 528 529// A boolean pref set to true if prediction of network actions is allowed. 530// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering 531// of web pages. 532// NOTE: The "dns_prefetching.enabled" value is used so that historical user 533// preferences are not lost. 534const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 535 536// An integer representing the state of the default apps installation process. 537// This value is persisted in the profile's user preferences because the process 538// is async, and the user may have stopped chrome in the middle. The next time 539// the profile is opened, the process will continue from where it left off. 540// 541// See possible values in external_provider_impl.cc. 542const char kDefaultAppsInstallState[] = "default_apps_install_state"; 543 544// A boolean pref set to true if the Chrome Web Store icons should be hidden 545// from the New Tab Page and app launcher. 546const char kHideWebStoreIcon[] = "hide_web_store_icon"; 547 548#if defined(OS_CHROMEOS) 549// A dictionary pref to hold the mute setting for all the currently known 550// audio devices. 551const char kAudioDevicesMute[] = "settings.audio.devices.mute"; 552 553// A dictionary pref storing the volume settings for all the currently known 554// audio devices. 555const char kAudioDevicesVolumePercent[] = 556 "settings.audio.devices.volume_percent"; 557 558// An integer pref to initially mute volume if 1. This pref is ignored if 559// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore 560// when the policy is lifted the original mute state is restored. This setting 561// is here only for migration purposes now. It is being replaced by the 562// |kAudioDevicesMute| setting. 563const char kAudioMute[] = "settings.audio.mute"; 564 565// A double pref storing the user-requested volume. This setting is here only 566// for migration purposes now. It is being replaced by the 567// |kAudioDevicesVolumePercent| setting. 568const char kAudioVolumePercent[] = "settings.audio.volume_percent"; 569 570// A boolean pref set to true if touchpad tap-to-click is enabled. 571const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click"; 572 573// A boolean pref set to true if touchpad tap-dragging is enabled. 574const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; 575 576// A boolean pref set to true if touchpad three-finger-click is enabled. 577const char kEnableTouchpadThreeFingerClick[] = 578 "settings.touchpad.enable_three_finger_click"; 579 580// A boolean pref set to true if touchpad natural scrolling is enabled. 581const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; 582 583// A boolean pref set to true if primary mouse button is the left button. 584const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right"; 585 586// A integer pref for the touchpad sensitivity. 587const char kMouseSensitivity[] = "settings.mouse.sensitivity2"; 588 589// A integer pref for the touchpad sensitivity. 590const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2"; 591 592// A boolean pref set to true if time should be displayed in 24-hour clock. 593const char kUse24HourClock[] = "settings.clock.use_24hour_clock"; 594 595// A boolean pref to disable Google Drive integration. 596// The pref prefix should remain as "gdata" for backward compatibility. 597const char kDisableDrive[] = "gdata.disabled"; 598 599// A boolean pref to disable Drive over cellular connections. 600// The pref prefix should remain as "gdata" for backward compatibility. 601const char kDisableDriveOverCellular[] = "gdata.cellular.disabled"; 602 603// A boolean pref to disable hosted files on Drive. 604// The pref prefix should remain as "gdata" for backward compatibility. 605const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled"; 606 607// A string pref set to the current input method. 608const char kLanguageCurrentInputMethod[] = 609 "settings.language.current_input_method"; 610 611// A string pref set to the previous input method. 612const char kLanguagePreviousInputMethod[] = 613 "settings.language.previous_input_method"; 614 615// A string pref (comma-separated list) set to the "next engine in menu" 616// hot-key lists. 617const char kLanguageHotkeyNextEngineInMenu[] = 618 "settings.language.hotkey_next_engine_in_menu"; 619 620// A string pref (comma-separated list) set to the "previous engine" 621// hot-key lists. 622const char kLanguageHotkeyPreviousEngine[] = 623 "settings.language.hotkey_previous_engine"; 624 625// A string pref (comma-separated list) set to the preferred language IDs 626// (ex. "en-US,fr,ko"). 627const char kLanguagePreferredLanguages[] = 628 "settings.language.preferred_languages"; 629 630// A string pref (comma-separated list) set to the preloaded (active) input 631// method IDs (ex. "pinyin,mozc"). 632const char kLanguagePreloadEngines[] = "settings.language.preload_engines"; 633 634// A List pref (comma-separated list) set to the extension IMEs to be enabled. 635const char kLanguageEnabledExtensionImes[] = 636 "settings.language.enabled_extension_imes"; 637 638// Integer prefs which determine how we remap modifier keys (e.g. swap Alt and 639// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in 640// src/chrome/browser/chromeos/input_method/xkeyboard.h 641const char kLanguageRemapSearchKeyTo[] = 642 // Note: we no longer use XKB for remapping these keys, but we can't change 643 // the pref names since the names are already synced with the cloud. 644 "settings.language.xkb_remap_search_key_to"; 645const char kLanguageRemapControlKeyTo[] = 646 "settings.language.xkb_remap_control_key_to"; 647const char kLanguageRemapAltKeyTo[] = 648 "settings.language.xkb_remap_alt_key_to"; 649const char kLanguageRemapCapsLockKeyTo[] = 650 "settings.language.remap_caps_lock_key_to"; 651const char kLanguageRemapDiamondKeyTo[] = 652 "settings.language.remap_diamond_key_to"; 653 654// A boolean pref that causes top-row keys to be interpreted as function keys 655// instead of as media keys. 656const char kLanguageSendFunctionKeys[] = 657 "settings.language.send_function_keys"; 658 659// A boolean pref which determines whether key repeat is enabled. 660const char kLanguageXkbAutoRepeatEnabled[] = 661 "settings.language.xkb_auto_repeat_enabled_r2"; 662// A integer pref which determines key repeat delay (in ms). 663const char kLanguageXkbAutoRepeatDelay[] = 664 "settings.language.xkb_auto_repeat_delay_r2"; 665// A integer pref which determines key repeat interval (in ms). 666const char kLanguageXkbAutoRepeatInterval[] = 667 "settings.language.xkb_auto_repeat_interval_r2"; 668// "_r2" suffixes are added to the three prefs above when we change the 669// preferences not user-configurable, not to sync them with cloud. 670 671// A boolean pref which determines whether the large cursor feature is enabled. 672const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled"; 673// A boolean pref which determines whether the sticky keys feature is enabled. 674const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled"; 675// A boolean pref which determines whether spoken feedback is enabled. 676const char kSpokenFeedbackEnabled[] = "settings.accessibility"; 677// A boolean pref which determines whether high conrast is enabled. 678const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled"; 679// A boolean pref which determines whether screen magnifier is enabled. 680const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier"; 681// A integer pref which determines what type of screen magnifier is enabled. 682// Note that: 'screen_magnifier_type' had been used as string pref. Hence, 683// we are using another name pref here. 684const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2"; 685// A double pref which determines a zooming scale of the screen magnifier. 686const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale"; 687// A boolean pref which determines whether virtual keyboard is enabled. 688// TODO(hashimoto): Remove this pref. 689const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard"; 690// A boolean pref which determines whether autoclick is enabled. 691const char kAutoclickEnabled[] = "settings.a11y.autoclick"; 692// An integer pref which determines time in ms between when the mouse cursor 693// stops and when an autoclick is triggered. 694const char kAutoclickDelayMs[] = "settings.a11y.autoclick_delay_ms"; 695// A boolean pref which determines whether the accessibility menu shows 696// regardless of the state of a11y features. 697const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; 698 699// A boolean pref which turns on Advanced Filesystem 700// (USB support, SD card, etc). 701const char kLabsAdvancedFilesystemEnabled[] = 702 "settings.labs.advanced_filesystem"; 703 704// A boolean pref which turns on the mediaplayer. 705const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer"; 706 707// A boolean pref that turns on screen locker. 708const char kEnableScreenLock[] = "settings.enable_screen_lock"; 709 710// A boolean pref of whether to show mobile plan notifications. 711const char kShowPlanNotifications[] = 712 "settings.internet.mobile.show_plan_notifications"; 713 714// A boolean pref of whether to show 3G promo notification. 715const char kShow3gPromoNotification[] = 716 "settings.internet.mobile.show_3g_promo_notification"; 717 718// A string pref that contains version where "What's new" promo was shown. 719const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version"; 720 721// A boolean pref that controls whether proxy settings from shared network 722// settings (accordingly from device policy) are applied or ignored. 723const char kUseSharedProxies[] = "settings.use_shared_proxies"; 724 725// Power state of the current displays from the last run. 726const char kDisplayPowerState[] = "settings.display.power_state"; 727// A dictionary pref that stores per display preferences. 728const char kDisplayProperties[] = "settings.display.properties"; 729 730// A dictionary pref that specifies per-display layout/offset information. 731// Its key is the ID of the display and its value is a dictionary for the 732// layout/offset information. 733const char kSecondaryDisplays[] = "settings.display.secondary_displays"; 734 735// A boolean pref indicating whether user activity has been observed in the 736// current session already. The pref is used to restore information about user 737// activity after browser crashes. 738const char kSessionUserActivitySeen[] = "session.user_activity_seen"; 739 740// A preference to keep track of the session start time. If the session length 741// limit is configured to start running after initial user activity has been 742// observed, the pref is set after the first user activity in a session. 743// Otherwise, it is set immediately after session start. The pref is used to 744// restore the session start time after browser crashes. The time is expressed 745// as the serialization obtained from base::TimeTicks::ToInternalValue(). 746const char kSessionStartTime[] = "session.start_time"; 747 748// Holds the maximum session time in milliseconds. If this pref is set, the 749// user is logged out when the maximum session time is reached. The user is 750// informed about the remaining time by a countdown timer shown in the ash 751// system tray. 752const char kSessionLengthLimit[] = "session.length_limit"; 753 754// Whether the session length limit should start running only after the first 755// user activity has been observed in a session. 756const char kSessionWaitForInitialUserActivity[] = 757 "session.wait_for_initial_user_activity"; 758 759// Inactivity time in milliseconds while the system is on AC power before 760// the screen should be dimmed, turned off, or locked, before an 761// IdleActionImminent D-Bus signal should be sent, or before 762// kPowerAcIdleAction should be performed. 0 disables the delay (N/A for 763// kPowerAcIdleDelayMs). 764const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; 765const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; 766const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; 767const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; 768const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; 769 770// Similar delays while the system is on battery power. 771const char kPowerBatteryScreenDimDelayMs[] = 772 "power.battery_screen_dim_delay_ms"; 773const char kPowerBatteryScreenOffDelayMs[] = 774 "power.battery_screen_off_delay_ms"; 775const char kPowerBatteryScreenLockDelayMs[] = 776 "power.battery_screen_lock_delay_ms"; 777const char kPowerBatteryIdleWarningDelayMs[] = 778 "power.battery_idle_warning_delay_ms"; 779const char kPowerBatteryIdleDelayMs[] = 780 "power.battery_idle_delay_ms"; 781 782// Action that should be performed when the idle delay is reached while the 783// system is on AC power or battery power. 784// Values are from the chromeos::PowerPolicyController::Action enum. 785const char kPowerAcIdleAction[] = "power.ac_idle_action"; 786const char kPowerBatteryIdleAction[] = "power.battery_idle_action"; 787 788// Action that should be performed when the lid is closed. 789// Values are from the chromeos::PowerPolicyController::Action enum. 790const char kPowerLidClosedAction[] = "power.lid_closed_action"; 791 792// Should audio and video activity be used to disable the above delays? 793const char kPowerUseAudioActivity[] = "power.use_audio_activity"; 794const char kPowerUseVideoActivity[] = "power.use_video_activity"; 795 796// Should extensions be able to use the chrome.power API to override 797// screen-related power management (including locking)? 798const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; 799 800// Amount by which the screen-dim delay should be scaled while the system 801// is in presentation mode. Values are limited to a minimum of 1.0. 802const char kPowerPresentationScreenDimDelayFactor[] = 803 "power.presentation_screen_dim_delay_factor"; 804 805// Amount by which the screen-dim delay should be scaled when user activity is 806// observed while the screen is dimmed or soon after the screen has been turned 807// off. Values are limited to a minimum of 1.0. 808const char kPowerUserActivityScreenDimDelayFactor[] = 809 "power.user_activity_screen_dim_delay_factor"; 810 811// Whether the power management delays should start running only after the first 812// user activity has been observed in a session. 813const char kPowerWaitForInitialUserActivity[] = 814 "power.wait_for_initial_user_activity"; 815 816// The URL from which the Terms of Service can be downloaded. The value is only 817// honored for public accounts. 818const char kTermsOfServiceURL[] = "terms_of_service.url"; 819 820// Indicates that the Profile has made navigations that used a certificate 821// installed by the system administrator. If that is true then the local cache 822// of remote data is tainted (e.g. shared scripts), and future navigations 823// show a warning indicating that the organization may track the browsing 824// session. 825const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once"; 826 827// Indicates whether the remote attestation is enabled for the user. 828const char kAttestationEnabled[] = "attestation.enabled"; 829// The list of extensions allowed to use the platformKeysPrivate API for 830// remote attestation. 831const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist"; 832 833// A boolean pref indicating whether the projection touch HUD is enabled or not. 834const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled"; 835 836// A pref to configure networks. Its value must be a list of 837// NetworkConfigurations according to the OpenNetworkConfiguration 838// specification. 839// Currently, this pref is only used to store the policy. The user's 840// configuration is still stored in Shill. 841const char kOpenNetworkConfiguration[] = "onc"; 842 843// A boolean pref that tracks whether the user has already given consent for 844// enabling remote attestation for content protection. 845const char kRAConsentFirstTime[] = "settings.privacy.ra_consent"; 846// A DictionaryValue pref that tracks domains for which the user has explicitly 847// allowed or denied. 848const char kRAConsentDomains[] = "settings.privacy.ra_consent_domains"; 849// A boolean pref that tracks whether the user indicated they wish to be asked 850// for consent for every site that uses remote attestation. 851const char kRAConsentAlways[] = "settings.privacy.ra_consent_always"; 852 853// A boolean pref recording whether user has dismissed the multiprofile 854// notification. 855const char kMultiProfileNotificationDismissed[] = 856 "settings.multi_profile_notification_dismissed"; 857 858// A string pref that holds string enum values of how the user should behave 859// in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy 860// for more details of the valid values. 861const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior"; 862#endif // defined(OS_CHROMEOS) 863 864// The disabled messages in IPC logging. 865const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 866 867// A boolean pref set to true if a Home button to open the Home pages should be 868// visible on the toolbar. 869const char kShowHomeButton[] = "browser.show_home_button"; 870 871// A string value which saves short list of recently user selected encodings 872// separated with comma punctuation mark. 873const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings"; 874 875// Clear Browsing Data dialog preferences. 876const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history"; 877const char kDeleteDownloadHistory[] = "browser.clear_data.download_history"; 878const char kDeleteCache[] = "browser.clear_data.cache"; 879const char kDeleteCookies[] = "browser.clear_data.cookies"; 880const char kDeletePasswords[] = "browser.clear_data.passwords"; 881const char kDeleteFormData[] = "browser.clear_data.form_data"; 882const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data"; 883const char kDeauthorizeContentLicenses[] = 884 "browser.clear_data.content_licenses"; 885const char kDeleteTimePeriod[] = "browser.clear_data.time_period"; 886const char kLastClearBrowsingDataTime[] = 887 "browser.last_clear_browsing_data_time"; 888 889// Boolean pref to define the default values for using spellchecker. 890const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking"; 891 892// List of names of the enabled labs experiments (see chrome/browser/labs.cc). 893const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments"; 894 895// Boolean pref to define the default values for using auto spell correct. 896const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect"; 897 898// Boolean pref to define the default setting for "block offensive words". 899// The old key value is kept to avoid unnecessary migration code. 900const char kSpeechRecognitionFilterProfanities[] = 901 "browser.speechinput_censor_results"; 902 903// List of speech recognition context names (extensions or websites) for which 904// the tray notification balloon has already been shown. 905const char kSpeechRecognitionTrayNotificationShownContexts[] = 906 "browser.speechinput_tray_notification_shown_contexts"; 907 908// Boolean controlling whether history saving is disabled. 909const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled"; 910 911// Boolean controlling whether deleting browsing and download history is 912// permitted. 913const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled"; 914 915// Boolean controlling whether SafeSearch is mandatory for Google Web Searches. 916const char kForceSafeSearch[] = "settings.force_safesearch"; 917 918#if defined(OS_LINUX) && !defined(OS_CHROMEOS) 919// Linux specific preference on whether we should match the system theme. 920const char kUsesSystemTheme[] = "extensions.theme.use_system"; 921#endif 922const char kCurrentThemePackFilename[] = "extensions.theme.pack"; 923const char kCurrentThemeID[] = "extensions.theme.id"; 924const char kCurrentThemeImages[] = "extensions.theme.images"; 925const char kCurrentThemeColors[] = "extensions.theme.colors"; 926const char kCurrentThemeTints[] = "extensions.theme.tints"; 927const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties"; 928 929// Boolean pref which persists whether the extensions_ui is in developer mode 930// (showing developer packing tools and extensions details) 931const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode"; 932 933// Integer pref that tracks the number of browser actions visible in the browser 934// actions toolbar. 935const char kExtensionToolbarSize[] = "extensions.toolbarsize"; 936 937// A preference that tracks browser action toolbar configuration. This is a list 938// object stored in the Preferences file. The extensions are stored by ID. 939const char kExtensionToolbar[] = "extensions.toolbar"; 940 941// Dictionary pref that tracks which command belongs to which 942// extension + named command pair. 943const char kExtensionCommands[] = "extensions.commands"; 944 945// A list of known disabled extensions IDs. 946const char kExtensionKnownDisabled[] = "extensions.known_disabled"; 947 948// Pref containing the directory for internal plugins as written to the plugins 949// list (below). 950const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory"; 951 952// List pref containing information (dictionaries) on plugins. 953const char kPluginsPluginsList[] = "plugins.plugins_list"; 954 955// List pref containing names of plugins that are disabled by policy. 956const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 957 958// List pref containing exceptions to the list of plugins disabled by policy. 959const char kPluginsDisabledPluginsExceptions[] = 960 "plugins.plugins_disabled_exceptions"; 961 962// List pref containing names of plugins that are enabled by policy. 963const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; 964 965// When bundled NPAPI Flash is removed, if at that point it is enabled while 966// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will 967// want to do so only once. 968const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash"; 969 970// In the early stage of component-updated PPAPI Flash, we did field trials in 971// which it was set to disabled by default. The corresponding settings item may 972// remain in some users' profiles. Currently it affects both the bundled and 973// component-updated PPAPI Flash (since the two share the same enable/disable 974// state). We want to remove this item to get those users to use PPAPI Flash. 975// We will want to do so only once. 976const char kPluginsRemovedOldComponentPepperFlashSettings[] = 977 "plugins.removed_old_component_pepper_flash_settings"; 978 979#if !defined(OS_ANDROID) 980// Whether about:plugins is shown in the details mode or not. 981const char kPluginsShowDetails[] = "plugins.show_details"; 982#endif 983 984// Boolean that indicates whether outdated plugins are allowed or not. 985const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; 986 987// Boolean that indicates whether plugins that require authorization should 988// be always allowed or not. 989const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; 990 991#if defined(ENABLE_PLUGIN_INSTALLATION) 992// Dictionary holding plug-ins metadata. 993const char kPluginsMetadata[] = "plugins.metadata"; 994 995// Last update time of plug-ins resource cache. 996const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update"; 997#endif 998 999// Boolean that indicates whether we should check if we are the default browser 1000// on start-up. 1001const char kCheckDefaultBrowser[] = "browser.check_default_browser"; 1002 1003#if defined(OS_WIN) 1004// By default, setting Chrome as default during first run on Windows 8 will 1005// trigger shutting down the current instance and spawning a new (Metro) 1006// Chrome. This boolean preference supresses this behaviour. 1007const char kSuppressSwitchToMetroModeOnSetDefault[] = 1008 "browser.suppress_switch_to_metro_mode_on_set_default"; 1009#endif 1010 1011// Policy setting whether default browser check should be disabled and default 1012// browser registration should take place. 1013const char kDefaultBrowserSettingEnabled[] = 1014 "browser.default_browser_setting_enabled"; 1015 1016#if defined(OS_MACOSX) 1017// Boolean that indicates whether the application should show the info bar 1018// asking the user to set up automatic updates when Keystone promotion is 1019// required. 1020const char kShowUpdatePromotionInfoBar[] = 1021 "browser.show_update_promotion_info_bar"; 1022#endif 1023 1024// Boolean that is false if we should show window manager decorations. If 1025// true, we draw a custom chrome frame (thicker title bar and blue border). 1026const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; 1027 1028// The preferred position (which corner of screen) for desktop notifications. 1029const char kDesktopNotificationPosition[] = 1030 "browser.desktop_notification_position"; 1031 1032// Dictionary of content settings applied to all hosts by default. 1033const char kDefaultContentSettings[] = "profile.default_content_settings"; 1034 1035// Boolean indicating whether the clear on exit pref was migrated to content 1036// settings yet. 1037const char kContentSettingsClearOnExitMigrated[] = 1038 "profile.content_settings.clear_on_exit_migrated"; 1039 1040// Version of the pattern format used to define content settings. 1041const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; 1042 1043// Patterns for mapping origins to origin related settings. Default settings 1044// will be applied to origins that don't match any of the patterns. The pattern 1045// format used is defined by kContentSettingsVersion. 1046const char kContentSettingsPatternPairs[] = 1047 "profile.content_settings.pattern_pairs"; 1048 1049// Version of the content settings whitelist. 1050const char kContentSettingsDefaultWhitelistVersion[] = 1051 "profile.content_settings.whitelist_version"; 1052 1053#if !defined(OS_ANDROID) 1054// Which plugins have been whitelisted manually by the user. 1055const char kContentSettingsPluginWhitelist[] = 1056 "profile.content_settings.plugin_whitelist"; 1057#endif 1058 1059// Boolean that is true if we should unconditionally block third-party cookies, 1060// regardless of other content settings. 1061const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 1062 1063// Boolean that is true when all locally stored site data (e.g. cookies, local 1064// storage, etc..) should be deleted on exit. 1065const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; 1066 1067// Double that indicates the default zoom level. 1068const char kDefaultZoomLevel[] = "profile.default_zoom_level"; 1069 1070// Dictionary that maps hostnames to zoom levels. Hosts not in this pref will 1071// be displayed at the default zoom level. 1072const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels"; 1073 1074// A dictionary that tracks the default data model to use for each section of 1075// the dialog. 1076const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default"; 1077 1078// Whether a user has ever paid with Wallet via the autofill dialog. 1079const char kAutofillDialogHasPaidWithWallet[] = "autofill.has_paid_with_wallet"; 1080 1081// Whether a user opted out of making purchases with Google Wallet; changed via 1082// the autofill dialog's account chooser and set explicitly on dialog submission 1083// (but not cancel). If this isn't set, the dialog assumes it's the first run. 1084const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet"; 1085 1086// The number of times the dialog has been shown (all time). 1087const char kAutofillDialogShowCount[] = "autofill.show_count"; 1088 1089// Whether a user wants to save data locally in Autofill. 1090const char kAutofillDialogSaveData[] = "autofill.save_data"; 1091 1092// The number of times the generated credit card bubble has been shown. 1093const char kAutofillGeneratedCardBubbleTimesShown[] = 1094 "autofill.generated_card_bubble_times_shown"; 1095 1096// A dictionary that tracks the defaults to be set on the next invocation 1097// of the requestAutocomplete/Autocheckout dialog. 1098const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; 1099 1100// Modifying bookmarks is completely disabled when this is set to false. 1101const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled"; 1102 1103// Boolean that is true when the translate feature is enabled. 1104const char kEnableTranslate[] = "translate.enabled"; 1105 1106#if !defined(OS_ANDROID) 1107const char kPinnedTabs[] = "pinned_tabs"; 1108#endif 1109 1110#if defined(OS_ANDROID) 1111// Boolean that controls the enabled-state of Geolocation in content. 1112const char kGeolocationEnabled[] = "geolocation.enabled"; 1113#endif 1114 1115#if defined(ENABLE_GOOGLE_NOW) 1116// Boolean that is true when Google services can use the user's location. 1117const char kGoogleGeolocationAccessEnabled[] = 1118 "googlegeolocationaccess.enabled"; 1119#endif 1120 1121// The default audio capture device used by the Media content setting. 1122const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; 1123 1124// The default video capture device used by the Media content setting. 1125const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; 1126 1127// Preference to disable 3D APIs (WebGL, Pepper 3D). 1128const char kDisable3DAPIs[] = "disable_3d_apis"; 1129 1130// Whether to enable hyperlink auditing ("<a ping>"). 1131const char kEnableHyperlinkAuditing[] = "enable_a_ping"; 1132 1133// Whether to enable sending referrers. 1134const char kEnableReferrers[] = "enable_referrers"; 1135 1136// Whether to send the DNT header. 1137const char kEnableDoNotTrack[] = "enable_do_not_track"; 1138 1139// Boolean to enable reporting memory info to page. 1140const char kEnableMemoryInfo[] = "enable_memory_info"; 1141 1142// GL_VENDOR string. 1143const char kGLVendorString[] = "gl_vendor_string"; 1144 1145// GL_RENDERER string. 1146const char kGLRendererString[] = "gl_renderer_string"; 1147 1148// GL_VERSION string. 1149const char kGLVersionString[] = "gl_version_string"; 1150 1151// Boolean that specifies whether to import bookmarks from the default browser 1152// on first run. 1153const char kImportBookmarks[] = "import_bookmarks"; 1154 1155// Boolean that specifies whether to import the browsing history from the 1156// default browser on first run. 1157const char kImportHistory[] = "import_history"; 1158 1159// Boolean that specifies whether to import the homepage from the default 1160// browser on first run. 1161const char kImportHomepage[] = "import_home_page"; 1162 1163// Boolean that specifies whether to import the search engine from the default 1164// browser on first run. 1165const char kImportSearchEngine[] = "import_search_engine"; 1166 1167// Boolean that specifies whether to import the saved passwords from the default 1168// browser on first run. 1169const char kImportSavedPasswords[] = "import_saved_passwords"; 1170 1171#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) 1172// The local profile id for this profile. 1173const char kLocalProfileId[] = "profile.local_profile_id"; 1174 1175// Whether passwords in external services (e.g. GNOME Keyring) have been tagged 1176// with the local profile id yet. (Used for migrating to tagged passwords.) 1177const char kPasswordsUseLocalProfileId[] = 1178 "profile.passwords_use_local_profile_id"; 1179#endif 1180 1181// Profile avatar and name 1182const char kProfileAvatarIndex[] = "profile.avatar_index"; 1183const char kProfileName[] = "profile.name"; 1184 1185// Whether the profile is managed. 1186const char kProfileIsManaged[] = "profile.is_managed"; 1187 1188// The managed user ID. 1189const char kManagedUserId[] = "profile.managed_user_id"; 1190 1191// Indicates if we've already shown a notification that high contrast 1192// mode is on, recommending high-contrast extensions and themes. 1193const char kInvertNotificationShown[] = "invert_notification_version_2_shown"; 1194 1195// Boolean controlling whether printing is enabled. 1196const char kPrintingEnabled[] = "printing.enabled"; 1197 1198// Boolean controlling whether print preview is disabled. 1199const char kPrintPreviewDisabled[] = "printing.print_preview_disabled"; 1200 1201// An integer pref specifying the fallback behavior for sites outside of content 1202// packs. One of: 1203// 0: Allow (does nothing) 1204// 1: Warn. 1205// 2: Block. 1206const char kDefaultManagedModeFilteringBehavior[] = 1207 "profile.managed.default_filtering_behavior"; 1208 1209// Whether this user is permitted to create managed users. 1210const char kManagedUserCreationAllowed[] = 1211 "profile.managed_user_creation_allowed"; 1212 1213// List pref containing the users managed by this user. 1214const char kManagedUsers[] = "profile.managed_users"; 1215 1216// List pref containing the extension ids which are not allowed to send 1217// notifications to the message center. 1218const char kMessageCenterDisabledExtensionIds[] = 1219 "message_center.disabled_extension_ids"; 1220 1221// List pref containing the system component ids which are not allowed to send 1222// notifications to the message center. 1223const char kMessageCenterDisabledSystemComponentIds[] = 1224 "message_center.disabled_system_component_ids"; 1225 1226// List pref containing the system component ids which are allowed to send 1227// notifications to the message center. 1228extern const char kMessageCenterEnabledSyncNotifierIds[] = 1229 "message_center.enabled_sync_notifier_ids"; 1230 1231// List pref containing synced notification sending services that are currently 1232// enabled. 1233extern const char kEnabledSyncedNotificationSendingServices[] = 1234 "synced_notification.enabled_sending_services"; 1235 1236// List pref containing which synced notification sending services have already 1237// been turned on once for the user (so we don't turn them on again). 1238extern const char kInitializedSyncedNotificationSendingServices[] = 1239 "synced_notification.initialized_sending_services"; 1240 1241// Boolean pref containing whether this is the first run of the Synced 1242// Notification feature. 1243extern const char kSyncedNotificationFirstRun[] = 1244 "synced_notification.first_run"; 1245 1246// Boolean pref indicating the welcome notification was dismissed by the user. 1247extern const char kWelcomeNotificationDismissed[] = 1248 "message_center.welcome_notification_dismissed"; 1249 1250// Boolean pref indicating the welcome notification was previously popped up. 1251extern const char kWelcomeNotificationPreviouslyPoppedUp[] = 1252 "message_center.welcome_notification_previously_popped_up"; 1253 1254// Dictionary pref that keeps track of per-extension settings. The keys are 1255// extension ids. 1256const char kExtensionsPref[] = "extensions.settings"; 1257 1258// String pref for what version chrome was last time the extension prefs were 1259// loaded. 1260const char kExtensionsLastChromeVersion[] = "extensions.last_chrome_version"; 1261 1262// Boolean pref that determines whether the user can enter fullscreen mode. 1263// Disabling fullscreen mode also makes kiosk mode unavailable on desktop 1264// platforms. 1265extern const char kFullscreenAllowed[] = "fullscreen.allowed"; 1266 1267// Enable notifications for new devices on the local network that can be 1268// registered to the user's account, e.g. Google Cloud Print printers. 1269const char kLocalDiscoveryNotificationsEnabled[] = 1270 "local_discovery.notifications_enabled"; 1271 1272// String that indicates if the Profile Reset prompt has already been shown to 1273// the user. Used both in user preferences and local state, in the latter, it is 1274// actually a dictionary that maps profile keys to before-mentioned strings. 1275const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento"; 1276 1277// *************** LOCAL STATE *************** 1278// These are attached to the machine/installation 1279 1280// A pref to configure networks device-wide. Its value must be a list of 1281// NetworkConfigurations according to the OpenNetworkConfiguration 1282// specification. 1283// Currently, this pref is only used to store the policy. The user's 1284// configuration is still stored in Shill. 1285const char kDeviceOpenNetworkConfiguration[] = "device_onc"; 1286 1287// Directory of the last profile used. 1288const char kProfileLastUsed[] = "profile.last_used"; 1289 1290// List of directories of the profiles last active. 1291const char kProfilesLastActive[] = "profile.last_active_profiles"; 1292 1293// Total number of profiles created for this Chrome build. Used to tag profile 1294// directories. 1295const char kProfilesNumCreated[] = "profile.profiles_created"; 1296 1297// String containing the version of Chrome that the profile was created by. 1298// If profile was created before this feature was added, this pref will default 1299// to "1.0.0.0". 1300const char kProfileCreatedByVersion[] = "profile.created_by_version"; 1301 1302// A map of profile data directory to cached information. This cache can be 1303// used to display information about profiles without actually having to load 1304// them. 1305const char kProfileInfoCache[] = "profile.info_cache"; 1306 1307// Prefs for SSLConfigServicePref. 1308const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled"; 1309const char kCertRevocationCheckingRequiredLocalAnchors[] = 1310 "ssl.rev_checking.required_for_local_anchors"; 1311const char kSSLVersionMin[] = "ssl.version_min"; 1312const char kSSLVersionMax[] = "ssl.version_max"; 1313const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist"; 1314const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled"; 1315const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled"; 1316const char kEnableUnrestrictedSSL3Fallback[] = 1317 "ssl.unrestricted_ssl3_fallback.enabled"; 1318 1319// A boolean pref of the EULA accepted flag. 1320const char kEulaAccepted[] = "EulaAccepted"; 1321 1322// The metrics client GUID, entropy source and session ID. 1323const char kMetricsClientID[] = "user_experience_metrics.client_id"; 1324const char kMetricsSessionID[] = "user_experience_metrics.session_id"; 1325const char kMetricsLowEntropySource[] = 1326 "user_experience_metrics.low_entropy_source"; 1327const char kMetricsPermutedEntropyCache[] = 1328 "user_experience_metrics.permuted_entropy_cache"; 1329 1330// Date/time when the current metrics profile ID was created 1331// (which hopefully corresponds to first run). 1332const char kMetricsClientIDTimestamp[] = 1333 "user_experience_metrics.client_id_timestamp"; 1334 1335// Boolean that specifies whether or not crash reporting and metrics reporting 1336// are sent over the network for analysis. 1337const char kMetricsReportingEnabled[] = 1338 "user_experience_metrics.reporting_enabled"; 1339 1340// Boolean that specifies whether or not crash reports are sent 1341// over the network for analysis. 1342#if defined(OS_ANDROID) 1343const char kCrashReportingEnabled[] = 1344 "user_experience_metrics_crash.reporting_enabled"; 1345#endif 1346 1347// Array of strings that are each UMA logs that were supposed to be sent in the 1348// first minute of a browser session. These logs include things like crash count 1349// info, etc. 1350const char kMetricsInitialLogs[] = 1351 "user_experience_metrics.initial_logs_as_protobufs"; 1352 1353// Array of strings that are each UMA logs that were not sent because the 1354// browser terminated before these accumulated metrics could be sent. These 1355// logs typically include histograms and memory reports, as well as ongoing 1356// user activities. 1357const char kMetricsOngoingLogs[] = 1358 "user_experience_metrics.ongoing_logs_as_protobufs"; 1359 1360// Boolean that is true when bookmark prompt is enabled. 1361const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled"; 1362 1363// Number of times bookmark prompt displayed. 1364const char kBookmarkPromptImpressionCount[] = 1365 "bookmark_prompt_impression_count"; 1366 1367// 64-bit integer serialization of the base::Time from the last successful seed 1368// fetch (i.e. when the Variations server responds with 200 or 304). 1369const char kVariationsLastFetchTime[] = "variations_last_fetch_time"; 1370 1371// String for the restrict parameter to be appended to the variations URL. 1372const char kVariationsRestrictParameter[] = "variations_restrict_parameter"; 1373 1374// String serialized form of variations seed protobuf. 1375const char kVariationsSeed[] = "variations_seed"; 1376 1377// 64-bit integer serialization of the base::Time from the last seed received. 1378const char kVariationsSeedDate[] = "variations_seed_date"; 1379 1380// SHA-1 hash of the serialized variations seed data. 1381const char kVariationsSeedHash[] = "variations_seed_hash"; 1382 1383// An enum value to indicate the execution phase the browser was in. 1384const char kStabilityExecutionPhase[] = 1385 "user_experience_metrics.stability.execution_phase"; 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// Local hash of authentication password, used for off-line authentication 1895// when on-line authentication is not available. 1896const char kGoogleServicesPasswordHash[] = "google.services.password_hash"; 1897 1898#if !defined(OS_ANDROID) 1899// Tracks the number of times that we have shown the sign in promo at startup. 1900const char kSignInPromoStartupCount[] = "sync_promo.startup_count"; 1901 1902// Boolean tracking whether the user chose to skip the sign in promo. 1903const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped"; 1904 1905// Boolean that specifies if the sign in promo is allowed to show on first run. 1906// This preference is specified in the master preference file to suppress the 1907// sign in promo for some installations. 1908const char kSignInPromoShowOnFirstRunAllowed[] = 1909 "sync_promo.show_on_first_run_allowed"; 1910 1911// Boolean that specifies if we should show a bubble in the new tab page. 1912// The bubble is used to confirm that the user is signed into sync. 1913const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; 1914#endif 1915 1916// Time when the user's GAIA info was last updated (represented as an int64). 1917const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time"; 1918 1919// The URL from which the GAIA profile picture was downloaded. This is cached to 1920// prevent the same picture from being downloaded multiple times. 1921const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url"; 1922 1923// Create web application shortcut dialog preferences. 1924const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; 1925const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; 1926const char kWebAppCreateInQuickLaunchBar[] = 1927 "browser.web_app.create_in_quick_launch_bar"; 1928 1929// Dictionary that maps Geolocation network provider server URLs to 1930// corresponding access token. 1931const char kGeolocationAccessToken[] = "geolocation.access_token"; 1932 1933// Boolean that indicates whether to allow firewall traversal while trying to 1934// establish the initial connection from the client or host. 1935const char kRemoteAccessHostFirewallTraversal[] = 1936 "remote_access.host_firewall_traversal"; 1937 1938// Boolean controlling whether 2-factor auth should be required when connecting 1939// to a host (instead of a PIN). 1940const char kRemoteAccessHostRequireTwoFactor[] = 1941 "remote_access.host_require_two_factor"; 1942 1943// String containing the domain name that hosts must belong to. If blank, then 1944// hosts can belong to any domain. 1945const char kRemoteAccessHostDomain[] = "remote_access.host_domain"; 1946 1947// String containing the domain name of the Chromoting Directory. 1948// Used by Chromoting host and client. 1949const char kRemoteAccessHostTalkGadgetPrefix[] = 1950 "remote_access.host_talkgadget_prefix"; 1951 1952// Boolean controlling whether curtaining is required when connecting to a host. 1953const char kRemoteAccessHostRequireCurtain[] = 1954 "remote_access.host_require_curtain"; 1955 1956// Boolean controlling whether curtaining is required when connecting to a host. 1957const char kRemoteAccessHostAllowClientPairing[] = 1958 "remote_access.host_allow_client_pairing"; 1959 1960// The last used printer and its settings. 1961const char kPrintPreviewStickySettings[] = 1962 "printing.print_preview_sticky_settings"; 1963// The root URL of the cloud print service. 1964const char kCloudPrintServiceURL[] = "cloud_print.service_url"; 1965 1966// The URL to use to sign in to cloud print. 1967const char kCloudPrintSigninURL[] = "cloud_print.signin_url"; 1968 1969// The last requested size of the dialog as it was closed. 1970const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width"; 1971const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; 1972const char kCloudPrintSigninDialogWidth[] = 1973 "cloud_print.signin_dialog_size.width"; 1974const char kCloudPrintSigninDialogHeight[] = 1975 "cloud_print.signin_dialog_size.height"; 1976 1977// The list of BackgroundContents that should be loaded when the browser 1978// launches. 1979const char kRegisteredBackgroundContents[] = "background_contents.registered"; 1980 1981#if !defined(OS_ANDROID) 1982// An int that stores how often we've shown the "Chrome is configured to 1983// auto-launch" infobar. 1984const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; 1985#endif 1986 1987// String that lists supported HTTP authentication schemes. 1988const char kAuthSchemes[] = "auth.schemes"; 1989 1990// Boolean that specifies whether to disable CNAME lookups when generating 1991// Kerberos SPN. 1992const char kDisableAuthNegotiateCnameLookup[] = 1993 "auth.disable_negotiate_cname_lookup"; 1994 1995// Boolean that specifies whether to include the port in a generated Kerberos 1996// SPN. 1997const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port"; 1998 1999// Whitelist containing servers for which Integrated Authentication is enabled. 2000const char kAuthServerWhitelist[] = "auth.server_whitelist"; 2001 2002// Whitelist containing servers Chrome is allowed to do Kerberos delegation 2003// with. 2004const char kAuthNegotiateDelegateWhitelist[] = 2005 "auth.negotiate_delegate_whitelist"; 2006 2007// String that specifies the name of a custom GSSAPI library to load. 2008const char kGSSAPILibraryName[] = "auth.gssapi_library_name"; 2009 2010// String that specifies the origin allowed to use SpdyProxy 2011// authentication, if any. 2012const char kSpdyProxyAuthOrigin[] = "auth.spdyproxy.origin"; 2013 2014// Boolean that specifies whether to allow basic auth prompting on cross- 2015// domain sub-content requests. 2016const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt"; 2017 2018// Boolean that specifies whether the built-in asynchronous DNS client is used. 2019const char kBuiltInDnsClientEnabled[] = "async_dns.enabled"; 2020 2021// An int64 pref that contains the total size of all HTTP content that has been 2022// received from the network. 2023const char kHttpReceivedContentLength[] = "http_received_content_length"; 2024 2025// An int64 pref that contains the total original size of all HTTP content that 2026// was received over the network. 2027const char kHttpOriginalContentLength[] = "http_original_content_length"; 2028 2029#if defined(OS_ANDROID) || defined(OS_IOS) 2030// A List pref that contains daily totals of the original size of all HTTP/HTTPS 2031// that was received from the network. 2032const char kDailyHttpOriginalContentLength[] = 2033 "data_reduction.daily_original_length"; 2034 2035// A List pref that contains daily totals of the size of all HTTP/HTTPS content 2036// that was received from the network. 2037const char kDailyHttpReceivedContentLength[] = 2038 "data_reduction.daily_received_length"; 2039 2040// A List pref that contains daily totals of the original size of all HTTP/HTTPS 2041// that was received while the data reduction proxy is enabled. 2042const char kDailyOriginalContentLengthWithDataReductionProxyEnabled[] = 2043 "data_reduction.daily_original_length_with_data_reduction_proxy_enabled"; 2044 2045// A List pref that contains daily totals of the size of all HTTP/HTTPS 2046// that was received while the data reduction proxy is enabled. 2047const char kDailyContentLengthWithDataReductionProxyEnabled[] = 2048 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled"; 2049 2050// A List pref that contains daily totals of the original size of all HTTP/HTTPS 2051// that was received via the data reduction proxy. 2052const char kDailyOriginalContentLengthViaDataReductionProxy[] = 2053 "data_reduction.daily_original_length_via_data_reduction_proxy"; 2054 2055// A List pref that contains daily totals of the size of all HTTP/HTTPS 2056// that was received via the data reduction proxy. 2057const char kDailyContentLengthViaDataReductionProxy[] = 2058 "data_reduction.daily_received_length_via_data_reduction_proxy"; 2059 2060// An int64 pref that contains an internal representation of midnight on the 2061// date of the last update to |kDailyHttp{Original,Received}ContentLength|. 2062const char kDailyHttpContentLengthLastUpdateDate[] = 2063 "data_reduction.last_update_date"; 2064#endif // defined(OS_ANDROID) || defined(OS_IOS) 2065 2066// A pref holding the value of the policy used to explicitly allow or deny 2067// access to audio capture devices. When enabled or not set, the user is 2068// prompted for device access. When disabled, access to audio capture devices 2069// is not allowed and no prompt will be shown. 2070// See also kAudioCaptureAllowedUrls. 2071const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled"; 2072// Holds URL patterns that specify URLs that will be granted access to audio 2073// capture devices without prompt. NOTE: This whitelist is currently only 2074// supported when running in kiosk mode. 2075// TODO(tommi): Update comment when this is supported for all modes. 2076const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls"; 2077 2078// A pref holding the value of the policy used to explicitly allow or deny 2079// access to video capture devices. When enabled or not set, the user is 2080// prompted for device access. When disabled, access to video capture devices 2081// is not allowed and no prompt will be shown. 2082const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled"; 2083// Holds URL patterns that specify URLs that will be granted access to video 2084// capture devices without prompt. NOTE: This whitelist is currently only 2085// supported when running in kiosk mode. 2086// TODO(tommi): Update comment when this is supported for all modes. 2087const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls"; 2088 2089// A boolean pref that controls the enabled-state of hotword search voice 2090// trigger. 2091const char kHotwordSearchEnabled[] = "hotword.search_enabled"; 2092 2093// A boolean pref that controls the enabled-state of hotword search voice 2094// trigger when using incognito mode. 2095const char kHotwordSearchIncognitoEnabled[] = 2096 "hotword.incognito_search_enabled"; 2097 2098#if defined(OS_ANDROID) 2099// Boolean that controls the global enabled-state of protected media identifier. 2100const char kProtectedMediaIdentifierEnabled[] = 2101 "protected_media_identifier.enabled"; 2102#endif 2103 2104#if defined(OS_CHROMEOS) 2105// Dictionary for transient storage of settings that should go into device 2106// settings storage before owner has been assigned. 2107const char kDeviceSettingsCache[] = "signed_settings_cache"; 2108 2109// The hardware keyboard layout of the device. This should look like 2110// "xkb:us::eng". 2111const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard"; 2112 2113// An integer pref which shows number of times carrier deal promo 2114// notification has been shown to user. 2115const char kCarrierDealPromoShown[] = 2116 "settings.internet.mobile.carrier_deal_promo_shown"; 2117 2118// A boolean pref of the auto-enrollment decision. Its value is only valid if 2119// it's not the default value; otherwise, no auto-enrollment decision has been 2120// made yet. 2121const char kShouldAutoEnroll[] = "ShouldAutoEnroll"; 2122 2123// An integer pref with the maximum number of bits used by the client in a 2124// previous auto-enrollment request. If the client goes through an auto update 2125// during OOBE and reboots into a version of the OS with a larger maximum 2126// modulus, then it will retry auto-enrollment using the updated value. 2127const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; 2128 2129// The local state pref that stores device activity times before reporting 2130// them to the policy server. 2131const char kDeviceActivityTimes[] = "device_status.activity_times"; 2132 2133// A pref holding the last known location when device location reporting is 2134// enabled. 2135const char kDeviceLocation[] = "device_status.location"; 2136 2137// A string that is used to store first-time sync startup after once sync is 2138// disabled. This will be refreshed every sign-in. 2139const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token"; 2140 2141// A pref holding the value of the policy used to disable mounting of external 2142// storage for the user. 2143const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; 2144 2145// A pref holding the value of the policy used to disable playing audio on 2146// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite 2147// it, therefore when the policy is lifted the original mute state is restored. 2148const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; 2149 2150// A dictionary that maps usernames to wallpaper properties. 2151const char kUsersWallpaperInfo[] = "user_wallpaper_info"; 2152 2153// Copy of owner swap mouse buttons option to use on login screen. 2154const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right"; 2155 2156// Copy of owner tap-to-click option to use on login screen. 2157const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click"; 2158 2159// The length of device uptime after which an automatic reboot is scheduled, 2160// expressed in seconds. 2161const char kUptimeLimit[] = "automatic_reboot.uptime_limit"; 2162 2163// Whether an automatic reboot should be scheduled when an update has been 2164// applied and a reboot is required to complete the update process. 2165const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update"; 2166 2167// An any-api scoped refresh token for enterprise-enrolled devices. Allows 2168// for connection to Google APIs when the user isn't logged in. Currently used 2169// for for getting a cloudprint scoped token to allow printing in Guest mode, 2170// Public Accounts and kiosks. 2171const char kDeviceRobotAnyApiRefreshToken[] = 2172 "device_robot_refresh_token.any-api"; 2173 2174// Device requisition for enterprise enrollment. 2175const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition"; 2176 2177// Whether to automatically start the enterprise enrollment step during OOBE. 2178const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start"; 2179 2180// Whether the user may exit enrollment. 2181const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit"; 2182 2183// Dictionary of per-user Least Recently Used input method (used at login 2184// screen). 2185extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod"; 2186 2187// A dictionary pref of the echo offer check flag. It sets offer info when 2188// an offer is checked. 2189extern const char kEchoCheckedOffers[] = "EchoCheckedOffers"; 2190 2191// Key name of a dictionary in local state to store cached multiprofle user 2192// behavior policy value. 2193const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior"; 2194#endif 2195 2196// Whether there is a Flash version installed that supports clearing LSO data. 2197const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; 2198 2199// Whether we should show Pepper Flash-specific settings. 2200const char kPepperFlashSettingsEnabled[] = 2201 "browser.pepper_flash_settings_enabled"; 2202 2203// String which specifies where to store the disk cache. 2204const char kDiskCacheDir[] = "browser.disk_cache_dir"; 2205// Pref name for the policy specifying the maximal cache size. 2206const char kDiskCacheSize[] = "browser.disk_cache_size"; 2207// Pref name for the policy specifying the maximal media cache size. 2208const char kMediaCacheSize[] = "browser.media_cache_size"; 2209 2210// Specifies the release channel that the device should be locked to. 2211// Possible values: "stable-channel", "beta-channel", "dev-channel", or an 2212// empty string, in which case the value will be ignored. 2213// TODO(dubroy): This preference may not be necessary once 2214// http://crosbug.com/17015 is implemented and the update engine can just 2215// fetch the correct value from the policy. 2216const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; 2217 2218const char kPerformanceTracingEnabled[] = 2219 "feedback.performance_tracing_enabled"; 2220 2221// Value of the enums in TabStrip::LayoutType as an int. 2222const char kTabStripLayoutType[] = "tab_strip_layout_type"; 2223 2224// Indicates that factory reset was requested from options page. 2225const char kFactoryResetRequested[] = "FactoryResetRequested"; 2226 2227// Boolean recording whether we have showed a balloon that calls out the message 2228// center for desktop notifications. 2229const char kMessageCenterShowedFirstRunBalloon[] = 2230 "message_center.showed_first_run_balloon"; 2231 2232// *************** SERVICE PREFS *************** 2233// These are attached to the service process. 2234 2235const char kCloudPrintRoot[] = "cloud_print"; 2236const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; 2237// The unique id for this instance of the cloud print proxy. 2238const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; 2239// The GAIA auth token for Cloud Print 2240const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; 2241// The GAIA auth token used by Cloud Print to authenticate with the XMPP server 2242// This should eventually go away because the above token should work for both. 2243const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token"; 2244// The email address of the account used to authenticate with the Cloud Print 2245// server. 2246const char kCloudPrintEmail[] = "cloud_print.email"; 2247// Settings specific to underlying print system. 2248const char kCloudPrintPrintSystemSettings[] = 2249 "cloud_print.print_system_settings"; 2250// A boolean indicating whether we should poll for print jobs when don't have 2251// an XMPP connection (false by default). 2252const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll"; 2253const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token"; 2254const char kCloudPrintRobotEmail[] = "cloud_print.robot_email"; 2255// A boolean indicating whether we should connect to cloud print new printers. 2256const char kCloudPrintConnectNewPrinters[] = 2257 "cloud_print.user_settings.connectNewPrinters"; 2258// A boolean indicating whether we should ping XMPP connection. 2259const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled"; 2260// An int value indicating the average timeout between xmpp pings. 2261const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec"; 2262// Dictionary with settings stored by connector setup page. 2263const char kCloudPrintUserSettings[] = "cloud_print.user_settings"; 2264// List of printers settings. 2265extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers"; 2266// A boolean indicating whether submitting jobs to Google Cloud Print is 2267// blocked by policy. 2268const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled"; 2269 2270// Preference to store proxy settings. 2271const char kProxy[] = "proxy"; 2272const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy"; 2273 2274// Preferences that are exclusively used to store managed values for default 2275// content settings. 2276const char kManagedDefaultCookiesSetting[] = 2277 "profile.managed_default_content_settings.cookies"; 2278const char kManagedDefaultImagesSetting[] = 2279 "profile.managed_default_content_settings.images"; 2280const char kManagedDefaultJavaScriptSetting[] = 2281 "profile.managed_default_content_settings.javascript"; 2282const char kManagedDefaultPluginsSetting[] = 2283 "profile.managed_default_content_settings.plugins"; 2284const char kManagedDefaultPopupsSetting[] = 2285 "profile.managed_default_content_settings.popups"; 2286const char kManagedDefaultGeolocationSetting[] = 2287 "profile.managed_default_content_settings.geolocation"; 2288const char kManagedDefaultNotificationsSetting[] = 2289 "profile.managed_default_content_settings.notifications"; 2290const char kManagedDefaultMediaStreamSetting[] = 2291 "profile.managed_default_content_settings.media_stream"; 2292 2293// Preferences that are exclusively used to store managed 2294// content settings patterns. 2295const char kManagedCookiesAllowedForUrls[] = 2296 "profile.managed_cookies_allowed_for_urls"; 2297const char kManagedCookiesBlockedForUrls[] = 2298 "profile.managed_cookies_blocked_for_urls"; 2299const char kManagedCookiesSessionOnlyForUrls[] = 2300 "profile.managed_cookies_sessiononly_for_urls"; 2301const char kManagedImagesAllowedForUrls[] = 2302 "profile.managed_images_allowed_for_urls"; 2303const char kManagedImagesBlockedForUrls[] = 2304 "profile.managed_images_blocked_for_urls"; 2305const char kManagedJavaScriptAllowedForUrls[] = 2306 "profile.managed_javascript_allowed_for_urls"; 2307const char kManagedJavaScriptBlockedForUrls[] = 2308 "profile.managed_javascript_blocked_for_urls"; 2309const char kManagedPluginsAllowedForUrls[] = 2310 "profile.managed_plugins_allowed_for_urls"; 2311const char kManagedPluginsBlockedForUrls[] = 2312 "profile.managed_plugins_blocked_for_urls"; 2313const char kManagedPopupsAllowedForUrls[] = 2314 "profile.managed_popups_allowed_for_urls"; 2315const char kManagedPopupsBlockedForUrls[] = 2316 "profile.managed_popups_blocked_for_urls"; 2317const char kManagedNotificationsAllowedForUrls[] = 2318 "profile.managed_notifications_allowed_for_urls"; 2319const char kManagedNotificationsBlockedForUrls[] = 2320 "profile.managed_notifications_blocked_for_urls"; 2321const char kManagedAutoSelectCertificateForUrls[] = 2322 "profile.managed_auto_select_certificate_for_urls"; 2323 2324#if defined(OS_MACOSX) 2325// Set to true if the user removed our login item so we should not create a new 2326// one when uninstalling background apps. 2327const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item"; 2328 2329// Set to true if Chrome already created a login item, so there's no need to 2330// create another one. 2331const char kChromeCreatedLoginItem[] = 2332 "background_mode.chrome_created_login_item"; 2333 2334// Set to true once we've initialized kChromeCreatedLoginItem for the first 2335// time. 2336const char kMigratedLoginItemPref[] = 2337 "background_mode.migrated_login_item_pref"; 2338#endif 2339 2340// Set to true if background mode is enabled on this browser. 2341const char kBackgroundModeEnabled[] = "background_mode.enabled"; 2342 2343// Set to true if hardware acceleration mode is enabled on this browser. 2344const char kHardwareAccelerationModeEnabled[] = 2345 "hardware_acceleration_mode.enabled"; 2346 2347// Hardware acceleration mode from previous browser launch. 2348const char kHardwareAccelerationModePrevious[] = 2349 "hardware_acceleration_mode_previous"; 2350 2351// List of protocol handlers. 2352const char kRegisteredProtocolHandlers[] = 2353 "custom_handlers.registered_protocol_handlers"; 2354 2355// List of protocol handlers the user has requested not to be asked about again. 2356const char kIgnoredProtocolHandlers[] = 2357 "custom_handlers.ignored_protocol_handlers"; 2358 2359// Whether user-specified handlers for protocols and content types can be 2360// specified. 2361const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 2362 2363// Integer that specifies the policy refresh rate for device-policy in 2364// milliseconds. Not all values are meaningful, so it is clamped to a sane range 2365// by the cloud policy subsystem. 2366const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 2367 2368// String that represents the recovery component last downloaded version. This 2369// takes the usual 'a.b.c.d' notation. 2370const char kRecoveryComponentVersion[] = "recovery_component.version"; 2371 2372// String that stores the component updater last known state. This is used for 2373// troubleshooting. 2374const char kComponentUpdaterState[] = "component_updater.state"; 2375 2376// The next media gallery ID to assign. 2377const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; 2378 2379// A list of dictionaries, where each dictionary represents a known media 2380// gallery. 2381const char kMediaGalleriesRememberedGalleries[] = 2382 "media_galleries.remembered_galleries"; 2383 2384#if defined(USE_ASH) 2385// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The 2386// local variant is not synced and is used if set. If the local variant is not 2387// set its value is set from the synced value (once prefs have been 2388// synced). This gives a per-machine setting that is initialized from the last 2389// set value. 2390// These values are default on the machine but can be overridden by per-display 2391// values in kShelfPreferences (unless overridden by managed policy). 2392// String value corresponding to ash::Shell::ShelfAlignment. 2393const char kShelfAlignment[] = "shelf_alignment"; 2394const char kShelfAlignmentLocal[] = "shelf_alignment_local"; 2395// String value corresponding to ash::Shell::ShelfAutoHideBehavior. 2396const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; 2397const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; 2398// This value stores chrome icon's index in the launcher. This should be handled 2399// separately with app shortcut's index because of LauncherModel's backward 2400// compatability. If we add chrome icon index to |kPinnedLauncherApps|, its 2401// index is also stored in the |kPinnedLauncherApp| pref. It may causes 2402// creating two chrome icons. 2403const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index"; 2404 2405const char kPinnedLauncherApps[] = "pinned_launcher_apps"; 2406// Boolean value indicating whether to show a logout button in the ash tray. 2407const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; 2408// Dictionary value that holds per-display preference of shelf alignment and 2409// auto-hide behavior. Key of the dictionary is the id of the display, and 2410// its value is a dictionary whose keys are kShelfAlignment and 2411// kShelfAutoHideBehavior. 2412const char kShelfPreferences[] = "shelf_preferences"; 2413#endif 2414 2415#if defined(USE_AURA) 2416// Tuning settings for gestures. 2417const char kFlingVelocityCap[] = "gesture.fling_velocity_cap"; 2418const char kLongPressTimeInSeconds[] = 2419 "gesture.long_press_time_in_seconds"; 2420const char kMaxDistanceBetweenTapsForDoubleTap[] = 2421 "gesture.max_distance_between_taps_for_double_tap"; 2422const char kMaxDistanceForTwoFingerTapInPixels[] = 2423 "gesture.max_distance_for_two_finger_tap_in_pixels"; 2424const char kMaxSecondsBetweenDoubleClick[] = 2425 "gesture.max_seconds_between_double_click"; 2426const char kMaxSeparationForGestureTouchesInPixels[] = 2427 "gesture.max_separation_for_gesture_touches_in_pixels"; 2428const char kMaxSwipeDeviationRatio[] = 2429 "gesture.max_swipe_deviation_ratio"; 2430const char kMaxTouchDownDurationInSecondsForClick[] = 2431 "gesture.max_touch_down_duration_in_seconds_for_click"; 2432const char kMaxTouchMoveInPixelsForClick[] = 2433 "gesture.max_touch_move_in_pixels_for_click"; 2434const char kMinDistanceForPinchScrollInPixels[] = 2435 "gesture.min_distance_for_pinch_scroll_in_pixels"; 2436const char kMinFlickSpeedSquared[] = 2437 "gesture.min_flick_speed_squared"; 2438const char kMinPinchUpdateDistanceInPixels[] = 2439 "gesture.min_pinch_update_distance_in_pixels"; 2440const char kMinRailBreakVelocity[] = 2441 "gesture.min_rail_break_velocity"; 2442const char kMinScrollDeltaSquared[] = 2443 "gesture.min_scroll_delta_squared"; 2444const char kMinScrollSuccessiveVelocityEvents[] = 2445 "gesture.min_scroll_successive_velocity_events"; 2446const char kMinSwipeSpeed[] = 2447 "gesture.min_swipe_speed"; 2448const char kMinTouchDownDurationInSecondsForClick[] = 2449 "gesture.min_touch_down_duration_in_seconds_for_click"; 2450const char kPointsBufferedForVelocity[] = 2451 "gesture.points_buffered_for_velocity"; 2452const char kRailBreakProportion[] = 2453 "gesture.rail_break_proportion"; 2454const char kRailStartProportion[] = 2455 "gesture.rail_start_proportion"; 2456const char kScrollPredictionSeconds[] = 2457 "gesture.scroll_prediction_seconds"; 2458const char kSemiLongPressTimeInSeconds[] = 2459 "gesture.semi_long_press_time_in_seconds"; 2460const char kShowPressDelayInMS[] = 2461 "gesture.show_press_delay_in_ms"; 2462const char kTabScrubActivationDelayInMS[] = 2463 "gesture.tab_scrub_activation_delay_in_ms"; 2464const char kFlingAccelerationCurveCoefficient0[] = 2465 "gesture.fling_acceleration_curve_coefficient_0"; 2466const char kFlingAccelerationCurveCoefficient1[] = 2467 "gesture.fling_acceleration_curve_coefficient_1"; 2468const char kFlingAccelerationCurveCoefficient2[] = 2469 "gesture.fling_acceleration_curve_coefficient_2"; 2470const char kFlingAccelerationCurveCoefficient3[] = 2471 "gesture.fling_acceleration_curve_coefficient_3"; 2472const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha"; 2473const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta"; 2474const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma"; 2475const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha"; 2476const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta"; 2477const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma"; 2478const char kFlingMaxCancelToDownTimeInMs[] = 2479 "gesture.fling_max_cancel_to_down_time_in_ms"; 2480const char kFlingMaxTapGapTimeInMs[] = 2481 "gesture.fling_max_tap_gap_time_in_ms"; 2482const char kOverscrollHorizontalThresholdComplete[] = 2483 "overscroll.horizontal_threshold_complete"; 2484const char kOverscrollVerticalThresholdComplete[] = 2485 "overscroll.vertical_threshold_complete"; 2486const char kOverscrollMinimumThresholdStart[] = 2487 "overscroll.minimum_threshold_start"; 2488const char kOverscrollMinimumThresholdStartTouchpad[] = 2489 "overscroll.minimum_threshold_start_touchpad"; 2490const char kOverscrollVerticalThresholdStart[] = 2491 "overscroll.vertical_threshold_start"; 2492const char kOverscrollHorizontalResistThreshold[] = 2493 "overscroll.horizontal_resist_threshold"; 2494const char kOverscrollVerticalResistThreshold[] = 2495 "overscroll.vertical_resist_threshold"; 2496// TODO(mohsen): Remove following pref in M32. By then, gesture prefs will have 2497// been cleared for majority of the users: crbug.com/269292. 2498// A temporary pref to do a one-time wipe of gesture preferences. 2499const char kGestureConfigIsTrustworthy[] = "gesture.config_is_trustworthy"; 2500#endif 2501 2502// Counts how many more times the 'profile on a network share' warning should be 2503// shown to the user before the next silence period. 2504const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; 2505// Tracks the time of the last shown warning. Used to reset 2506// |network_profile.warnings_left| after a silence period. 2507const char kNetworkProfileLastWarningTime[] = 2508 "network_profile.last_warning_time"; 2509 2510#if defined(OS_CHROMEOS) 2511// The RLZ brand code, if enabled. 2512const char kRLZBrand[] = "rlz.brand"; 2513// Whether RLZ pings are disabled. 2514const char kRLZDisabled[] = "rlz.disabled"; 2515#endif 2516 2517#if defined(ENABLE_APP_LIST) 2518// The directory in user data dir that contains the profile to be used with the 2519// app launcher. 2520extern const char kAppListProfile[] = "app_list.profile"; 2521 2522// Whether to show the app list on a browser relaunch. Used when switching out 2523// of metro mode after a user gesture requests showing the app list. 2524const char kRestartWithAppList[] = "app_list.show_on_relaunch"; 2525 2526// The number of times the app launcher was launched since last ping and 2527// the time of the last ping. 2528extern const char kAppListLaunchCount[] = "app_list.launch_count"; 2529extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; 2530 2531// The number of times the an app was launched from the app launcher since last 2532// ping and the time of the last ping. 2533extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count"; 2534extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping"; 2535 2536// A boolean that tracks whether the user has ever enabled the app launcher. 2537const char kAppLauncherHasBeenEnabled[] = 2538 "apps.app_launcher.has_been_enabled"; 2539 2540// TODO(calamity): remove this pref since app launcher will always be 2541// installed. 2542// Local state caching knowledge of whether the app launcher is installed. 2543const char kAppLauncherIsEnabled[] = 2544 "apps.app_launcher.should_show_apps_page"; 2545 2546// Integer representing the version of the app launcher shortcut installed on 2547// the system. Incremented, e.g., when embedded icons change. 2548const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version"; 2549 2550// A boolean identifying if we should show the app launcher promo or not. 2551const char kShowAppLauncherPromo[] = "app_launcher.show_promo"; 2552#endif 2553 2554// If set, the user requested to launch the app with this extension id while 2555// in Metro mode, and then relaunched to Desktop mode to start it. 2556const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart"; 2557 2558// Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers 2559// launch of the specified app when restarting Chrome in desktop mode. 2560const char kAppLaunchForMetroRestartProfile[] = 2561 "apps.app_launch_for_metro_restart_profile"; 2562 2563// A boolean that indicates whether app shortcuts have been created. 2564// On a transition from false to true, shortcuts are created for all apps. 2565const char kAppShortcutsHaveBeenCreated[] = "apps.shortcuts_have_been_created"; 2566 2567// How often the bubble has been shown. 2568extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; 2569 2570// A string pref for storing the salt used to compute the pepper device ID. 2571const char kDRMSalt[] = "settings.privacy.drm_salt"; 2572// A boolean pref that enables the (private) pepper GetDeviceID() call and 2573// enables the use of remote attestation for content protection. 2574const char kEnableDRM[] = "settings.privacy.drm_enabled"; 2575 2576// A boolean per-profile pref that signals if the watchdog extension is 2577// installed and active. We need to know if the watchdog extension active for 2578// ActivityLog initialization before the extension system is initialized. 2579const char kWatchdogExtensionActive[] = 2580 "profile.extensions.activity_log.watchdog_extension_active"; 2581 2582// A dictionary pref which maps profile names to dictionary values which hold 2583// hashes of profile prefs that we track to detect changes that happen outside 2584// of Chrome. 2585const char kProfilePreferenceHashes[] = "profile.preference_hashes"; 2586 2587// Stores a pair of local time and corresponding network time to bootstrap 2588// network time tracker when browser starts. 2589const char kNetworkTimeMapping[] = "profile.network_time_mapping"; 2590 2591} // namespace prefs 2592