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