pref_names.cc revision 5f1c94371a64b3196d4be9466099bb892df9b88e
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// If set to true profiles are created in ephemeral mode and do not store their 31// data in the profile folder on disk but only in memory. 32const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 33 34// A boolean specifying whether the New Tab page is the home page or not. 35const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 36 37// This is the URL of the page to load when opening new tabs. 38const char kHomePage[] = "homepage"; 39 40// An integer that keeps track of the profile icon version. This allows us to 41// determine the state of the profile icon for icon format changes. 42const char kProfileIconVersion[] = "profile.icon_version"; 43 44// Used to determine if the last session exited cleanly. Set to false when 45// first opened, and to true when closing. On startup if the value is false, 46// it means the profile didn't exit cleanly. 47// DEPRECATED: this is replaced by kSessionExitType and exists for backwards 48// compatibility. 49const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 50 51// A string pref whose values is one of the values defined by 52// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 53// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 54// shutdown. Used to determine the exit type the last time the profile was open. 55const char kSessionExitType[] = "profile.exit_type"; 56 57// An integer pref. Holds one of several values: 58// 0: (deprecated) open the homepage on startup. 59// 1: restore the last session. 60// 2: this was used to indicate a specific session should be restored. It is 61// no longer used, but saved to avoid conflict with old preferences. 62// 3: unused, previously indicated the user wants to restore a saved session. 63// 4: restore the URLs defined in kURLsToRestoreOnStartup. 64// 5: open the New Tab Page on startup. 65const char kRestoreOnStartup[] = "session.restore_on_startup"; 66 67// A preference to keep track of whether we have already checked whether we 68// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 69// We only need to do this check once, on upgrade from m18 or lower to m19 or 70// higher. 71const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 72 73// Serialized migration time of kURLsToRestoreOnStartup (see 74// base::Time::ToInternalValue for details on serialization format). 75const char kRestoreStartupURLsMigrationTime[] = 76 "session.startup_urls_migration_time"; 77 78// The URLs to restore on startup or when the home button is pressed. The URLs 79// are only restored on startup if kRestoreOnStartup is 4. 80const char kURLsToRestoreOnStartup[] = "session.startup_urls"; 81 82// Old startup url pref name for kURLsToRestoreOnStartup. 83const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup"; 84 85// Maps host names to whether the host is manually allowed or blocked. 86const char kSupervisedUserManualHosts[] = "profile.managed.manual_hosts"; 87// Maps URLs to whether the URL is manually allowed or blocked. 88const char kSupervisedUserManualURLs[] = "profile.managed.manual_urls"; 89 90// Stores the email address associated with the google account of the custodian 91// of the supervised user, set when the supervised user is created. 92const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email"; 93 94// Stores the display name associated with the google account of the custodian 95// of the supervised user, updated (if possible) each time the supervised user 96// starts a session. 97const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name"; 98 99// Stores settings that can be modified both by a supervised user and their 100// manager. See SupervisedUserSharedSettingsService for a description of 101// the format. 102const char kSupervisedUserSharedSettings[] = "profile.managed.shared_settings"; 103 104// The application locale. 105// For OS_CHROMEOS we maintain kApplicationLocale property in both local state 106// and user's profile. Global property determines locale of login screen, 107// while user's profile determines his personal locale preference. 108const char kApplicationLocale[] = "intl.app_locale"; 109#if defined(OS_CHROMEOS) 110// Locale preference of device' owner. ChromeOS device appears in this locale 111// after startup/wakeup/signout. 112const char kOwnerLocale[] = "intl.owner_locale"; 113// Locale accepted by user. Non-syncable. 114// Used to determine whether we need to show Locale Change notification. 115const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted"; 116// Non-syncable item. 117// It is used in two distinct ways. 118// (1) Used for two-step initialization of locale in ChromeOS 119// because synchronization of kApplicationLocale is not instant. 120// (2) Used to detect locale change. Locale change is detected by 121// LocaleChangeGuard in case values of kApplicationLocaleBackup and 122// kApplicationLocale are both non-empty and differ. 123// Following is a table showing how state of those prefs may change upon 124// common real-life use cases: 125// AppLocale Backup Accepted 126// Initial login - A - 127// Sync B A - 128// Accept (B) B B B 129// ----------------------------------------------------------- 130// Initial login - A - 131// No sync and second login A A - 132// Change options B B - 133// ----------------------------------------------------------- 134// Initial login - A - 135// Sync A A - 136// Locale changed on login screen A C - 137// Accept (A) A A A 138// ----------------------------------------------------------- 139// Initial login - A - 140// Sync B A - 141// Revert A A - 142const char kApplicationLocaleBackup[] = "intl.app_locale_backup"; 143#endif 144 145// The default character encoding to assume for a web page in the 146// absence of MIME charset specification 147const char kDefaultCharset[] = "intl.charset_default"; 148 149// The value to use for Accept-Languages HTTP header when making an HTTP 150// request. 151const char kAcceptLanguages[] = "intl.accept_languages"; 152 153// The value to use for showing locale-dependent encoding list for different 154// locale, it's initialized from the corresponding string resource that is 155// stored in non-translatable part of the resource bundle. 156const char kStaticEncodings[] = "intl.static_encodings"; 157 158// If these change, the corresponding enums in the extension API 159// experimental.fontSettings.json must also change. 160const char* const kWebKitScriptsForFontFamilyMaps[] = { 161#define EXPAND_SCRIPT_FONT(x, script_name) script_name , 162#include "chrome/common/pref_font_script_names-inl.h" 163ALL_FONT_SCRIPTS("unused param") 164#undef EXPAND_SCRIPT_FONT 165}; 166 167const size_t kWebKitScriptsForFontFamilyMapsLength = 168 arraysize(kWebKitScriptsForFontFamilyMaps); 169 170// Strings for WebKit font family preferences. If these change, the pref prefix 171// in pref_names_util.cc and the pref format in font_settings_api.cc must also 172// change. 173const char kWebKitStandardFontFamilyMap[] = 174 WEBKIT_WEBPREFS_FONTS_STANDARD; 175const char kWebKitFixedFontFamilyMap[] = 176 WEBKIT_WEBPREFS_FONTS_FIXED; 177const char kWebKitSerifFontFamilyMap[] = 178 WEBKIT_WEBPREFS_FONTS_SERIF; 179const char kWebKitSansSerifFontFamilyMap[] = 180 WEBKIT_WEBPREFS_FONTS_SANSERIF; 181const char kWebKitCursiveFontFamilyMap[] = 182 WEBKIT_WEBPREFS_FONTS_CURSIVE; 183const char kWebKitFantasyFontFamilyMap[] = 184 WEBKIT_WEBPREFS_FONTS_FANTASY; 185const char kWebKitPictographFontFamilyMap[] = 186 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH; 187const char kWebKitStandardFontFamilyArabic[] = 188 "webkit.webprefs.fonts.standard.Arab"; 189const char kWebKitFixedFontFamilyArabic[] = 190 "webkit.webprefs.fonts.fixed.Arab"; 191const char kWebKitSerifFontFamilyArabic[] = 192 "webkit.webprefs.fonts.serif.Arab"; 193const char kWebKitSansSerifFontFamilyArabic[] = 194 "webkit.webprefs.fonts.sansserif.Arab"; 195const char kWebKitStandardFontFamilyCyrillic[] = 196 "webkit.webprefs.fonts.standard.Cyrl"; 197const char kWebKitFixedFontFamilyCyrillic[] = 198 "webkit.webprefs.fonts.fixed.Cyrl"; 199const char kWebKitSerifFontFamilyCyrillic[] = 200 "webkit.webprefs.fonts.serif.Cyrl"; 201const char kWebKitSansSerifFontFamilyCyrillic[] = 202 "webkit.webprefs.fonts.sansserif.Cyrl"; 203const char kWebKitStandardFontFamilyGreek[] = 204 "webkit.webprefs.fonts.standard.Grek"; 205const char kWebKitFixedFontFamilyGreek[] = 206 "webkit.webprefs.fonts.fixed.Grek"; 207const char kWebKitSerifFontFamilyGreek[] = 208 "webkit.webprefs.fonts.serif.Grek"; 209const char kWebKitSansSerifFontFamilyGreek[] = 210 "webkit.webprefs.fonts.sansserif.Grek"; 211const char kWebKitStandardFontFamilyJapanese[] = 212 "webkit.webprefs.fonts.standard.Jpan"; 213const char kWebKitFixedFontFamilyJapanese[] = 214 "webkit.webprefs.fonts.fixed.Jpan"; 215const char kWebKitSerifFontFamilyJapanese[] = 216 "webkit.webprefs.fonts.serif.Jpan"; 217const char kWebKitSansSerifFontFamilyJapanese[] = 218 "webkit.webprefs.fonts.sansserif.Jpan"; 219const char kWebKitStandardFontFamilyKorean[] = 220 "webkit.webprefs.fonts.standard.Hang"; 221const char kWebKitFixedFontFamilyKorean[] = 222 "webkit.webprefs.fonts.fixed.Hang"; 223const char kWebKitSerifFontFamilyKorean[] = 224 "webkit.webprefs.fonts.serif.Hang"; 225const char kWebKitSansSerifFontFamilyKorean[] = 226 "webkit.webprefs.fonts.sansserif.Hang"; 227const char kWebKitCursiveFontFamilyKorean[] = 228 "webkit.webprefs.fonts.cursive.Hang"; 229const char kWebKitStandardFontFamilySimplifiedHan[] = 230 "webkit.webprefs.fonts.standard.Hans"; 231const char kWebKitFixedFontFamilySimplifiedHan[] = 232 "webkit.webprefs.fonts.fixed.Hans"; 233const char kWebKitSerifFontFamilySimplifiedHan[] = 234 "webkit.webprefs.fonts.serif.Hans"; 235const char kWebKitSansSerifFontFamilySimplifiedHan[] = 236 "webkit.webprefs.fonts.sansserif.Hans"; 237const char kWebKitStandardFontFamilyTraditionalHan[] = 238 "webkit.webprefs.fonts.standard.Hant"; 239const char kWebKitFixedFontFamilyTraditionalHan[] = 240 "webkit.webprefs.fonts.fixed.Hant"; 241const char kWebKitSerifFontFamilyTraditionalHan[] = 242 "webkit.webprefs.fonts.serif.Hant"; 243const char kWebKitSansSerifFontFamilyTraditionalHan[] = 244 "webkit.webprefs.fonts.sansserif.Hant"; 245 246// WebKit preferences. 247const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled"; 248const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled"; 249const char kWebKitShrinksStandaloneImagesToFit[] = 250 "webkit.webprefs.shrinks_standalone_images_to_fit"; 251const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings"; 252const char kWebKitUsesUniversalDetector[] = 253 "webkit.webprefs.uses_universal_detector"; 254const char kWebKitTextAreasAreResizable[] = 255 "webkit.webprefs.text_areas_are_resizable"; 256const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled"; 257const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links"; 258const char kWebKitAllowDisplayingInsecureContent[] = 259 "webkit.webprefs.allow_displaying_insecure_content"; 260const char kWebKitAllowRunningInsecureContent[] = 261 "webkit.webprefs.allow_running_insecure_content"; 262#if defined(OS_ANDROID) 263const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor"; 264const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom"; 265const char kWebKitPasswordEchoEnabled[] = 266 "webkit.webprefs.password_echo_enabled"; 267#endif 268 269const char kWebKitCommonScript[] = "Zyyy"; 270const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy"; 271const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy"; 272const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy"; 273const char kWebKitSansSerifFontFamily[] = 274 "webkit.webprefs.fonts.sansserif.Zyyy"; 275const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy"; 276const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy"; 277const char kWebKitPictographFontFamily[] = 278 "webkit.webprefs.fonts.pictograph.Zyyy"; 279const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size"; 280const char kWebKitDefaultFixedFontSize[] = 281 "webkit.webprefs.default_fixed_font_size"; 282const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size"; 283const char kWebKitMinimumLogicalFontSize[] = 284 "webkit.webprefs.minimum_logical_font_size"; 285const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled"; 286const char kWebKitJavascriptCanOpenWindowsAutomatically[] = 287 "webkit.webprefs.javascript_can_open_windows_automatically"; 288const char kWebKitLoadsImagesAutomatically[] = 289 "webkit.webprefs.loads_images_automatically"; 290const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled"; 291 292// Boolean that is true when SafeBrowsing is enabled. 293const char kSafeBrowsingEnabled[] = "safebrowsing.enabled"; 294 295// Boolean that tell us whether malicious download feedback is enabled. 296const char kSafeBrowsingExtendedReportingEnabled[] = 297 "safebrowsing.extended_reporting_enabled"; 298 299// Boolean that tell us whether malicious download feedback is enabled. 300// TODO(felt): Deprecate. crbug.com/383866 301const char kSafeBrowsingDownloadFeedbackEnabled[] = 302 "safebrowsing.download_feedback_enabled"; 303 304// Boolean that is true when SafeBrowsing Malware Report is enabled. 305// TODO(felt): Deprecate. crbug.com/383866 306const char kSafeBrowsingReportingEnabled[] = 307 "safebrowsing.reporting_enabled"; 308 309// Boolean that is true when the SafeBrowsing interstitial should not allow 310// users to proceed anyway. 311const char kSafeBrowsingProceedAnywayDisabled[] = 312 "safebrowsing.proceed_anyway_disabled"; 313 314// Boolean that is true when SafeBrowsing has sent an incident report. 315const char kSafeBrowsingIncidentReportSent[] = 316 "safebrowsing.incident_report_sent"; 317 318// A dictionary mapping incident types to a dict of incident key:digest pairs. 319const char kSafeBrowsingIncidentsSent[] = "safebrowsing.incidents_sent"; 320 321// Enum that specifies whether Incognito mode is: 322// 0 - Enabled. Default behaviour. Default mode is available on demand. 323// 1 - Disabled. Used cannot browse pages in Incognito mode. 324// 2 - Forced. All pages/sessions are forced into Incognito. 325const char kIncognitoModeAvailability[] = "incognito.mode_availability"; 326 327// Boolean that is true when Suggest support is enabled. 328const char kSearchSuggestEnabled[] = "search.suggest_enabled"; 329 330#if defined(OS_ANDROID) 331// String indicating the Contextual Search enabled state. 332// "false" - opt-out (disabled) 333// "" (empty string) - undecided 334// "true" - opt-in (enabled) 335const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; 336#endif 337 338// Boolean that indicates whether the browser should put up a confirmation 339// window when the user is attempting to quit. Mac only. 340const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 341 342// OBSOLETE. Enum that specifies whether to enforce a third-party cookie 343// blocking policy. This has been superseded by kDefaultContentSettings + 344// kBlockThirdPartyCookies. 345// 0 - allow all cookies. 346// 1 - block third-party cookies 347// 2 - block all cookies 348const char kCookieBehavior[] = "security.cookie_behavior"; 349 350// Boolean which specifies whether we should ask the user if we should download 351// a file (true) or just download it automatically. 352const char kPromptForDownload[] = "download.prompt_for_download"; 353 354// A boolean pref set to true if we're using Link Doctor error pages. 355const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; 356 357// OBSOLETE: new pref now stored with user prefs instead of profile, as 358// kDnsPrefetchingStartupList. 359const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList"; 360 361// An adaptively identified list of domain names to be pre-fetched during the 362// next startup, based on what was actually needed during this startup. 363const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; 364 365// OBSOLETE: new pref now stored with user prefs instead of profile, as 366// kDnsPrefetchingHostReferralList. 367const char kDnsHostReferralList[] = "HostReferralList"; 368 369// A list of host names used to fetch web pages, and their commonly used 370// sub-resource hostnames (and expected latency benefits from pre-resolving, or 371// preconnecting to, such sub-resource hostnames). 372// This list is adaptively grown and pruned. 373const char kDnsPrefetchingHostReferralList[] = 374 "dns_prefetching.host_referral_list"; 375 376// Disables the SPDY protocol. 377const char kDisableSpdy[] = "spdy.disabled"; 378 379// Prefs for persisting HttpServerProperties. 380const char kHttpServerProperties[] = "net.http_server_properties"; 381 382// Prefs for server names that support SPDY protocol. 383const char kSpdyServers[] = "spdy.servers"; 384 385// Prefs for servers that support Alternate-Protocol. 386const char kAlternateProtocolServers[] = "spdy.alternate_protocol"; 387 388// Disables the listed protocol schemes. 389const char kDisabledSchemes[] = "protocol.disabled_schemes"; 390 391#if defined(OS_ANDROID) || defined(OS_IOS) 392// Last time that a check for cloud policy management was done. This time is 393// recorded on Android so that retries aren't attempted on every startup. 394// Instead the cloud policy registration is retried at least 1 or 3 days later. 395const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; 396#endif 397 398// Prefix URL for the experimental Instant ZeroSuggest provider. 399const char kInstantUIZeroSuggestUrlPrefix[] = 400 "instant_ui.zero_suggest_url_prefix"; 401 402// Used to migrate preferences from local state to user preferences to 403// enable multiple profiles. 404// BITMASK with possible values (see browser_prefs.cc for enum): 405// 0: No preferences migrated. 406// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList 407// 2: Browser window preferences migrated: kDevToolsSplitLocation and 408// kBrowserWindowPlacement 409const char kMultipleProfilePrefMigration[] = 410 "local_state.multiple_profile_prefs_version"; 411 412// A boolean pref set to true if prediction of network actions is allowed. 413// Actions include DNS prefetching, TCP and SSL preconnection, prerendering 414// of web pages, and resource prefetching. 415// NOTE: The "dns_prefetching.enabled" value is used so that historical user 416// preferences are not lost. 417// TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions 418// is functioning as per crbug.com/334602. 419const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 420 421// A preference of enum chrome_browser_net::NetworkPredictionOptions shows 422// if prediction of network actions is allowed, depending on network type. 423// Actions include DNS prefetching, TCP and SSL preconnection, prerendering 424// of web pages, and resource prefetching. 425// TODO(bnc): Implement this preference as per crbug.com/334602. 426const char kNetworkPredictionOptions[] = "net.network_prediction_options"; 427 428// An integer representing the state of the default apps installation process. 429// This value is persisted in the profile's user preferences because the process 430// is async, and the user may have stopped chrome in the middle. The next time 431// the profile is opened, the process will continue from where it left off. 432// 433// See possible values in external_provider_impl.cc. 434const char kDefaultAppsInstallState[] = "default_apps_install_state"; 435 436// A boolean pref set to true if the Chrome Web Store icons should be hidden 437// from the New Tab Page and app launcher. 438const char kHideWebStoreIcon[] = "hide_web_store_icon"; 439 440#if defined(OS_CHROMEOS) 441// A dictionary pref to hold the mute setting for all the currently known 442// audio devices. 443const char kAudioDevicesMute[] = "settings.audio.devices.mute"; 444 445// A dictionary pref storing the volume settings for all the currently known 446// audio devices. 447const char kAudioDevicesVolumePercent[] = 448 "settings.audio.devices.volume_percent"; 449 450// An integer pref to initially mute volume if 1. This pref is ignored if 451// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore 452// when the policy is lifted the original mute state is restored. This setting 453// is here only for migration purposes now. It is being replaced by the 454// |kAudioDevicesMute| setting. 455const char kAudioMute[] = "settings.audio.mute"; 456 457// A double pref storing the user-requested volume. This setting is here only 458// for migration purposes now. It is being replaced by the 459// |kAudioDevicesVolumePercent| setting. 460const char kAudioVolumePercent[] = "settings.audio.volume_percent"; 461 462// An integer pref to record user's spring charger check result. 463// 0 - unknown charger, not checked yet. 464// 1 - confirmed safe charger. 465// 2 - confirmed original charger and declined to order new charger. 466// 3 - confirmed original charger and ordered new charger online. 467// 4 - confirmed original charger and ordered new charger by phone. 468// 5 - confirmed original charger, ordered a new one online, but continue to use 469// the old one. 470// 6 - confirmed original charger, ordered a new one by phone, but continue to 471// use the old one. 472const char kSpringChargerCheck[] = "settings.spring_charger.check_result"; 473 474// A boolean pref set to true if touchpad tap-to-click is enabled. 475const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click"; 476 477// A boolean pref set to true if touchpad tap-dragging is enabled. 478const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging"; 479 480// A boolean pref set to true if touchpad three-finger-click is enabled. 481const char kEnableTouchpadThreeFingerClick[] = 482 "settings.touchpad.enable_three_finger_click"; 483 484// A boolean pref set to true if touchpad natural scrolling is enabled. 485const char kNaturalScroll[] = "settings.touchpad.natural_scroll"; 486 487// A boolean pref set to true if primary mouse button is the left button. 488const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right"; 489 490// A integer pref for the touchpad sensitivity. 491const char kMouseSensitivity[] = "settings.mouse.sensitivity2"; 492 493// A integer pref for the touchpad sensitivity. 494const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2"; 495 496// A boolean pref set to true if time should be displayed in 24-hour clock. 497const char kUse24HourClock[] = "settings.clock.use_24hour_clock"; 498 499// A boolean pref to disable Google Drive integration. 500// The pref prefix should remain as "gdata" for backward compatibility. 501const char kDisableDrive[] = "gdata.disabled"; 502 503// A boolean pref to disable Drive over cellular connections. 504// The pref prefix should remain as "gdata" for backward compatibility. 505const char kDisableDriveOverCellular[] = "gdata.cellular.disabled"; 506 507// A boolean pref to disable hosted files on Drive. 508// The pref prefix should remain as "gdata" for backward compatibility. 509const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled"; 510 511// A string pref set to the current input method. 512const char kLanguageCurrentInputMethod[] = 513 "settings.language.current_input_method"; 514 515// A string pref set to the previous input method. 516const char kLanguagePreviousInputMethod[] = 517 "settings.language.previous_input_method"; 518 519// A string pref (comma-separated list) set to the "next engine in menu" 520// hot-key lists. 521const char kLanguageHotkeyNextEngineInMenu[] = 522 "settings.language.hotkey_next_engine_in_menu"; 523 524// A string pref (comma-separated list) set to the "previous engine" 525// hot-key lists. 526const char kLanguageHotkeyPreviousEngine[] = 527 "settings.language.hotkey_previous_engine"; 528 529// A string pref (comma-separated list) set to the preferred language IDs 530// (ex. "en-US,fr,ko"). 531const char kLanguagePreferredLanguages[] = 532 "settings.language.preferred_languages"; 533 534// A string pref (comma-separated list) set to the preloaded (active) input 535// method IDs (ex. "pinyin,mozc"). 536const char kLanguagePreloadEngines[] = "settings.language.preload_engines"; 537 538// A List pref (comma-separated list) set to the extension IMEs to be enabled. 539const char kLanguageEnabledExtensionImes[] = 540 "settings.language.enabled_extension_imes"; 541 542// Integer prefs which determine how we remap modifier keys (e.g. swap Alt and 543// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in 544// src/chrome/browser/chromeos/input_method/xkeyboard.h 545const char kLanguageRemapSearchKeyTo[] = 546 // Note: we no longer use XKB for remapping these keys, but we can't change 547 // the pref names since the names are already synced with the cloud. 548 "settings.language.xkb_remap_search_key_to"; 549const char kLanguageRemapControlKeyTo[] = 550 "settings.language.xkb_remap_control_key_to"; 551const char kLanguageRemapAltKeyTo[] = 552 "settings.language.xkb_remap_alt_key_to"; 553const char kLanguageRemapCapsLockKeyTo[] = 554 "settings.language.remap_caps_lock_key_to"; 555const char kLanguageRemapDiamondKeyTo[] = 556 "settings.language.remap_diamond_key_to"; 557 558// A boolean pref that causes top-row keys to be interpreted as function keys 559// instead of as media keys. 560const char kLanguageSendFunctionKeys[] = 561 "settings.language.send_function_keys"; 562 563// A boolean pref which determines whether key repeat is enabled. 564const char kLanguageXkbAutoRepeatEnabled[] = 565 "settings.language.xkb_auto_repeat_enabled_r2"; 566// A integer pref which determines key repeat delay (in ms). 567const char kLanguageXkbAutoRepeatDelay[] = 568 "settings.language.xkb_auto_repeat_delay_r2"; 569// A integer pref which determines key repeat interval (in ms). 570const char kLanguageXkbAutoRepeatInterval[] = 571 "settings.language.xkb_auto_repeat_interval_r2"; 572// "_r2" suffixes were added to the three prefs above when we changed the 573// preferences to not be user-configurable or sync with the cloud. The prefs are 574// now user-configurable and syncable again, but we don't want to overwrite the 575// current values with the old synced values, so we continue to use this suffix. 576 577// A boolean pref which determines whether the large cursor feature is enabled. 578const char kAccessibilityLargeCursorEnabled[] = 579 "settings.a11y.large_cursor_enabled"; 580 581// A boolean pref which determines whether the sticky keys feature is enabled. 582const char kAccessibilityStickyKeysEnabled[] = 583 "settings.a11y.sticky_keys_enabled"; 584// A boolean pref which determines whether spoken feedback is enabled. 585const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility"; 586// A boolean pref which determines whether high conrast is enabled. 587const char kAccessibilityHighContrastEnabled[] = 588 "settings.a11y.high_contrast_enabled"; 589// A boolean pref which determines whether screen magnifier is enabled. 590const char kAccessibilityScreenMagnifierEnabled[] = 591 "settings.a11y.screen_magnifier"; 592// A integer pref which determines what type of screen magnifier is enabled. 593// Note that: 'screen_magnifier_type' had been used as string pref. Hence, 594// we are using another name pref here. 595const char kAccessibilityScreenMagnifierType[] = 596 "settings.a11y.screen_magnifier_type2"; 597// A double pref which determines a zooming scale of the screen magnifier. 598const char kAccessibilityScreenMagnifierScale[] = 599 "settings.a11y.screen_magnifier_scale"; 600// A boolean pref which determines whether the virtual keyboard is enabled for 601// accessibility. This feature is separate from displaying an onscreen keyboard 602// due to lack of a physical keyboard. 603const char kAccessibilityVirtualKeyboardEnabled[] = 604 "settings.a11y.virtual_keyboard"; 605// A boolean pref which determines whether autoclick is enabled. 606const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick"; 607// An integer pref which determines time in ms between when the mouse cursor 608// stops and when an autoclick is triggered. 609const char kAccessibilityAutoclickDelayMs[] = 610 "settings.a11y.autoclick_delay_ms"; 611// A boolean pref which determines whether the accessibility menu shows 612// regardless of the state of a11y features. 613const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu"; 614 615// A boolean pref which turns on Advanced Filesystem 616// (USB support, SD card, etc). 617const char kLabsAdvancedFilesystemEnabled[] = 618 "settings.labs.advanced_filesystem"; 619 620// A boolean pref which turns on the mediaplayer. 621const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer"; 622 623// A boolean pref that turns on automatic screen locking. 624const char kEnableAutoScreenLock[] = "settings.enable_screen_lock"; 625 626// A boolean pref of whether to show mobile plan notifications. 627const char kShowPlanNotifications[] = 628 "settings.internet.mobile.show_plan_notifications"; 629 630// A boolean pref of whether to show 3G promo notification. 631const char kShow3gPromoNotification[] = 632 "settings.internet.mobile.show_3g_promo_notification"; 633 634// A string pref that contains version where "What's new" promo was shown. 635const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version"; 636 637// A boolean pref that controls whether proxy settings from shared network 638// settings (accordingly from device policy) are applied or ignored. 639const char kUseSharedProxies[] = "settings.use_shared_proxies"; 640 641// Power state of the current displays from the last run. 642const char kDisplayPowerState[] = "settings.display.power_state"; 643// A dictionary pref that stores per display preferences. 644const char kDisplayProperties[] = "settings.display.properties"; 645 646// A dictionary pref that specifies per-display layout/offset information. 647// Its key is the ID of the display and its value is a dictionary for the 648// layout/offset information. 649const char kSecondaryDisplays[] = "settings.display.secondary_displays"; 650 651// A boolean pref indicating whether user activity has been observed in the 652// current session already. The pref is used to restore information about user 653// activity after browser crashes. 654const char kSessionUserActivitySeen[] = "session.user_activity_seen"; 655 656// A preference to keep track of the session start time. If the session length 657// limit is configured to start running after initial user activity has been 658// observed, the pref is set after the first user activity in a session. 659// Otherwise, it is set immediately after session start. The pref is used to 660// restore the session start time after browser crashes. The time is expressed 661// as the serialization obtained from base::TimeTicks::ToInternalValue(). 662const char kSessionStartTime[] = "session.start_time"; 663 664// Holds the maximum session time in milliseconds. If this pref is set, the 665// user is logged out when the maximum session time is reached. The user is 666// informed about the remaining time by a countdown timer shown in the ash 667// system tray. 668const char kSessionLengthLimit[] = "session.length_limit"; 669 670// Whether the session length limit should start running only after the first 671// user activity has been observed in a session. 672const char kSessionWaitForInitialUserActivity[] = 673 "session.wait_for_initial_user_activity"; 674 675// Inactivity time in milliseconds while the system is on AC power before 676// the screen should be dimmed, turned off, or locked, before an 677// IdleActionImminent D-Bus signal should be sent, or before 678// kPowerAcIdleAction should be performed. 0 disables the delay (N/A for 679// kPowerAcIdleDelayMs). 680const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; 681const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; 682const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; 683const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms"; 684const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; 685 686// Similar delays while the system is on battery power. 687const char kPowerBatteryScreenDimDelayMs[] = 688 "power.battery_screen_dim_delay_ms"; 689const char kPowerBatteryScreenOffDelayMs[] = 690 "power.battery_screen_off_delay_ms"; 691const char kPowerBatteryScreenLockDelayMs[] = 692 "power.battery_screen_lock_delay_ms"; 693const char kPowerBatteryIdleWarningDelayMs[] = 694 "power.battery_idle_warning_delay_ms"; 695const char kPowerBatteryIdleDelayMs[] = 696 "power.battery_idle_delay_ms"; 697 698// Action that should be performed when the idle delay is reached while the 699// system is on AC power or battery power. 700// Values are from the chromeos::PowerPolicyController::Action enum. 701const char kPowerAcIdleAction[] = "power.ac_idle_action"; 702const char kPowerBatteryIdleAction[] = "power.battery_idle_action"; 703 704// Action that should be performed when the lid is closed. 705// Values are from the chromeos::PowerPolicyController::Action enum. 706const char kPowerLidClosedAction[] = "power.lid_closed_action"; 707 708// Should audio and video activity be used to disable the above delays? 709const char kPowerUseAudioActivity[] = "power.use_audio_activity"; 710const char kPowerUseVideoActivity[] = "power.use_video_activity"; 711 712// Should extensions be able to use the chrome.power API to override 713// screen-related power management (including locking)? 714const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks"; 715 716// Amount by which the screen-dim delay should be scaled while the system 717// is in presentation mode. Values are limited to a minimum of 1.0. 718const char kPowerPresentationScreenDimDelayFactor[] = 719 "power.presentation_screen_dim_delay_factor"; 720 721// Amount by which the screen-dim delay should be scaled when user activity is 722// observed while the screen is dimmed or soon after the screen has been turned 723// off. Values are limited to a minimum of 1.0. 724const char kPowerUserActivityScreenDimDelayFactor[] = 725 "power.user_activity_screen_dim_delay_factor"; 726 727// Whether the power management delays should start running only after the first 728// user activity has been observed in a session. 729const char kPowerWaitForInitialUserActivity[] = 730 "power.wait_for_initial_user_activity"; 731 732// The URL from which the Terms of Service can be downloaded. The value is only 733// honored for public accounts. 734const char kTermsOfServiceURL[] = "terms_of_service.url"; 735 736// Indicates that the Profile has made navigations that used a certificate 737// installed by the system administrator. If that is true then the local cache 738// of remote data is tainted (e.g. shared scripts), and future navigations 739// show a warning indicating that the organization may track the browsing 740// session. 741const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once"; 742 743// Indicates whether the remote attestation is enabled for the user. 744const char kAttestationEnabled[] = "attestation.enabled"; 745// The list of extensions allowed to use the platformKeysPrivate API for 746// remote attestation. 747const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist"; 748 749// A boolean pref indicating whether the projection touch HUD is enabled or not. 750const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled"; 751 752// A pref to configure networks. Its value must be a list of 753// NetworkConfigurations according to the OpenNetworkConfiguration 754// specification. 755// Currently, this pref is only used to store the policy. The user's 756// configuration is still stored in Shill. 757const char kOpenNetworkConfiguration[] = "onc"; 758 759// A boolean pref that tracks whether the user has already given consent for 760// enabling remote attestation for content protection. 761const char kRAConsentFirstTime[] = "settings.privacy.ra_consent"; 762 763// A boolean pref recording whether user has dismissed the multiprofile 764// itroduction dialog show. 765const char kMultiProfileNeverShowIntro[] = 766 "settings.multi_profile_never_show_intro"; 767 768// A boolean pref recording whether user has dismissed the multiprofile 769// teleport warning dialog show. 770const char kMultiProfileWarningShowDismissed[] = 771 "settings.multi_profile_warning_show_dismissed"; 772 773// A string pref that holds string enum values of how the user should behave 774// in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy 775// for more details of the valid values. 776const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior"; 777 778// A boolean preference indicating whether user has seen first-run tutorial 779// already. 780const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown"; 781 782// Indicates the amount of time for which a user authenticated via SAML can use 783// offline authentication against a cached password before being forced to go 784// through online authentication against GAIA again. The time is expressed in 785// seconds. A value of -1 indicates no limit, allowing the user to use offline 786// authentication indefinitely. The limit is in effect only if GAIA redirected 787// the user to a SAML IdP during the last online authentication. 788const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit"; 789 790// A preference to keep track of the last time the user authenticated against 791// GAIA using SAML. The preference is updated whenever the user authenticates 792// against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the 793// current time. If GAIA performs the authentication itself, the preference is 794// cleared. The time is expressed as the serialization obtained from 795// base::Time::ToInternalValue(). 796const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time"; 797 798// The total number of seconds that the machine has spent sitting on the 799// OOBE screen. 800const char kTimeOnOobe[] = "settings.time_on_oobe"; 801 802// The app/extension name who sets the current wallpaper. If current wallpaper 803// is set by the component wallpaper picker, it is set to an empty string. 804const char kCurrentWallpaperAppName[] = "wallpaper.app.name"; 805 806// List of mounted file systems via the File System Provider API. Used to 807// restore them after a reboot. 808const char kFileSystemProviderMounted[] = "file_system_provider.mounted"; 809 810// A boolean pref set to true if the virtual keyboard should be enabled. 811const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled"; 812 813#endif // defined(OS_CHROMEOS) 814 815// The disabled messages in IPC logging. 816const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 817 818// A boolean pref set to true if a Home button to open the Home pages should be 819// visible on the toolbar. 820const char kShowHomeButton[] = "browser.show_home_button"; 821 822// A string value which saves short list of recently user selected encodings 823// separated with comma punctuation mark. 824const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings"; 825 826// Clear Browsing Data dialog preferences. 827const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history"; 828const char kDeleteDownloadHistory[] = "browser.clear_data.download_history"; 829const char kDeleteCache[] = "browser.clear_data.cache"; 830const char kDeleteCookies[] = "browser.clear_data.cookies"; 831const char kDeletePasswords[] = "browser.clear_data.passwords"; 832const char kDeleteFormData[] = "browser.clear_data.form_data"; 833const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data"; 834const char kDeauthorizeContentLicenses[] = 835 "browser.clear_data.content_licenses"; 836const char kDeleteTimePeriod[] = "browser.clear_data.time_period"; 837const char kLastClearBrowsingDataTime[] = 838 "browser.last_clear_browsing_data_time"; 839 840// Boolean pref to define the default values for using spellchecker. 841const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking"; 842 843// List of names of the enabled labs experiments (see chrome/browser/labs.cc). 844const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments"; 845 846// Boolean pref to define the default values for using auto spell correct. 847const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect"; 848 849// Boolean pref to define the default setting for "block offensive words". 850// The old key value is kept to avoid unnecessary migration code. 851const char kSpeechRecognitionFilterProfanities[] = 852 "browser.speechinput_censor_results"; 853 854// List of speech recognition context names (extensions or websites) for which 855// the tray notification balloon has already been shown. 856const char kSpeechRecognitionTrayNotificationShownContexts[] = 857 "browser.speechinput_tray_notification_shown_contexts"; 858 859// Boolean controlling whether history saving is disabled. 860const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled"; 861 862// Boolean controlling whether deleting browsing and download history is 863// permitted. 864const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled"; 865 866// Boolean controlling whether SafeSearch is mandatory for Google Web Searches. 867const char kForceSafeSearch[] = "settings.force_safesearch"; 868 869#if defined(OS_LINUX) && !defined(OS_CHROMEOS) 870// Linux specific preference on whether we should match the system theme. 871const char kUsesSystemTheme[] = "extensions.theme.use_system"; 872#endif 873const char kCurrentThemePackFilename[] = "extensions.theme.pack"; 874const char kCurrentThemeID[] = "extensions.theme.id"; 875const char kCurrentThemeImages[] = "extensions.theme.images"; 876const char kCurrentThemeColors[] = "extensions.theme.colors"; 877const char kCurrentThemeTints[] = "extensions.theme.tints"; 878const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties"; 879 880// Boolean pref which persists whether the extensions_ui is in developer mode 881// (showing developer packing tools and extensions details) 882const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode"; 883 884// Boolean pref which indicates whether the Chrome Apps & Extensions Developer 885// Tool promotion has been dismissed by the user. 886const char kExtensionsUIDismissedADTPromo[] = 887 "extensions.ui.dismissed_adt_promo"; 888 889// Dictionary pref that tracks which command belongs to which 890// extension + named command pair. 891const char kExtensionCommands[] = "extensions.commands"; 892 893// Pref containing the directory for internal plugins as written to the plugins 894// list (below). 895const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory"; 896 897// List pref containing information (dictionaries) on plugins. 898const char kPluginsPluginsList[] = "plugins.plugins_list"; 899 900// List pref containing names of plugins that are disabled by policy. 901const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 902 903// List pref containing exceptions to the list of plugins disabled by policy. 904const char kPluginsDisabledPluginsExceptions[] = 905 "plugins.plugins_disabled_exceptions"; 906 907// List pref containing names of plugins that are enabled by policy. 908const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; 909 910// When bundled NPAPI Flash is removed, if at that point it is enabled while 911// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will 912// want to do so only once. 913const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash"; 914 915// In the early stage of component-updated PPAPI Flash, we did field trials in 916// which it was set to disabled by default. The corresponding settings item may 917// remain in some users' profiles. Currently it affects both the bundled and 918// component-updated PPAPI Flash (since the two share the same enable/disable 919// state). We want to remove this item to get those users to use PPAPI Flash. 920// We will want to do so only once. 921const char kPluginsRemovedOldComponentPepperFlashSettings[] = 922 "plugins.removed_old_component_pepper_flash_settings"; 923 924#if !defined(OS_ANDROID) 925// Whether about:plugins is shown in the details mode or not. 926const char kPluginsShowDetails[] = "plugins.show_details"; 927#endif 928 929// Boolean that indicates whether outdated plugins are allowed or not. 930const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; 931 932// Boolean that indicates whether plugins that require authorization should 933// be always allowed or not. 934const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; 935 936#if defined(ENABLE_PLUGIN_INSTALLATION) 937// Dictionary holding plug-ins metadata. 938const char kPluginsMetadata[] = "plugins.metadata"; 939 940// Last update time of plug-ins resource cache. 941const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update"; 942#endif 943 944// Boolean that indicates whether we should check if we are the default browser 945// on start-up. 946const char kCheckDefaultBrowser[] = "browser.check_default_browser"; 947 948// Policy setting whether default browser check should be disabled and default 949// browser registration should take place. 950const char kDefaultBrowserSettingEnabled[] = 951 "browser.default_browser_setting_enabled"; 952 953#if defined(OS_MACOSX) 954// Boolean that indicates whether the application should show the info bar 955// asking the user to set up automatic updates when Keystone promotion is 956// required. 957const char kShowUpdatePromotionInfoBar[] = 958 "browser.show_update_promotion_info_bar"; 959#endif 960 961// Boolean that is false if we should show window manager decorations. If 962// true, we draw a custom chrome frame (thicker title bar and blue border). 963const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; 964 965// Dictionary of content settings applied to all hosts by default. 966const char kDefaultContentSettings[] = "profile.default_content_settings"; 967 968// Boolean indicating whether the clear on exit pref was migrated to content 969// settings yet. 970const char kContentSettingsClearOnExitMigrated[] = 971 "profile.content_settings.clear_on_exit_migrated"; 972 973// Version of the pattern format used to define content settings. 974const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; 975 976// Patterns for mapping origins to origin related settings. Default settings 977// will be applied to origins that don't match any of the patterns. The pattern 978// format used is defined by kContentSettingsVersion. 979const char kContentSettingsPatternPairs[] = 980 "profile.content_settings.pattern_pairs"; 981 982// Version of the content settings whitelist. 983const char kContentSettingsDefaultWhitelistVersion[] = 984 "profile.content_settings.whitelist_version"; 985 986#if !defined(OS_ANDROID) 987// Which plugins have been whitelisted manually by the user. 988const char kContentSettingsPluginWhitelist[] = 989 "profile.content_settings.plugin_whitelist"; 990#endif 991 992// Boolean that is true if we should unconditionally block third-party cookies, 993// regardless of other content settings. 994const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 995 996// Boolean that is true when all locally stored site data (e.g. cookies, local 997// storage, etc..) should be deleted on exit. 998const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; 999 1000// Double that indicates the default zoom level. 1001const char kDefaultZoomLevel[] = "profile.default_zoom_level"; 1002 1003// Dictionary that maps hostnames to zoom levels. Hosts not in this pref will 1004// be displayed at the default zoom level. 1005const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels"; 1006 1007// A dictionary that tracks the default data model to use for each section of 1008// the dialog. 1009const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default"; 1010 1011// Whether a user opted out of making purchases with Google Wallet; changed via 1012// the autofill dialog's account chooser and set explicitly on dialog submission 1013// (but not cancel). If this isn't set, the dialog assumes it's the first run. 1014const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet"; 1015 1016// Which GAIA users have accepted that use of Google Wallet implies their 1017// location will be shared with fraud protection services. 1018const char kAutofillDialogWalletLocationAcceptance[] = 1019 "autofill.wallet_location_disclosure"; 1020 1021// Whether a user wants to save data locally in Autofill. 1022const char kAutofillDialogSaveData[] = "autofill.save_data"; 1023 1024// Whether the user has selected "Same as billing" for the shipping address when 1025// using Google Wallet. 1026const char kAutofillDialogWalletShippingSameAsBilling[] = 1027 "autofill.wallet_shipping_same_as_billing"; 1028 1029// The number of times the generated credit card bubble has been shown. 1030const char kAutofillGeneratedCardBubbleTimesShown[] = 1031 "autofill.generated_card_bubble_times_shown"; 1032 1033// A dictionary that tracks the defaults to be set on the next invocation 1034// of the requestAutocomplete dialog. 1035const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; 1036 1037#if !defined(OS_ANDROID) 1038const char kPinnedTabs[] = "pinned_tabs"; 1039#endif 1040 1041#if defined(OS_ANDROID) 1042// Boolean that controls the enabled-state of Geolocation in content. 1043const char kGeolocationEnabled[] = "geolocation.enabled"; 1044#endif 1045 1046#if defined(ENABLE_GOOGLE_NOW) 1047// Boolean that is true when Google services can use the user's location. 1048const char kGoogleGeolocationAccessEnabled[] = 1049 "googlegeolocationaccess.enabled"; 1050#endif 1051 1052// The default audio capture device used by the Media content setting. 1053const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device"; 1054 1055// The default video capture device used by the Media content setting. 1056const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device"; 1057 1058// The salt used for creating random MediaSource IDs. 1059const char kMediaDeviceIdSalt[] = "media.device_id_salt"; 1060 1061// Preference to disable 3D APIs (WebGL, Pepper 3D). 1062const char kDisable3DAPIs[] = "disable_3d_apis"; 1063 1064const char kEnableDeprecatedWebPlatformFeatures[] = 1065 "enable_deprecated_web_platform_features"; 1066 1067// Whether to enable hyperlink auditing ("<a ping>"). 1068const char kEnableHyperlinkAuditing[] = "enable_a_ping"; 1069 1070// Whether to enable sending referrers. 1071const char kEnableReferrers[] = "enable_referrers"; 1072 1073// Whether to send the DNT header. 1074const char kEnableDoNotTrack[] = "enable_do_not_track"; 1075 1076// GL_VENDOR string. 1077const char kGLVendorString[] = "gl_vendor_string"; 1078 1079// GL_RENDERER string. 1080const char kGLRendererString[] = "gl_renderer_string"; 1081 1082// GL_VERSION string. 1083const char kGLVersionString[] = "gl_version_string"; 1084 1085// Boolean that specifies whether to import bookmarks from the default browser 1086// on first run. 1087const char kImportBookmarks[] = "import_bookmarks"; 1088 1089// Boolean that specifies whether to import the browsing history from the 1090// default browser on first run. 1091const char kImportHistory[] = "import_history"; 1092 1093// Boolean that specifies whether to import the homepage from the default 1094// browser on first run. 1095const char kImportHomepage[] = "import_home_page"; 1096 1097// Boolean that specifies whether to import the search engine from the default 1098// browser on first run. 1099const char kImportSearchEngine[] = "import_search_engine"; 1100 1101// Boolean that specifies whether to import the saved passwords from the default 1102// browser on first run. 1103const char kImportSavedPasswords[] = "import_saved_passwords"; 1104 1105// Profile avatar and name 1106const char kProfileAvatarIndex[] = "profile.avatar_index"; 1107const char kProfileName[] = "profile.name"; 1108 1109// The supervised user ID. 1110const char kSupervisedUserId[] = "profile.managed_user_id"; 1111 1112// 64-bit integer serialization of the base::Time when the user's GAIA info 1113// was last updated. 1114const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time"; 1115 1116// The URL from which the GAIA profile picture was downloaded. This is cached to 1117// prevent the same picture from being downloaded multiple times. 1118const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url"; 1119 1120// Integer that specifies the number of times that we have shown the upgrade 1121// tutorial card in the avatar menu bubble. 1122const char kProfileAvatarTutorialShown[] = 1123 "profile.avatar_bubble_tutorial_shown"; 1124 1125// Boolean that specifies whether we have shown the user manager tutorial. 1126const char kProfileUserManagerTutorialShown[] = 1127 "profile.user_manager_tutorial_shown"; 1128 1129// Indicates if we've already shown a notification that high contrast 1130// mode is on, recommending high-contrast extensions and themes. 1131const char kInvertNotificationShown[] = "invert_notification_version_2_shown"; 1132 1133// Boolean controlling whether printing is enabled. 1134const char kPrintingEnabled[] = "printing.enabled"; 1135 1136// Boolean controlling whether print preview is disabled. 1137const char kPrintPreviewDisabled[] = "printing.print_preview_disabled"; 1138 1139// An integer pref specifying the fallback behavior for sites outside of content 1140// packs. One of: 1141// 0: Allow (does nothing) 1142// 1: Warn. 1143// 2: Block. 1144const char kDefaultSupervisedUserFilteringBehavior[] = 1145 "profile.managed.default_filtering_behavior"; 1146 1147// Whether this user is permitted to create supervised users. 1148const char kSupervisedUserCreationAllowed[] = 1149 "profile.managed_user_creation_allowed"; 1150 1151// List pref containing the users supervised by this user. 1152const char kSupervisedUsers[] = "profile.managed_users"; 1153 1154// List pref containing the extension ids which are not allowed to send 1155// notifications to the message center. 1156const char kMessageCenterDisabledExtensionIds[] = 1157 "message_center.disabled_extension_ids"; 1158 1159// List pref containing the system component ids which are not allowed to send 1160// notifications to the message center. 1161const char kMessageCenterDisabledSystemComponentIds[] = 1162 "message_center.disabled_system_component_ids"; 1163 1164// Boolean pref indicating the Chrome Now welcome notification was dismissed 1165// by the user. Syncable. 1166// Note: This is now read-only. The welcome notification writes the _local 1167// version, below. 1168extern const char kWelcomeNotificationDismissed[] = 1169 "message_center.welcome_notification_dismissed"; 1170 1171// Boolean pref indicating the Chrome Now welcome notification was dismissed 1172// by the user on this machine. 1173extern const char kWelcomeNotificationDismissedLocal[] = 1174 "message_center.welcome_notification_dismissed_local"; 1175 1176// Boolean pref indicating the welcome notification was previously popped up. 1177extern const char kWelcomeNotificationPreviouslyPoppedUp[] = 1178 "message_center.welcome_notification_previously_popped_up"; 1179 1180// Integer pref containing the expiration timestamp of the welcome notification. 1181extern const char kWelcomeNotificationExpirationTimestamp[] = 1182 "message_center.welcome_notification_expiration_timestamp"; 1183 1184// Boolean pref that determines whether the user can enter fullscreen mode. 1185// Disabling fullscreen mode also makes kiosk mode unavailable on desktop 1186// platforms. 1187extern const char kFullscreenAllowed[] = "fullscreen.allowed"; 1188 1189// Enable notifications for new devices on the local network that can be 1190// registered to the user's account, e.g. Google Cloud Print printers. 1191const char kLocalDiscoveryNotificationsEnabled[] = 1192 "local_discovery.notifications_enabled"; 1193 1194// A timestamp (stored in base::Time::ToInternalValue format) of the last time 1195// a preference was reset. 1196const char kPreferenceResetTime[] = "prefs.preference_reset_time"; 1197 1198// The GCM channel's enabled state. 1199const char kGCMChannelEnabled[] = "gcm.channel_enabled"; 1200 1201// How many Service Workers are registered with the Push API (could be zero). 1202const char kPushMessagingRegistrationCount[] = 1203 "gcm.push_messaging_registration_count"; 1204 1205// Whether Easy Unlock is enabled. 1206const char kEasyUnlockEnabled[] = "easy_unlock.enabled"; 1207 1208// Whether to show the Easy Unlock first run tutorial. 1209const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial"; 1210 1211// Preference storing Easy Unlock pairing data. 1212const char kEasyUnlockPairing[] = "easy_unlock.pairing"; 1213 1214// Whether a user is allowed to use Easy Unlock. 1215const char kEasyUnlockAllowed[] = "easy_unlock.allowed"; 1216 1217// A cache of zero suggest results using JSON serialized into a string. 1218const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults"; 1219 1220// *************** LOCAL STATE *************** 1221// These are attached to the machine/installation 1222 1223// A pref to configure networks device-wide. Its value must be a list of 1224// NetworkConfigurations according to the OpenNetworkConfiguration 1225// specification. 1226// Currently, this pref is only used to store the policy. The user's 1227// configuration is still stored in Shill. 1228const char kDeviceOpenNetworkConfiguration[] = "device_onc"; 1229 1230// Directory of the last profile used. 1231const char kProfileLastUsed[] = "profile.last_used"; 1232 1233// List of directories of the profiles last active. 1234const char kProfilesLastActive[] = "profile.last_active_profiles"; 1235 1236// Total number of profiles created for this Chrome build. Used to tag profile 1237// directories. 1238const char kProfilesNumCreated[] = "profile.profiles_created"; 1239 1240// String containing the version of Chrome that the profile was created by. 1241// If profile was created before this feature was added, this pref will default 1242// to "1.0.0.0". 1243const char kProfileCreatedByVersion[] = "profile.created_by_version"; 1244 1245// A map of profile data directory to cached information. This cache can be 1246// used to display information about profiles without actually having to load 1247// them. 1248const char kProfileInfoCache[] = "profile.info_cache"; 1249 1250// Prefs for SSLConfigServicePref. 1251const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled"; 1252const char kCertRevocationCheckingRequiredLocalAnchors[] = 1253 "ssl.rev_checking.required_for_local_anchors"; 1254const char kSSLVersionMin[] = "ssl.version_min"; 1255const char kSSLVersionMax[] = "ssl.version_max"; 1256const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist"; 1257const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled"; 1258 1259// Dictionary of dates when a site's SSL blocking interstitial was proceeded 1260// through. 1261const char kSSLBlockingBypassed[] = "ssl.ssl_blocking_bypassed"; 1262 1263// A boolean pref of the EULA accepted flag. 1264const char kEulaAccepted[] = "EulaAccepted"; 1265 1266// Boolean that specifies whether or not crash reporting and metrics reporting 1267// are sent over the network for analysis. 1268const char kMetricsReportingEnabled[] = 1269 "user_experience_metrics.reporting_enabled"; 1270 1271// Boolean that specifies whether or not crash reports are sent 1272// over the network for analysis. 1273#if defined(OS_ANDROID) 1274const char kCrashReportingEnabled[] = 1275 "user_experience_metrics_crash.reporting_enabled"; 1276#endif 1277 1278// 64-bit integer serialization of the base::Time from the last successful seed 1279// fetch (i.e. when the Variations server responds with 200 or 304). 1280const char kVariationsLastFetchTime[] = "variations_last_fetch_time"; 1281 1282// String for the restrict parameter to be appended to the variations URL. 1283const char kVariationsRestrictParameter[] = "variations_restrict_parameter"; 1284 1285// String serialized form of variations seed protobuf. 1286const char kVariationsSeed[] = "variations_seed"; 1287 1288// 64-bit integer serialization of the base::Time from the last seed received. 1289const char kVariationsSeedDate[] = "variations_seed_date"; 1290 1291// SHA-1 hash of the serialized variations seed data (hex encoded). 1292const char kVariationsSeedHash[] = "variations_seed_hash"; 1293 1294// Digital signature of the binary variations seed data, base64-encoded. 1295const char kVariationsSeedSignature[] = "variations_seed_signature"; 1296 1297// Number of times a page load event occurred since the last report. 1298const char kStabilityPageLoadCount[] = 1299 "user_experience_metrics.stability.page_load_count"; 1300 1301// Number of times a renderer process crashed since the last report. 1302const char kStabilityRendererCrashCount[] = 1303 "user_experience_metrics.stability.renderer_crash_count"; 1304 1305// Number of times an extension renderer process crashed since the last report. 1306const char kStabilityExtensionRendererCrashCount[] = 1307 "user_experience_metrics.stability.extension_renderer_crash_count"; 1308 1309// This is the location of a list of dictionaries of plugin stability stats. 1310const char kStabilityPluginStats[] = 1311 "user_experience_metrics.stability.plugin_stats2"; 1312 1313// Number of times the renderer has become non-responsive since the last 1314// report. 1315const char kStabilityRendererHangCount[] = 1316 "user_experience_metrics.stability.renderer_hang_count"; 1317 1318// Total number of child process crashes (other than renderer / extension 1319// renderer ones, and plugin children, which are counted separately) since the 1320// last report. 1321const char kStabilityChildProcessCrashCount[] = 1322 "user_experience_metrics.stability.child_process_crash_count"; 1323 1324// On Chrome OS, total number of non-Chrome user process crashes 1325// since the last report. 1326const char kStabilityOtherUserCrashCount[] = 1327 "user_experience_metrics.stability.other_user_crash_count"; 1328 1329// On Chrome OS, total number of kernel crashes since the last report. 1330const char kStabilityKernelCrashCount[] = 1331 "user_experience_metrics.stability.kernel_crash_count"; 1332 1333// On Chrome OS, total number of unclean system shutdowns since the 1334// last report. 1335const char kStabilitySystemUncleanShutdownCount[] = 1336 "user_experience_metrics.stability.system_unclean_shutdowns"; 1337 1338#if defined(OS_ANDROID) 1339// Activity type that is currently in the foreground for the UMA session. 1340// Uses the ActivityTypeIds::Type enum. 1341const char kStabilityForegroundActivityType[] = 1342 "user_experience_metrics.stability.current_foreground_activity_type"; 1343 1344// Tracks which Activities were launched during the last session. 1345// See |metrics_service_android.cc| for its usage. 1346const char kStabilityLaunchedActivityFlags[] = 1347 "user_experience_metrics.stability.launched_activity_flags"; 1348 1349// List pref: Counts how many times each Activity was launched. 1350// Indexed into by ActivityTypeIds::Type. 1351const char kStabilityLaunchedActivityCounts[] = 1352 "user_experience_metrics.stability.launched_activity_counts"; 1353 1354// List pref: Counts how many times each Activity type was in the foreground 1355// when a UMA session failed to be shut down properly. 1356// Indexed into by ActivityTypeIds::Type. 1357const char kStabilityCrashedActivityCounts[] = 1358 "user_experience_metrics.stability.crashed_activity_counts"; 1359#endif 1360 1361// The keys below are used for the dictionaries in the 1362// kStabilityPluginStats list. 1363const char kStabilityPluginName[] = "name"; 1364const char kStabilityPluginLaunches[] = "launches"; 1365const char kStabilityPluginInstances[] = "instances"; 1366const char kStabilityPluginCrashes[] = "crashes"; 1367const char kStabilityPluginLoadingErrors[] = "loading_errors"; 1368 1369// The keys below are strictly increasing counters over the lifetime of 1370// a chrome installation. They are (optionally) sent up to the uninstall 1371// survey in the event of uninstallation. 1372const char kUninstallMetricsPageLoadCount[] = 1373 "uninstall_metrics.page_load_count"; 1374const char kUninstallLastLaunchTimeSec[] = 1375 "uninstall_metrics.last_launch_time_sec"; 1376const char kUninstallLastObservedRunTimeSec[] = 1377 "uninstall_metrics.last_observed_running_time_sec"; 1378 1379// String containing the version of Chrome for which Chrome will not prompt the 1380// user about setting Chrome as the default browser. 1381const char kBrowserSuppressDefaultBrowserPrompt[] = 1382 "browser.suppress_default_browser_prompt_for_version"; 1383 1384// A collection of position, size, and other data relating to the browser 1385// window to restore on startup. 1386const char kBrowserWindowPlacement[] = "browser.window_placement"; 1387 1388// Browser window placement for popup windows. 1389const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup"; 1390 1391// A collection of position, size, and other data relating to the task 1392// manager window to restore on startup. 1393const char kTaskManagerWindowPlacement[] = "task_manager.window_placement"; 1394 1395// A collection of position, size, and other data relating to the keyword 1396// editor window to restore on startup. 1397const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement"; 1398 1399// A collection of position, size, and other data relating to the preferences 1400// window to restore on startup. 1401const char kPreferencesWindowPlacement[] = "preferences.window_placement"; 1402 1403// An integer specifying the total number of bytes to be used by the 1404// renderer's in-memory cache of objects. 1405const char kMemoryCacheSize[] = "renderer.memory_cache.size"; 1406 1407// String which specifies where to download files to by default. 1408const char kDownloadDefaultDirectory[] = "download.default_directory"; 1409 1410// Boolean that records if the download directory was changed by an 1411// upgrade a unsafe location to a safe location. 1412const char kDownloadDirUpgraded[] = "download.directory_upgrade"; 1413 1414#if defined(OS_WIN) 1415// Whether downloaded PDFs should be opened in Adobe Acrobat Reader. 1416const char kOpenPdfDownloadInAdobeReader[] = 1417 "download.open_pdf_in_adobe_reader"; 1418#endif 1419 1420// String which specifies where to save html files to by default. 1421const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; 1422 1423// The type used to save the page. See the enum SavePackage::SavePackageType in 1424// the chrome/browser/download/save_package.h for the possible values. 1425const char kSaveFileType[] = "savefile.type"; 1426 1427// String which specifies the last directory that was chosen for uploading 1428// or opening a file. 1429const char kSelectFileLastDirectory[] = "selectfile.last_directory"; 1430 1431// Boolean that specifies if file selection dialogs are shown. 1432const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; 1433 1434// Map of default tasks, associated by MIME type. 1435const char kDefaultTasksByMimeType[] = 1436 "filebrowser.tasks.default_by_mime_type"; 1437 1438// Map of default tasks, associated by file suffix. 1439const char kDefaultTasksBySuffix[] = 1440 "filebrowser.tasks.default_by_suffix"; 1441 1442// Extensions which should be opened upon completion. 1443const char kDownloadExtensionsToOpen[] = "download.extensions_to_open"; 1444 1445// Integer which specifies the frequency in milliseconds for detecting whether 1446// plugin windows are hung. 1447const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq"; 1448 1449// Integer which specifies the timeout value to be used for SendMessageTimeout 1450// to detect a hung plugin window. 1451const char kPluginMessageResponseTimeout[] = 1452 "browser.plugin_message_response_timeout"; 1453 1454// String which represents the dictionary name for our spell-checker. 1455const char kSpellCheckDictionary[] = "spellcheck.dictionary"; 1456 1457// String which represents whether we use the spelling service. 1458const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service"; 1459 1460// Dictionary of schemes used by the external protocol handler. 1461// The value is true if the scheme must be ignored. 1462const char kExcludedSchemes[] = "protocol_handler.excluded_schemes"; 1463 1464// Keys used for MAC handling of SafeBrowsing requests. 1465const char kSafeBrowsingClientKey[] = "safe_browsing.client_key"; 1466const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key"; 1467 1468// Integer that specifies the index of the tab the user was on when they 1469// last visited the options window. 1470const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index"; 1471 1472// Integer that specifies the index of the tab the user was on when they 1473// last visited the content settings window. 1474const char kContentSettingsWindowLastTabIndex[] = 1475 "content_settings_window.last_tab_index"; 1476 1477// Integer that specifies the index of the tab the user was on when they 1478// last visited the Certificate Manager window. 1479const char kCertificateManagerWindowLastTabIndex[] = 1480 "certificate_manager_window.last_tab_index"; 1481 1482// Integer that specifies if the first run bubble should be shown. 1483// This preference is only registered by the first-run procedure. 1484const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option"; 1485 1486// String containing the last known intranet redirect URL, if any. See 1487// intranet_redirect_detector.h for more information. 1488const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin"; 1489 1490// An enum value of how the browser was shut down (see browser_shutdown.h). 1491const char kShutdownType[] = "shutdown.type"; 1492// Number of processes that were open when the user shut down. 1493const char kShutdownNumProcesses[] = "shutdown.num_processes"; 1494// Number of processes that were shut down using the slow path. 1495const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow"; 1496 1497// Whether to restart the current Chrome session automatically as the last thing 1498// before shutting everything down. 1499const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown"; 1500 1501// Set before autorestarting Chrome, cleared on clean exit. 1502const char kWasRestarted[] = "was.restarted"; 1503 1504#if defined(OS_WIN) 1505// Preference to be used while relaunching Chrome. This preference dictates if 1506// Chrome should be launched in Metro or Desktop mode. 1507// For more info take a look at ChromeRelaunchMode enum. 1508const char kRelaunchMode[] = "relaunch.mode"; 1509#endif 1510 1511// Placeholder preference for disabling voice / video chat if it is ever added. 1512// Currently, this does not change any behavior. 1513const char kDisableVideoAndChat[] = "disable_video_chat"; 1514 1515// Whether Extensions are enabled. 1516const char kDisableExtensions[] = "extensions.disabled"; 1517 1518// Whether the plugin finder that lets you install missing plug-ins is enabled. 1519const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; 1520 1521// Customized app page names that appear on the New Tab Page. 1522const char kNtpAppPageNames[] = "ntp.app_page_names"; 1523 1524// Keeps track of currently open tabs collapsed state in the Other Devices menu. 1525const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs"; 1526 1527// Keeps track of which sessions are collapsed in the Other Devices menu. 1528const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; 1529 1530// Keeps track of recently closed tabs collapsed state in the Other Devices 1531// menu. 1532const char kNtpCollapsedRecentlyClosedTabs[] = 1533 "ntp.collapsed_recently_closed_tabs"; 1534 1535// Keeps track of snapshot documents collapsed state in the Other Devices menu. 1536const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; 1537 1538// Keeps track of sync promo collapsed state in the Other Devices menu. 1539const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; 1540 1541// Serves dates to determine display of elements on the NTP. 1542const char kNtpDateResourceServer[] = "ntp.date_resource_server"; 1543 1544// New Tab Page URLs that should not be shown as most visited thumbnails. 1545const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist"; 1546 1547// True if a desktop sync session was found for this user. 1548const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found"; 1549 1550// Last time of update of promo_resource_cache. 1551const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update"; 1552 1553// Which bookmarks folder should be visible on the new tab page v4. 1554const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder"; 1555 1556// Which page should be visible on the new tab page v4 1557const char kNtpShownPage[] = "ntp.shown_page"; 1558 1559// Serves tips for the NTP. 1560const char kNtpTipsResourceServer[] = "ntp.tips_resource_server"; 1561 1562// Boolean indicating whether the web store is active for the current locale. 1563const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled"; 1564 1565// A private RSA key for ADB handshake. 1566const char kDevToolsAdbKey[] = "devtools.adb_key"; 1567 1568const char kDevToolsDisabled[] = "devtools.disabled"; 1569 1570// Determines whether devtools should be discovering usb devices for 1571// remote debugging at chrome://inspect. 1572const char kDevToolsDiscoverUsbDevicesEnabled[] = 1573 "devtools.discover_usb_devices"; 1574 1575// Maps of files edited locally using DevTools. 1576const char kDevToolsEditedFiles[] = "devtools.edited_files"; 1577 1578// List of file system paths added in DevTools. 1579const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths"; 1580 1581// A boolean specifying whether dev tools window should be opened docked. 1582const char kDevToolsOpenDocked[] = "devtools.open_docked"; 1583 1584// A boolean specifying whether port forwarding should be enabled. 1585const char kDevToolsPortForwardingEnabled[] = 1586 "devtools.port_forwarding_enabled"; 1587 1588// A boolean specifying whether default port forwarding configuration has been 1589// set. 1590const char kDevToolsPortForwardingDefaultSet[] = 1591 "devtools.port_forwarding_default_set"; 1592 1593// A dictionary of port->location pairs for port forwarding. 1594const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config"; 1595 1596#if defined(OS_ANDROID) 1597// A boolean specifying whether remote dev tools debugging is enabled. 1598const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled"; 1599#endif 1600 1601// Boolean indicating that TiclInvalidationService should use GCM channel. 1602// False or lack of settings means XMPPPushClient channel. 1603const char kInvalidationServiceUseGCMChannel[] = 1604 "invalidation_service.use_gcm_channel"; 1605 1606// Local hash of authentication password, used for off-line authentication 1607// when on-line authentication is not available. 1608const char kGoogleServicesPasswordHash[] = "google.services.password_hash"; 1609 1610#if !defined(OS_ANDROID) 1611// Tracks the number of times that we have shown the sign in promo at startup. 1612const char kSignInPromoStartupCount[] = "sync_promo.startup_count"; 1613 1614// Boolean tracking whether the user chose to skip the sign in promo. 1615const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped"; 1616 1617// Boolean that specifies if the sign in promo is allowed to show on first run. 1618// This preference is specified in the master preference file to suppress the 1619// sign in promo for some installations. 1620const char kSignInPromoShowOnFirstRunAllowed[] = 1621 "sync_promo.show_on_first_run_allowed"; 1622 1623// Boolean that specifies if we should show a bubble in the new tab page. 1624// The bubble is used to confirm that the user is signed into sync. 1625const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble"; 1626#endif 1627 1628// Create web application shortcut dialog preferences. 1629const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; 1630const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; 1631const char kWebAppCreateInQuickLaunchBar[] = 1632 "browser.web_app.create_in_quick_launch_bar"; 1633 1634// Dictionary that maps Geolocation network provider server URLs to 1635// corresponding access token. 1636const char kGeolocationAccessToken[] = "geolocation.access_token"; 1637 1638// Boolean that indicates whether to allow firewall traversal while trying to 1639// establish the initial connection from the client or host. 1640const char kRemoteAccessHostFirewallTraversal[] = 1641 "remote_access.host_firewall_traversal"; 1642 1643// Boolean controlling whether 2-factor auth should be required when connecting 1644// to a host (instead of a PIN). 1645const char kRemoteAccessHostRequireTwoFactor[] = 1646 "remote_access.host_require_two_factor"; 1647 1648// String containing the domain name that hosts must belong to. If blank, then 1649// hosts can belong to any domain. 1650const char kRemoteAccessHostDomain[] = "remote_access.host_domain"; 1651 1652// String containing the domain name of the Chromoting Directory. 1653// Used by Chromoting host and client. 1654const char kRemoteAccessHostTalkGadgetPrefix[] = 1655 "remote_access.host_talkgadget_prefix"; 1656 1657// Boolean controlling whether curtaining is required when connecting to a host. 1658const char kRemoteAccessHostRequireCurtain[] = 1659 "remote_access.host_require_curtain"; 1660 1661// Boolean controlling whether curtaining is required when connecting to a host. 1662const char kRemoteAccessHostAllowClientPairing[] = 1663 "remote_access.host_allow_client_pairing"; 1664 1665// Whether Chrome Remote Desktop can proxy gnubby authentication traffic. 1666const char kRemoteAccessHostAllowGnubbyAuth[] = 1667 "remote_access.host_allow_gnubby_auth"; 1668 1669// Boolean that indicates whether the Chromoting host should allow connections 1670// using relay servers. 1671const char kRemoteAccessHostAllowRelayedConnection[] = 1672 "remote_access.host_allow_relayed_connection"; 1673 1674// String containing the UDP port range that the Chromoting host should used 1675// when connecting to clients. The port range should be in the form: 1676// <min_port>-<max_port>. E.g. 12400-12409. 1677const char kRemoteAccessHostUdpPortRange[] = 1678 "remote_access.host_udp_port_range"; 1679 1680// The last used printer and its settings. 1681const char kPrintPreviewStickySettings[] = 1682 "printing.print_preview_sticky_settings"; 1683 1684// The last requested size of the dialog as it was closed. 1685const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width"; 1686const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; 1687const char kCloudPrintSigninDialogWidth[] = 1688 "cloud_print.signin_dialog_size.width"; 1689const char kCloudPrintSigninDialogHeight[] = 1690 "cloud_print.signin_dialog_size.height"; 1691 1692// The list of BackgroundContents that should be loaded when the browser 1693// launches. 1694const char kRegisteredBackgroundContents[] = "background_contents.registered"; 1695 1696#if !defined(OS_ANDROID) 1697// An int that stores how often we've shown the "Chrome is configured to 1698// auto-launch" infobar. 1699const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; 1700#endif 1701 1702// String that lists supported HTTP authentication schemes. 1703const char kAuthSchemes[] = "auth.schemes"; 1704 1705// Boolean that specifies whether to disable CNAME lookups when generating 1706// Kerberos SPN. 1707const char kDisableAuthNegotiateCnameLookup[] = 1708 "auth.disable_negotiate_cname_lookup"; 1709 1710// Boolean that specifies whether to include the port in a generated Kerberos 1711// SPN. 1712const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port"; 1713 1714// Whitelist containing servers for which Integrated Authentication is enabled. 1715const char kAuthServerWhitelist[] = "auth.server_whitelist"; 1716 1717// Whitelist containing servers Chrome is allowed to do Kerberos delegation 1718// with. 1719const char kAuthNegotiateDelegateWhitelist[] = 1720 "auth.negotiate_delegate_whitelist"; 1721 1722// String that specifies the name of a custom GSSAPI library to load. 1723const char kGSSAPILibraryName[] = "auth.gssapi_library_name"; 1724 1725// Boolean that specifies whether to allow basic auth prompting on cross- 1726// domain sub-content requests. 1727const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt"; 1728 1729// Boolean that specifies whether the built-in asynchronous DNS client is used. 1730const char kBuiltInDnsClientEnabled[] = "async_dns.enabled"; 1731 1732// A pref holding the value of the policy used to explicitly allow or deny 1733// access to audio capture devices. When enabled or not set, the user is 1734// prompted for device access. When disabled, access to audio capture devices 1735// is not allowed and no prompt will be shown. 1736// See also kAudioCaptureAllowedUrls. 1737const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled"; 1738// Holds URL patterns that specify URLs that will be granted access to audio 1739// capture devices without prompt. NOTE: This whitelist is currently only 1740// supported when running in kiosk mode. 1741// TODO(tommi): Update comment when this is supported for all modes. 1742const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls"; 1743 1744// A pref holding the value of the policy used to explicitly allow or deny 1745// access to video capture devices. When enabled or not set, the user is 1746// prompted for device access. When disabled, access to video capture devices 1747// is not allowed and no prompt will be shown. 1748const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled"; 1749// Holds URL patterns that specify URLs that will be granted access to video 1750// capture devices without prompt. NOTE: This whitelist is currently only 1751// supported when running in kiosk mode. 1752// TODO(tommi): Update comment when this is supported for all modes. 1753const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls"; 1754 1755// A boolean pref that controls the enabled-state of hotword search voice 1756// trigger. 1757const char kHotwordSearchEnabled[] = "hotword.search_enabled_2"; 1758 1759// A boolean pref that controls whether the sound of "Ok, Google" plus a few 1760// seconds of audio data before is sent back to improve voice search. 1761const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled"; 1762 1763// A string holding the locale information under which Hotword was installed. 1764// It is used for comparison since the hotword voice search trigger must be 1765// reinstalled to handle a new language. 1766const char kHotwordPreviousLanguage[] = "hotword.previous_language"; 1767 1768#if defined(OS_ANDROID) 1769// Boolean that controls the global enabled-state of protected media identifier. 1770const char kProtectedMediaIdentifierEnabled[] = 1771 "protected_media_identifier.enabled"; 1772#endif 1773 1774#if defined(OS_CHROMEOS) 1775// Dictionary for transient storage of settings that should go into device 1776// settings storage before owner has been assigned. 1777const char kDeviceSettingsCache[] = "signed_settings_cache"; 1778 1779// The hardware keyboard layout of the device. This should look like 1780// "xkb:us::eng". 1781const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard"; 1782 1783// An integer pref which shows number of times carrier deal promo 1784// notification has been shown to user. 1785const char kCarrierDealPromoShown[] = 1786 "settings.internet.mobile.carrier_deal_promo_shown"; 1787 1788// A boolean pref of the auto-enrollment decision. Its value is only valid if 1789// it's not the default value; otherwise, no auto-enrollment decision has been 1790// made yet. 1791const char kShouldAutoEnroll[] = "ShouldAutoEnroll"; 1792 1793// An integer pref with the maximum number of bits used by the client in a 1794// previous auto-enrollment request. If the client goes through an auto update 1795// during OOBE and reboots into a version of the OS with a larger maximum 1796// modulus, then it will retry auto-enrollment using the updated value. 1797const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit"; 1798 1799// The local state pref that stores device activity times before reporting 1800// them to the policy server. 1801const char kDeviceActivityTimes[] = "device_status.activity_times"; 1802 1803// A pref holding the last known location when device location reporting is 1804// enabled. 1805const char kDeviceLocation[] = "device_status.location"; 1806 1807// A pref holding the value of the policy used to disable mounting of external 1808// storage for the user. 1809const char kExternalStorageDisabled[] = "hardware.external_storage_disabled"; 1810 1811// A pref holding the value of the policy used to disable playing audio on 1812// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite 1813// it, therefore when the policy is lifted the original mute state is restored. 1814const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; 1815 1816// A dictionary that maps usernames to wallpaper properties. 1817const char kUsersWallpaperInfo[] = "user_wallpaper_info"; 1818 1819// Copy of owner swap mouse buttons option to use on login screen. 1820const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right"; 1821 1822// Copy of owner tap-to-click option to use on login screen. 1823const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click"; 1824 1825// The length of device uptime after which an automatic reboot is scheduled, 1826// expressed in seconds. 1827const char kUptimeLimit[] = "automatic_reboot.uptime_limit"; 1828 1829// Whether an automatic reboot should be scheduled when an update has been 1830// applied and a reboot is required to complete the update process. 1831const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update"; 1832 1833// An any-api scoped refresh token for enterprise-enrolled devices. Allows 1834// for connection to Google APIs when the user isn't logged in. Currently used 1835// for for getting a cloudprint scoped token to allow printing in Guest mode, 1836// Public Accounts and kiosks. 1837const char kDeviceRobotAnyApiRefreshToken[] = 1838 "device_robot_refresh_token.any-api"; 1839 1840// Device requisition for enterprise enrollment. 1841const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition"; 1842 1843// Whether to automatically start the enterprise enrollment step during OOBE. 1844const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start"; 1845 1846// Whether the user may exit enrollment. 1847const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit"; 1848 1849// How many times HID detection OOBE dialog was shown. 1850const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times"; 1851 1852// Dictionary of per-user Least Recently Used input method (used at login 1853// screen). 1854extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod"; 1855 1856// A dictionary pref of the echo offer check flag. It sets offer info when 1857// an offer is checked. 1858extern const char kEchoCheckedOffers[] = "EchoCheckedOffers"; 1859 1860// Key name of a dictionary in local state to store cached multiprofle user 1861// behavior policy value. 1862const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior"; 1863 1864// A string pref with initial locale set in VPD or manifest. 1865const char kInitialLocale[] = "intl.initial_locale"; 1866 1867// A boolean pref of the OOBE complete flag (first OOBE part before login). 1868const char kOobeComplete[] = "OobeComplete"; 1869 1870// The name of the screen that has to be shown if OOBE has been interrupted. 1871const char kOobeScreenPending[] = "OobeScreenPending"; 1872 1873// A boolean pref of the device registered flag (second part after first login). 1874const char kDeviceRegistered[] = "DeviceRegistered"; 1875 1876// Boolean pref to signal corrupted enrollment to force the device through 1877// enrollment recovery flow upon next boot. 1878const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired"; 1879 1880// List of usernames that used certificates pushed by policy before. 1881// This is used to prevent these users from joining multiprofile sessions. 1882const char kUsedPolicyCertificates[] = "policy.used_policy_certificates"; 1883 1884// A dictionary containing server-provided device state pulled form the cloud 1885// after recovery. 1886const char kServerBackedDeviceState[] = "server_backed_device_state"; 1887 1888// Customized wallpaper URL, which is already downloaded and scaled. 1889// The URL from this preference must never be fetched. It is compared to the 1890// URL from customization document to check if wallpaper URL has changed 1891// since wallpaper was cached. 1892const char kCustomizationDefaultWallpaperURL[] = 1893 "customization.default_wallpaper_url"; 1894 1895// System uptime, when last logout started. 1896// This is saved to file and cleared after chrome process starts. 1897const char kLogoutStartedLast[] = "chromeos.logout-started"; 1898 1899// A boolean pref of the consumer management enrollment requested flag. 1900const char kConsumerManagementEnrollmentRequested[] = 1901 "consumer_management.enrollment_requested"; 1902#endif 1903 1904// Whether there is a Flash version installed that supports clearing LSO data. 1905const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; 1906 1907// Whether we should show Pepper Flash-specific settings. 1908const char kPepperFlashSettingsEnabled[] = 1909 "browser.pepper_flash_settings_enabled"; 1910 1911// String which specifies where to store the disk cache. 1912const char kDiskCacheDir[] = "browser.disk_cache_dir"; 1913// Pref name for the policy specifying the maximal cache size. 1914const char kDiskCacheSize[] = "browser.disk_cache_size"; 1915// Pref name for the policy specifying the maximal media cache size. 1916const char kMediaCacheSize[] = "browser.media_cache_size"; 1917 1918// Specifies the release channel that the device should be locked to. 1919// Possible values: "stable-channel", "beta-channel", "dev-channel", or an 1920// empty string, in which case the value will be ignored. 1921// TODO(dubroy): This preference may not be necessary once 1922// http://crosbug.com/17015 is implemented and the update engine can just 1923// fetch the correct value from the policy. 1924const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel"; 1925 1926const char kPerformanceTracingEnabled[] = 1927 "feedback.performance_tracing_enabled"; 1928 1929// Boolean indicating whether tabstrip uses stacked layout (on touch devices). 1930// Defaults to false. 1931const char kTabStripStackedLayout[] = "tab-strip-stacked-layout"; 1932 1933// Indicates that factory reset was requested from options page or reset screen. 1934const char kFactoryResetRequested[] = "FactoryResetRequested"; 1935 1936// Indicates that rollback was requested alongside with factory reset. 1937// Makes sense only if kFactoryResetRequested is true. 1938const char kRollbackRequested[] = "RollbackRequested"; 1939 1940// Boolean recording whether we have showed a balloon that calls out the message 1941// center for desktop notifications. 1942const char kMessageCenterShowedFirstRunBalloon[] = 1943 "message_center.showed_first_run_balloon"; 1944 1945// Boolean recording whether the user has disabled the notifications 1946// menubar or systray icon. 1947const char kMessageCenterShowIcon[] = "message_center.show_icon"; 1948 1949const char kMessageCenterForcedOnTaskbar[] = 1950 "message_center.was_forced_on_taskbar"; 1951 1952// *************** SERVICE PREFS *************** 1953// These are attached to the service process. 1954 1955const char kCloudPrintRoot[] = "cloud_print"; 1956const char kCloudPrintProxyEnabled[] = "cloud_print.enabled"; 1957// The unique id for this instance of the cloud print proxy. 1958const char kCloudPrintProxyId[] = "cloud_print.proxy_id"; 1959// The GAIA auth token for Cloud Print 1960const char kCloudPrintAuthToken[] = "cloud_print.auth_token"; 1961// The GAIA auth token used by Cloud Print to authenticate with the XMPP server 1962// This should eventually go away because the above token should work for both. 1963const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token"; 1964// The email address of the account used to authenticate with the Cloud Print 1965// server. 1966const char kCloudPrintEmail[] = "cloud_print.email"; 1967// Settings specific to underlying print system. 1968const char kCloudPrintPrintSystemSettings[] = 1969 "cloud_print.print_system_settings"; 1970// A boolean indicating whether we should poll for print jobs when don't have 1971// an XMPP connection (false by default). 1972const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll"; 1973const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token"; 1974const char kCloudPrintRobotEmail[] = "cloud_print.robot_email"; 1975// A boolean indicating whether we should connect to cloud print new printers. 1976const char kCloudPrintConnectNewPrinters[] = 1977 "cloud_print.user_settings.connectNewPrinters"; 1978// A boolean indicating whether we should ping XMPP connection. 1979const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled"; 1980// An int value indicating the average timeout between xmpp pings. 1981const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec"; 1982// Dictionary with settings stored by connector setup page. 1983const char kCloudPrintUserSettings[] = "cloud_print.user_settings"; 1984// List of printers settings. 1985extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers"; 1986// A boolean indicating whether submitting jobs to Google Cloud Print is 1987// blocked by policy. 1988const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled"; 1989 1990// Preference to store proxy settings. 1991const char kProxy[] = "proxy"; 1992const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy"; 1993 1994// Preferences that are exclusively used to store managed values for default 1995// content settings. 1996const char kManagedDefaultCookiesSetting[] = 1997 "profile.managed_default_content_settings.cookies"; 1998const char kManagedDefaultImagesSetting[] = 1999 "profile.managed_default_content_settings.images"; 2000const char kManagedDefaultJavaScriptSetting[] = 2001 "profile.managed_default_content_settings.javascript"; 2002const char kManagedDefaultPluginsSetting[] = 2003 "profile.managed_default_content_settings.plugins"; 2004const char kManagedDefaultPopupsSetting[] = 2005 "profile.managed_default_content_settings.popups"; 2006const char kManagedDefaultGeolocationSetting[] = 2007 "profile.managed_default_content_settings.geolocation"; 2008const char kManagedDefaultNotificationsSetting[] = 2009 "profile.managed_default_content_settings.notifications"; 2010const char kManagedDefaultMediaStreamSetting[] = 2011 "profile.managed_default_content_settings.media_stream"; 2012 2013// Preferences that are exclusively used to store managed 2014// content settings patterns. 2015const char kManagedCookiesAllowedForUrls[] = 2016 "profile.managed_cookies_allowed_for_urls"; 2017const char kManagedCookiesBlockedForUrls[] = 2018 "profile.managed_cookies_blocked_for_urls"; 2019const char kManagedCookiesSessionOnlyForUrls[] = 2020 "profile.managed_cookies_sessiononly_for_urls"; 2021const char kManagedImagesAllowedForUrls[] = 2022 "profile.managed_images_allowed_for_urls"; 2023const char kManagedImagesBlockedForUrls[] = 2024 "profile.managed_images_blocked_for_urls"; 2025const char kManagedJavaScriptAllowedForUrls[] = 2026 "profile.managed_javascript_allowed_for_urls"; 2027const char kManagedJavaScriptBlockedForUrls[] = 2028 "profile.managed_javascript_blocked_for_urls"; 2029const char kManagedPluginsAllowedForUrls[] = 2030 "profile.managed_plugins_allowed_for_urls"; 2031const char kManagedPluginsBlockedForUrls[] = 2032 "profile.managed_plugins_blocked_for_urls"; 2033const char kManagedPopupsAllowedForUrls[] = 2034 "profile.managed_popups_allowed_for_urls"; 2035const char kManagedPopupsBlockedForUrls[] = 2036 "profile.managed_popups_blocked_for_urls"; 2037const char kManagedNotificationsAllowedForUrls[] = 2038 "profile.managed_notifications_allowed_for_urls"; 2039const char kManagedNotificationsBlockedForUrls[] = 2040 "profile.managed_notifications_blocked_for_urls"; 2041const char kManagedAutoSelectCertificateForUrls[] = 2042 "profile.managed_auto_select_certificate_for_urls"; 2043 2044#if defined(OS_MACOSX) 2045// Set to true if the user removed our login item so we should not create a new 2046// one when uninstalling background apps. 2047const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item"; 2048 2049// Set to true if Chrome already created a login item, so there's no need to 2050// create another one. 2051const char kChromeCreatedLoginItem[] = 2052 "background_mode.chrome_created_login_item"; 2053 2054// Set to true once we've initialized kChromeCreatedLoginItem for the first 2055// time. 2056const char kMigratedLoginItemPref[] = 2057 "background_mode.migrated_login_item_pref"; 2058 2059// A boolean that tracks whether to show a notification when trying to quit 2060// while there are apps running. 2061const char kNotifyWhenAppsKeepChromeAlive[] = 2062 "apps.notify-when-apps-keep-chrome-alive"; 2063#endif 2064 2065// Set to true if background mode is enabled on this browser. 2066const char kBackgroundModeEnabled[] = "background_mode.enabled"; 2067 2068// Set to true if hardware acceleration mode is enabled on this browser. 2069const char kHardwareAccelerationModeEnabled[] = 2070 "hardware_acceleration_mode.enabled"; 2071 2072// Hardware acceleration mode from previous browser launch. 2073const char kHardwareAccelerationModePrevious[] = 2074 "hardware_acceleration_mode_previous"; 2075 2076// List of protocol handlers. 2077const char kRegisteredProtocolHandlers[] = 2078 "custom_handlers.registered_protocol_handlers"; 2079 2080// List of protocol handlers the user has requested not to be asked about again. 2081const char kIgnoredProtocolHandlers[] = 2082 "custom_handlers.ignored_protocol_handlers"; 2083 2084// List of protocol handlers registered by policy. 2085const char kPolicyRegisteredProtocolHandlers[] = 2086 "custom_handlers.policy.registered_protocol_handlers"; 2087 2088// List of protocol handlers the policy has requested to be ignored. 2089const char kPolicyIgnoredProtocolHandlers[] = 2090 "custom_handlers.policy.ignored_protocol_handlers"; 2091 2092// Whether user-specified handlers for protocols and content types can be 2093// specified. 2094const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; 2095 2096// Integer that specifies the policy refresh rate for device-policy in 2097// milliseconds. Not all values are meaningful, so it is clamped to a sane range 2098// by the cloud policy subsystem. 2099const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; 2100 2101// A boolean where true means that the browser has previously attempted to 2102// enable autoupdate and failed, so the next out-of-date browser start should 2103// not prompt the user to enable autoupdate, it should offer to reinstall Chrome 2104// instead. 2105const char kAttemptedToEnableAutoupdate[] = 2106 "browser.attempted_to_enable_autoupdate"; 2107 2108// The next media gallery ID to assign. 2109const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id"; 2110 2111// A list of dictionaries, where each dictionary represents a known media 2112// gallery. 2113const char kMediaGalleriesRememberedGalleries[] = 2114 "media_galleries.remembered_galleries"; 2115 2116// The last time a media scan completed. 2117const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time"; 2118 2119#if defined(USE_ASH) 2120// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The 2121// local variant is not synced and is used if set. If the local variant is not 2122// set its value is set from the synced value (once prefs have been 2123// synced). This gives a per-machine setting that is initialized from the last 2124// set value. 2125// These values are default on the machine but can be overridden by per-display 2126// values in kShelfPreferences (unless overridden by managed policy). 2127// String value corresponding to ash::Shell::ShelfAlignment. 2128const char kShelfAlignment[] = "shelf_alignment"; 2129const char kShelfAlignmentLocal[] = "shelf_alignment_local"; 2130// String value corresponding to ash::Shell::ShelfAutoHideBehavior. 2131const char kShelfAutoHideBehavior[] = "auto_hide_behavior"; 2132const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local"; 2133// This value stores chrome icon's index in the launcher. This should be handled 2134// separately with app shortcut's index because of ShelfModel's backward 2135// compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its 2136// index is also stored in the |kPinnedLauncherApp| pref. It may causes 2137// creating two chrome icons. 2138const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index"; 2139// Dictionary value that holds per-display preference of shelf alignment and 2140// auto-hide behavior. Key of the dictionary is the id of the display, and 2141// its value is a dictionary whose keys are kShelfAlignment and 2142// kShelfAutoHideBehavior. 2143const char kShelfPreferences[] = "shelf_preferences"; 2144 2145// Integer value in milliseconds indicating the length of time for which a 2146// confirmation dialog should be shown when the user presses the logout button. 2147// A value of 0 indicates that logout should happen immediately, without showing 2148// a confirmation dialog. 2149const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms"; 2150const char kPinnedLauncherApps[] = "pinned_launcher_apps"; 2151// Boolean value indicating whether to show a logout button in the ash tray. 2152const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray"; 2153#endif 2154 2155#if defined(USE_AURA) 2156// Tuning settings for gestures. 2157const char kMaxSeparationForGestureTouchesInPixels[] = 2158 "gesture.max_separation_for_gesture_touches_in_pixels"; 2159const char kSemiLongPressTimeInSeconds[] = 2160 "gesture.semi_long_press_time_in_seconds"; 2161const char kTabScrubActivationDelayInMS[] = 2162 "gesture.tab_scrub_activation_delay_in_ms"; 2163const char kFlingAccelerationCurveCoefficient0[] = 2164 "gesture.fling_acceleration_curve_coefficient_0"; 2165const char kFlingAccelerationCurveCoefficient1[] = 2166 "gesture.fling_acceleration_curve_coefficient_1"; 2167const char kFlingAccelerationCurveCoefficient2[] = 2168 "gesture.fling_acceleration_curve_coefficient_2"; 2169const char kFlingAccelerationCurveCoefficient3[] = 2170 "gesture.fling_acceleration_curve_coefficient_3"; 2171const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha"; 2172const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta"; 2173const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma"; 2174const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha"; 2175const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta"; 2176const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma"; 2177const char kFlingMaxCancelToDownTimeInMs[] = 2178 "gesture.fling_max_cancel_to_down_time_in_ms"; 2179const char kFlingMaxTapGapTimeInMs[] = 2180 "gesture.fling_max_tap_gap_time_in_ms"; 2181const char kOverscrollHorizontalThresholdComplete[] = 2182 "overscroll.horizontal_threshold_complete"; 2183const char kOverscrollVerticalThresholdComplete[] = 2184 "overscroll.vertical_threshold_complete"; 2185const char kOverscrollMinimumThresholdStart[] = 2186 "overscroll.minimum_threshold_start"; 2187const char kOverscrollMinimumThresholdStartTouchpad[] = 2188 "overscroll.minimum_threshold_start_touchpad"; 2189const char kOverscrollVerticalThresholdStart[] = 2190 "overscroll.vertical_threshold_start"; 2191const char kOverscrollHorizontalResistThreshold[] = 2192 "overscroll.horizontal_resist_threshold"; 2193const char kOverscrollVerticalResistThreshold[] = 2194 "overscroll.vertical_resist_threshold"; 2195#endif 2196 2197// Counts how many more times the 'profile on a network share' warning should be 2198// shown to the user before the next silence period. 2199const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; 2200// Tracks the time of the last shown warning. Used to reset 2201// |network_profile.warnings_left| after a silence period. 2202const char kNetworkProfileLastWarningTime[] = 2203 "network_profile.last_warning_time"; 2204 2205#if defined(OS_CHROMEOS) 2206// The RLZ brand code, if enabled. 2207const char kRLZBrand[] = "rlz.brand"; 2208// Whether RLZ pings are disabled. 2209const char kRLZDisabled[] = "rlz.disabled"; 2210#endif 2211 2212#if defined(ENABLE_APP_LIST) 2213// The directory in user data dir that contains the profile to be used with the 2214// app launcher. 2215const char kAppListProfile[] = "app_list.profile"; 2216 2217// The number of times the app launcher was launched since last ping and 2218// the time of the last ping. 2219const char kAppListLaunchCount[] = "app_list.launch_count"; 2220const char kLastAppListLaunchPing[] = "app_list.last_launch_ping"; 2221 2222// The number of times the an app was launched from the app launcher since last 2223// ping and the time of the last ping. 2224const char kAppListAppLaunchCount[] = "app_list.app_launch_count"; 2225const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping"; 2226 2227// A boolean that tracks whether the user has ever enabled the app launcher. 2228const char kAppLauncherHasBeenEnabled[] = 2229 "apps.app_launcher.has_been_enabled"; 2230 2231// An enum indicating how the app launcher was enabled. E.g., via webstore, app 2232// install, command line, etc. For UMA. 2233const char kAppListEnableMethod[] = "app_list.how_enabled"; 2234 2235// The time that the app launcher was enabled. Cleared when UMA is recorded. 2236const char kAppListEnableTime[] = "app_list.when_enabled"; 2237 2238// TODO(calamity): remove this pref since app launcher will always be 2239// installed. 2240// Local state caching knowledge of whether the app launcher is installed. 2241const char kAppLauncherIsEnabled[] = 2242 "apps.app_launcher.should_show_apps_page"; 2243 2244// Integer representing the version of the app launcher shortcut installed on 2245// the system. Incremented, e.g., when embedded icons change. 2246const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version"; 2247 2248// A boolean identifying if we should show the app launcher promo or not. 2249const char kShowAppLauncherPromo[] = "app_launcher.show_promo"; 2250 2251// A dictionary that tracks the Drive app to Chrome app mapping. The key is 2252// a Drive app id and the value is the corresponding Chrome app id. The pref 2253// is unsynable and used to track local mappings only. 2254const char kAppLauncherDriveAppMapping[] = 2255 "apps.app_launcher.drive_app_mapping"; 2256#endif 2257 2258// If set, the user requested to launch the app with this extension id while 2259// in Metro mode, and then relaunched to Desktop mode to start it. 2260const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart"; 2261 2262// Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers 2263// launch of the specified app when restarting Chrome in desktop mode. 2264const char kAppLaunchForMetroRestartProfile[] = 2265 "apps.app_launch_for_metro_restart_profile"; 2266 2267// An integer that is incremented whenever changes are made to app shortcuts. 2268// Increasing this causes all app shortcuts to be recreated. 2269const char kAppShortcutsVersion[] = "apps.shortcuts_version"; 2270 2271// How often the bubble has been shown. 2272extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; 2273 2274// A string pref for storing the salt used to compute the pepper device ID. 2275const char kDRMSalt[] = "settings.privacy.drm_salt"; 2276// A boolean pref that enables the (private) pepper GetDeviceID() call and 2277// enables the use of remote attestation for content protection. 2278const char kEnableDRM[] = "settings.privacy.drm_enabled"; 2279 2280// An integer per-profile pref that signals if the watchdog extension is 2281// installed and active. We need to know if the watchdog extension active for 2282// ActivityLog initialization before the extension system is initialized. 2283const char kWatchdogExtensionActive[] = 2284 "profile.extensions.activity_log.num_consumers_active"; 2285// The old version was a bool. 2286const char kWatchdogExtensionActiveOld[] = 2287 "profile.extensions.activity_log.watchdog_extension_active"; 2288 2289#if defined(OS_ANDROID) 2290// A list of partner bookmark rename/remove mappings. 2291// Each list item is a dictionary containing a "url", a "provider_title" and 2292// "mapped_title" entries, detailing the bookmark target URL (if any), the title 2293// given by the PartnerBookmarksProvider and either the user-visible renamed 2294// title or an empty string if the bookmark node was removed. 2295const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; 2296#endif 2297 2298// Whether DNS Quick Check is disabled in proxy resolution. 2299const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; 2300 2301} // namespace prefs 2302