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