Accumulate damage from SurfaceDrawQuads in non-root RenderPasses.
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blob61151eb1ef3ebcc5937aa2d18c2b105e5fd5e473
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"
10 namespace prefs {
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
53 // compatibility.
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
75 // higher.
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
96 // starts a session.
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
138 // the format.
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 -
169 // Sync B A -
170 // Accept (B) B B B
171 // -----------------------------------------------------------
172 // Initial login - A -
173 // No sync and second login A A -
174 // Change options B B -
175 // -----------------------------------------------------------
176 // Initial login - A -
177 // Sync A A -
178 // Locale changed on login screen A C -
179 // Accept (A) A A A
180 // -----------------------------------------------------------
181 // Initial login - A -
182 // Sync B A -
183 // Revert A A -
184 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
185 #endif
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
192 // request.
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
214 // change.
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";
308 #endif
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";
363 #endif
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";
407 #endif
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
468 // refresh.
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"
493 // hot-key lists.
494 const char kLanguageHotkeyNextEngineInMenu[] =
495 "settings.language.hotkey_next_engine_in_menu";
497 // A string pref (comma-separated list) set to the "previous engine"
498 // hot-key lists.
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 // A string pref that contains version where "What's new" promo was shown.
619 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
621 // A boolean pref that controls whether proxy settings from shared network
622 // settings (accordingly from device policy) are applied or ignored.
623 const char kUseSharedProxies[] = "settings.use_shared_proxies";
625 // Power state of the current displays from the last run.
626 const char kDisplayPowerState[] = "settings.display.power_state";
627 // A dictionary pref that stores per display preferences.
628 const char kDisplayProperties[] = "settings.display.properties";
630 // A dictionary pref that specifies per-display layout/offset information.
631 // Its key is the ID of the display and its value is a dictionary for the
632 // layout/offset information.
633 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
635 // A dictionary pref that specifies the state of the rotation lock, and the
636 // display orientation, for the internal display.
637 const char kDisplayRotationLock[] = "settings.display.rotation_lock";
639 // A boolean pref indicating whether user activity has been observed in the
640 // current session already. The pref is used to restore information about user
641 // activity after browser crashes.
642 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
644 // A preference to keep track of the session start time. If the session length
645 // limit is configured to start running after initial user activity has been
646 // observed, the pref is set after the first user activity in a session.
647 // Otherwise, it is set immediately after session start. The pref is used to
648 // restore the session start time after browser crashes. The time is expressed
649 // as the serialization obtained from base::TimeTicks::ToInternalValue().
650 const char kSessionStartTime[] = "session.start_time";
652 // Holds the maximum session time in milliseconds. If this pref is set, the
653 // user is logged out when the maximum session time is reached. The user is
654 // informed about the remaining time by a countdown timer shown in the ash
655 // system tray.
656 const char kSessionLengthLimit[] = "session.length_limit";
658 // Whether the session length limit should start running only after the first
659 // user activity has been observed in a session.
660 const char kSessionWaitForInitialUserActivity[] =
661 "session.wait_for_initial_user_activity";
663 // Inactivity time in milliseconds while the system is on AC power before
664 // the screen should be dimmed, turned off, or locked, before an
665 // IdleActionImminent D-Bus signal should be sent, or before
666 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
667 // kPowerAcIdleDelayMs).
668 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
669 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
670 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
671 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
672 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
674 // Similar delays while the system is on battery power.
675 const char kPowerBatteryScreenDimDelayMs[] =
676 "power.battery_screen_dim_delay_ms";
677 const char kPowerBatteryScreenOffDelayMs[] =
678 "power.battery_screen_off_delay_ms";
679 const char kPowerBatteryScreenLockDelayMs[] =
680 "power.battery_screen_lock_delay_ms";
681 const char kPowerBatteryIdleWarningDelayMs[] =
682 "power.battery_idle_warning_delay_ms";
683 const char kPowerBatteryIdleDelayMs[] =
684 "power.battery_idle_delay_ms";
686 // Inactivity delays used to dim the screen or turn it off while the screen is
687 // locked.
688 const char kPowerLockScreenDimDelayMs[] = "power.lock_screen_dim_delay_ms";
689 const char kPowerLockScreenOffDelayMs[] = "power.lock_screen_off_delay_ms";
691 // Action that should be performed when the idle delay is reached while the
692 // system is on AC power or battery power.
693 // Values are from the chromeos::PowerPolicyController::Action enum.
694 const char kPowerAcIdleAction[] = "power.ac_idle_action";
695 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
697 // Action that should be performed when the lid is closed.
698 // Values are from the chromeos::PowerPolicyController::Action enum.
699 const char kPowerLidClosedAction[] = "power.lid_closed_action";
701 // Should audio and video activity be used to disable the above delays?
702 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
703 const char kPowerUseVideoActivity[] = "power.use_video_activity";
705 // Should extensions be able to use the chrome.power API to override
706 // screen-related power management (including locking)?
707 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
709 // Amount by which the screen-dim delay should be scaled while the system
710 // is in presentation mode. Values are limited to a minimum of 1.0.
711 const char kPowerPresentationScreenDimDelayFactor[] =
712 "power.presentation_screen_dim_delay_factor";
714 // Amount by which the screen-dim delay should be scaled when user activity is
715 // observed while the screen is dimmed or soon after the screen has been turned
716 // off. Values are limited to a minimum of 1.0.
717 const char kPowerUserActivityScreenDimDelayFactor[] =
718 "power.user_activity_screen_dim_delay_factor";
720 // Whether the power management delays should start running only after the first
721 // user activity has been observed in a session.
722 const char kPowerWaitForInitialUserActivity[] =
723 "power.wait_for_initial_user_activity";
725 // Boolean controlling whether the panel backlight should be forced to a
726 // nonzero level when user activity is observed.
727 const char kPowerForceNonzeroBrightnessForUserActivity[] =
728 "power.force_nonzero_brightness_for_user_activity";
730 // The URL from which the Terms of Service can be downloaded. The value is only
731 // honored for public accounts.
732 const char kTermsOfServiceURL[] = "terms_of_service.url";
734 // Indicates that the Profile has made navigations that used a certificate
735 // installed by the system administrator. If that is true then the local cache
736 // of remote data is tainted (e.g. shared scripts), and future navigations
737 // show a warning indicating that the organization may track the browsing
738 // session.
739 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
741 // Indicates whether the remote attestation is enabled for the user.
742 const char kAttestationEnabled[] = "attestation.enabled";
743 // The list of extensions allowed to use the platformKeysPrivate API for
744 // remote attestation.
745 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
747 // A boolean pref indicating whether the projection touch HUD is enabled or not.
748 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
750 // A pref to configure networks. Its value must be a list of
751 // NetworkConfigurations according to the OpenNetworkConfiguration
752 // specification.
753 // Currently, this pref is only used to store the policy. The user's
754 // configuration is still stored in Shill.
755 const char kOpenNetworkConfiguration[] = "onc";
757 // A boolean pref that tracks whether the user has already given consent for
758 // enabling remote attestation for content protection.
759 const char kRAConsentGranted[] = "settings.privacy.ra_consent_granted";
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
777 // already.
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
797 // OOBE screen.
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
870 // permitted.
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
886 // supervised users.
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";
892 #endif
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
914 // list (below).
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";
947 #endif
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 plug-ins metadata.
958 const char kPluginsMetadata[] = "plugins.metadata";
960 // Last update time of plug-ins resource cache.
961 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
962 #endif
964 // Boolean that indicates whether we should check if we are the default browser
965 // on start-up.
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
976 // required.
977 const char kShowUpdatePromotionInfoBar[] =
978 "browser.show_update_promotion_info_bar";
979 #endif
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";
989 #endif
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
1012 // the dialog.
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";
1043 #endif
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
1074 // on first run.
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
1131 // packs. One of:
1132 // 0: Allow (does nothing)
1133 // 1: Warn.
1134 // 2: Block.
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
1163 // version, below.
1164 extern 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 extern const char kWelcomeNotificationDismissedLocal[] =
1170 "message_center.welcome_notification_dismissed_local";
1172 // Boolean pref indicating the welcome notification was previously popped up.
1173 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
1174 "message_center.welcome_notification_previously_popped_up";
1176 // Integer pref containing the expiration timestamp of the welcome notification.
1177 extern 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
1182 // platforms.
1183 extern 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 // These device IDs are used by the copresence component, to uniquely identify
1222 // this device to the server. For privacy, authenticated and unauthenticated
1223 // calls are made using different device IDs.
1224 #if defined(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1225 const char kCopresenceAuthenticatedDeviceId[] =
1226 "apps.copresence.auth_device_id";
1227 const char kCopresenceAnonymousDeviceId[] = "apps.copresence.unauth_device_id";
1228 #endif
1230 // Whether WebRTC should bind to individual NICs to explore all possible routing
1231 // options. Default is true.
1232 #if defined(ENABLE_WEBRTC)
1233 const char kWebRTCMultipleRoutesEnabled[] = "webrtc.multiple_routes_enabled";
1234 #endif
1236 // *************** LOCAL STATE ***************
1237 // These are attached to the machine/installation
1239 // A pref to configure networks device-wide. Its value must be a list of
1240 // NetworkConfigurations according to the OpenNetworkConfiguration
1241 // specification.
1242 // Currently, this pref is only used to store the policy. The user's
1243 // configuration is still stored in Shill.
1244 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1246 // Directory of the last profile used.
1247 const char kProfileLastUsed[] = "profile.last_used";
1249 // List of directories of the profiles last active.
1250 const char kProfilesLastActive[] = "profile.last_active_profiles";
1252 // Total number of profiles created for this Chrome build. Used to tag profile
1253 // directories.
1254 const char kProfilesNumCreated[] = "profile.profiles_created";
1256 // String containing the version of Chrome that the profile was created by.
1257 // If profile was created before this feature was added, this pref will default
1258 // to "1.0.0.0".
1259 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1261 // A map of profile data directory to cached information. This cache can be
1262 // used to display information about profiles without actually having to load
1263 // them.
1264 const char kProfileInfoCache[] = "profile.info_cache";
1266 // Dictionary that maps profile keys to strings that indicate that the profile
1267 // reset prompt has already been shown to the corresponding user (profile).
1268 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1269 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1270 // explanation of why this redundancy is needed.
1271 const char kProfileResetPromptMementosInLocalState[] =
1272 "profile.reset_prompt_mementos";
1274 // Prefs for SSLConfigServicePref.
1275 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1276 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1277 "ssl.rev_checking.required_for_local_anchors";
1278 const char kSSLVersionMin[] = "ssl.version_min";
1279 const char kSSLVersionMax[] = "ssl.version_max";
1280 const char kSSLVersionFallbackMin[] = "ssl.version_fallback_min";
1281 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1282 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1284 // Dictionary of dates when a site's SSL blocking interstitial was proceeded
1285 // through.
1286 const char kSSLBlockingBypassed[] = "ssl.ssl_blocking_bypassed";
1288 // Boolean that specifies whether or not crash reporting and metrics reporting
1289 // are sent over the network for analysis.
1290 const char kMetricsReportingEnabled[] =
1291 "user_experience_metrics.reporting_enabled";
1293 // Boolean that specifies whether or not crash reports are sent
1294 // over the network for analysis.
1295 #if defined(OS_ANDROID)
1296 const char kCrashReportingEnabled[] =
1297 "user_experience_metrics_crash.reporting_enabled";
1298 #endif
1300 // Base64-encoded compressed serialized form of the variations seed protobuf.
1301 const char kVariationsCompressedSeed[] = "variations_compressed_seed";
1303 // 64-bit integer serialization of the base::Time from the last successful seed
1304 // fetch (i.e. when the Variations server responds with 200 or 304).
1305 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1307 // String for the restrict parameter to be appended to the variations URL.
1308 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1310 // Base64-encoded serialized form of the variations seed protobuf.
1311 const char kVariationsSeed[] = "variations_seed";
1313 // 64-bit integer serialization of the base::Time from the last seed received.
1314 const char kVariationsSeedDate[] = "variations_seed_date";
1316 // Digital signature of the binary variations seed data, base64-encoded.
1317 const char kVariationsSeedSignature[] = "variations_seed_signature";
1319 // Number of times a page load event occurred since the last report.
1320 const char kStabilityPageLoadCount[] =
1321 "user_experience_metrics.stability.page_load_count";
1323 // Number of times a renderer process crashed since the last report.
1324 const char kStabilityRendererCrashCount[] =
1325 "user_experience_metrics.stability.renderer_crash_count";
1327 // Number of times an extension renderer process crashed since the last report.
1328 const char kStabilityExtensionRendererCrashCount[] =
1329 "user_experience_metrics.stability.extension_renderer_crash_count";
1331 // This is the location of a list of dictionaries of plugin stability stats.
1332 const char kStabilityPluginStats[] =
1333 "user_experience_metrics.stability.plugin_stats2";
1335 // Number of times the renderer has become non-responsive since the last
1336 // report.
1337 const char kStabilityRendererHangCount[] =
1338 "user_experience_metrics.stability.renderer_hang_count";
1340 // Total number of child process crashes (other than renderer / extension
1341 // renderer ones, and plugin children, which are counted separately) since the
1342 // last report.
1343 const char kStabilityChildProcessCrashCount[] =
1344 "user_experience_metrics.stability.child_process_crash_count";
1346 // On Chrome OS, total number of non-Chrome user process crashes
1347 // since the last report.
1348 const char kStabilityOtherUserCrashCount[] =
1349 "user_experience_metrics.stability.other_user_crash_count";
1351 // On Chrome OS, total number of kernel crashes since the last report.
1352 const char kStabilityKernelCrashCount[] =
1353 "user_experience_metrics.stability.kernel_crash_count";
1355 // On Chrome OS, total number of unclean system shutdowns since the
1356 // last report.
1357 const char kStabilitySystemUncleanShutdownCount[] =
1358 "user_experience_metrics.stability.system_unclean_shutdowns";
1360 #if defined(OS_ANDROID)
1361 // Activity type that is currently in the foreground for the UMA session.
1362 // Uses the ActivityTypeIds::Type enum.
1363 const char kStabilityForegroundActivityType[] =
1364 "user_experience_metrics.stability.current_foreground_activity_type";
1366 // Tracks which Activities were launched during the last session.
1367 // See |metrics_service_android.cc| for its usage.
1368 const char kStabilityLaunchedActivityFlags[] =
1369 "user_experience_metrics.stability.launched_activity_flags";
1371 // List pref: Counts how many times each Activity was launched.
1372 // Indexed into by ActivityTypeIds::Type.
1373 const char kStabilityLaunchedActivityCounts[] =
1374 "user_experience_metrics.stability.launched_activity_counts";
1376 // List pref: Counts how many times each Activity type was in the foreground
1377 // when a UMA session failed to be shut down properly.
1378 // Indexed into by ActivityTypeIds::Type.
1379 const char kStabilityCrashedActivityCounts[] =
1380 "user_experience_metrics.stability.crashed_activity_counts";
1381 #endif
1383 // The keys below are used for the dictionaries in the
1384 // kStabilityPluginStats list.
1385 const char kStabilityPluginName[] = "name";
1386 const char kStabilityPluginLaunches[] = "launches";
1387 const char kStabilityPluginInstances[] = "instances";
1388 const char kStabilityPluginCrashes[] = "crashes";
1389 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1391 // The keys below are strictly increasing counters over the lifetime of
1392 // a chrome installation. They are (optionally) sent up to the uninstall
1393 // survey in the event of uninstallation.
1394 const char kUninstallMetricsPageLoadCount[] =
1395 "uninstall_metrics.page_load_count";
1396 const char kUninstallLastLaunchTimeSec[] =
1397 "uninstall_metrics.last_launch_time_sec";
1398 const char kUninstallLastObservedRunTimeSec[] =
1399 "uninstall_metrics.last_observed_running_time_sec";
1401 // String containing the version of Chrome for which Chrome will not prompt the
1402 // user about setting Chrome as the default browser.
1403 const char kBrowserSuppressDefaultBrowserPrompt[] =
1404 "browser.suppress_default_browser_prompt_for_version";
1406 // A collection of position, size, and other data relating to the browser
1407 // window to restore on startup.
1408 const char kBrowserWindowPlacement[] = "browser.window_placement";
1410 // Browser window placement for popup windows.
1411 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1413 // A collection of position, size, and other data relating to the task
1414 // manager window to restore on startup.
1415 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1417 // A collection of position, size, and other data relating to app windows to
1418 // restore on startup.
1419 const char kAppWindowPlacement[] = "browser.app_window_placement";
1421 // String which specifies where to download files to by default.
1422 const char kDownloadDefaultDirectory[] = "download.default_directory";
1424 // Boolean that records if the download directory was changed by an
1425 // upgrade a unsafe location to a safe location.
1426 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1428 #if defined(OS_WIN) || defined(OS_LINUX) || \
1429 (defined(OS_MACOSX) && !defined(OS_IOS))
1430 const char kOpenPdfDownloadInSystemReader[] =
1431 "download.open_pdf_in_system_reader";
1432 #endif
1434 // String which specifies where to save html files to by default.
1435 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1437 // The type used to save the page. See the enum SavePackage::SavePackageType in
1438 // the chrome/browser/download/save_package.h for the possible values.
1439 const char kSaveFileType[] = "savefile.type";
1441 // String which specifies the last directory that was chosen for uploading
1442 // or opening a file.
1443 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1445 // Boolean that specifies if file selection dialogs are shown.
1446 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1448 // Map of default tasks, associated by MIME type.
1449 const char kDefaultTasksByMimeType[] =
1450 "filebrowser.tasks.default_by_mime_type";
1452 // Map of default tasks, associated by file suffix.
1453 const char kDefaultTasksBySuffix[] =
1454 "filebrowser.tasks.default_by_suffix";
1456 // Extensions which should be opened upon completion.
1457 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1459 // Integer which specifies the frequency in milliseconds for detecting whether
1460 // plugin windows are hung.
1461 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1463 // Integer which specifies the timeout value to be used for SendMessageTimeout
1464 // to detect a hung plugin window.
1465 const char kPluginMessageResponseTimeout[] =
1466 "browser.plugin_message_response_timeout";
1468 // String which represents the dictionary name for our spell-checker.
1469 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1471 // String which represents whether we use the spelling service.
1472 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1474 // Dictionary of schemes used by the external protocol handler.
1475 // The value is true if the scheme must be ignored.
1476 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1478 // Keys used for MAC handling of SafeBrowsing requests.
1479 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1480 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1482 // Integer that specifies the index of the tab the user was on when they
1483 // last visited the options window.
1484 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1486 // Integer that specifies the index of the tab the user was on when they
1487 // last visited the Certificate Manager window.
1488 const char kCertificateManagerWindowLastTabIndex[] =
1489 "certificate_manager_window.last_tab_index";
1491 // Integer that specifies if the first run bubble should be shown.
1492 // This preference is only registered by the first-run procedure.
1493 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1495 // String containing the last known intranet redirect URL, if any. See
1496 // intranet_redirect_detector.h for more information.
1497 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1499 // An enum value of how the browser was shut down (see browser_shutdown.h).
1500 const char kShutdownType[] = "shutdown.type";
1501 // Number of processes that were open when the user shut down.
1502 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1503 // Number of processes that were shut down using the slow path.
1504 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1506 // Whether to restart the current Chrome session automatically as the last thing
1507 // before shutting everything down.
1508 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1510 // Set before autorestarting Chrome, cleared on clean exit.
1511 const char kWasRestarted[] = "was.restarted";
1513 #if defined(OS_WIN)
1514 // Preference to be used while relaunching Chrome. This preference dictates if
1515 // Chrome should be launched in Metro or Desktop mode.
1516 // For more info take a look at ChromeRelaunchMode enum.
1517 const char kRelaunchMode[] = "relaunch.mode";
1518 #endif
1520 // Placeholder preference for disabling voice / video chat if it is ever added.
1521 // Currently, this does not change any behavior.
1522 const char kDisableVideoAndChat[] = "disable_video_chat";
1524 // Whether Extensions are enabled.
1525 const char kDisableExtensions[] = "extensions.disabled";
1527 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1528 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1530 // Customized app page names that appear on the New Tab Page.
1531 const char kNtpAppPageNames[] = "ntp.app_page_names";
1533 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1534 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
1536 // Keeps track of which sessions are collapsed in the Other Devices menu.
1537 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1539 // Keeps track of recently closed tabs collapsed state in the Other Devices
1540 // menu.
1541 const char kNtpCollapsedRecentlyClosedTabs[] =
1542 "ntp.collapsed_recently_closed_tabs";
1544 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1545 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1547 // Keeps track of sync promo collapsed state in the Other Devices menu.
1548 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1550 // Serves dates to determine display of elements on the NTP.
1551 const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1553 // New Tab Page URLs that should not be shown as most visited thumbnails.
1554 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1556 // True if a desktop sync session was found for this user.
1557 const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1559 // Which bookmarks folder should be visible on the new tab page v4.
1560 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1562 // Which page should be visible on the new tab page v4
1563 const char kNtpShownPage[] = "ntp.shown_page";
1565 // Serves tips for the NTP.
1566 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1568 // Boolean indicating whether the web store is active for the current locale.
1569 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1571 // A private RSA key for ADB handshake.
1572 const char kDevToolsAdbKey[] = "devtools.adb_key";
1574 const char kDevToolsDisabled[] = "devtools.disabled";
1576 // Determines whether devtools should be discovering usb devices for
1577 // remote debugging at chrome://inspect.
1578 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1579 "devtools.discover_usb_devices";
1581 // Maps of files edited locally using DevTools.
1582 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1584 // List of file system paths added in DevTools.
1585 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1587 // A boolean specifying whether dev tools window should be opened docked.
1588 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1590 // A boolean specifying whether port forwarding should be enabled.
1591 const char kDevToolsPortForwardingEnabled[] =
1592 "devtools.port_forwarding_enabled";
1594 // A boolean specifying whether default port forwarding configuration has been
1595 // set.
1596 const char kDevToolsPortForwardingDefaultSet[] =
1597 "devtools.port_forwarding_default_set";
1599 // A dictionary of port->location pairs for port forwarding.
1600 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1602 #if defined(OS_ANDROID)
1603 // A boolean specifying whether remote dev tools debugging is enabled.
1604 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1605 #endif
1607 // Boolean indicating that TiclInvalidationService should use GCM channel.
1608 // False or lack of settings means XMPPPushClient channel.
1609 const char kInvalidationServiceUseGCMChannel[] =
1610 "invalidation_service.use_gcm_channel";
1612 // Local hash of authentication password, used for off-line authentication
1613 // when on-line authentication is not available.
1614 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1616 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1617 // Tracks the number of times that we have shown the sign in promo at startup.
1618 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1620 // Boolean tracking whether the user chose to skip the sign in promo.
1621 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1623 // Boolean that specifies if the sign in promo is allowed to show on first run.
1624 // This preference is specified in the master preference file to suppress the
1625 // sign in promo for some installations.
1626 const char kSignInPromoShowOnFirstRunAllowed[] =
1627 "sync_promo.show_on_first_run_allowed";
1629 // Boolean that specifies if we should show a bubble in the new tab page.
1630 // The bubble is used to confirm that the user is signed into sync.
1631 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1632 #endif
1634 // Create web application shortcut dialog preferences.
1635 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1636 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1637 const char kWebAppCreateInQuickLaunchBar[] =
1638 "browser.web_app.create_in_quick_launch_bar";
1640 // Dictionary that maps Geolocation network provider server URLs to
1641 // corresponding access token.
1642 const char kGeolocationAccessToken[] = "geolocation.access_token";
1644 #if defined(OS_ANDROID)
1645 // Boolean that controls the enabled-state of Geolocation in content.
1646 const char kGeolocationEnabled[] = "geolocation.enabled";
1647 #endif
1649 #if defined(ENABLE_GOOGLE_NOW)
1650 // Boolean that is true when Google services can use the user's location.
1651 const char kGoogleGeolocationAccessEnabled[] =
1652 "googlegeolocationaccess.enabled";
1653 #endif
1655 // Boolean that specifies whether to enable the Google Now Launcher extension.
1656 // Note: This is not the notifications component gated by ENABLE_GOOGLE_NOW.
1657 const char kGoogleNowLauncherEnabled[] = "google_now_launcher.enabled";
1659 // The default audio capture device used by the Media content setting.
1660 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1662 // The default video capture device used by the Media content setting.
1663 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1665 // The salt used for creating random MediaSource IDs.
1666 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1668 // The last used printer and its settings.
1669 const char kPrintPreviewStickySettings[] =
1670 "printing.print_preview_sticky_settings";
1672 // The last requested size of the dialog as it was closed.
1673 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1674 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1675 const char kCloudPrintSigninDialogWidth[] =
1676 "cloud_print.signin_dialog_size.width";
1677 const char kCloudPrintSigninDialogHeight[] =
1678 "cloud_print.signin_dialog_size.height";
1680 // The list of BackgroundContents that should be loaded when the browser
1681 // launches.
1682 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1684 #if !defined(OS_ANDROID)
1685 // An int that stores how often we've shown the "Chrome is configured to
1686 // auto-launch" infobar.
1687 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1688 #endif
1690 // String that lists supported HTTP authentication schemes.
1691 const char kAuthSchemes[] = "auth.schemes";
1693 // Boolean that specifies whether to disable CNAME lookups when generating
1694 // Kerberos SPN.
1695 const char kDisableAuthNegotiateCnameLookup[] =
1696 "auth.disable_negotiate_cname_lookup";
1698 // Boolean that specifies whether to include the port in a generated Kerberos
1699 // SPN.
1700 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1702 // Whitelist containing servers for which Integrated Authentication is enabled.
1703 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1705 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1706 // with.
1707 const char kAuthNegotiateDelegateWhitelist[] =
1708 "auth.negotiate_delegate_whitelist";
1710 // String that specifies the name of a custom GSSAPI library to load.
1711 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1713 // Boolean that specifies whether to allow basic auth prompting on cross-
1714 // domain sub-content requests.
1715 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1717 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1718 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1720 // A pref holding the value of the policy used to explicitly allow or deny
1721 // access to audio capture devices. When enabled or not set, the user is
1722 // prompted for device access. When disabled, access to audio capture devices
1723 // is not allowed and no prompt will be shown.
1724 // See also kAudioCaptureAllowedUrls.
1725 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1726 // Holds URL patterns that specify URLs that will be granted access to audio
1727 // capture devices without prompt. NOTE: This whitelist is currently only
1728 // supported when running in kiosk mode.
1729 // TODO(tommi): Update comment when this is supported for all modes.
1730 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1732 // A pref holding the value of the policy used to explicitly allow or deny
1733 // access to video capture devices. When enabled or not set, the user is
1734 // prompted for device access. When disabled, access to video capture devices
1735 // is not allowed and no prompt will be shown.
1736 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1737 // Holds URL patterns that specify URLs that will be granted access to video
1738 // capture devices without prompt. NOTE: This whitelist is currently only
1739 // supported when running in kiosk mode.
1740 // TODO(tommi): Update comment when this is supported for all modes.
1741 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1743 // A boolean pref that controls the enabled-state of hotword search voice
1744 // trigger.
1745 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1747 // A boolean pref that controls the enabled-state of hotword search voice
1748 // trigger from any screen.
1749 const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
1751 // A boolean pref that indicates whether the hotword always-on notification
1752 // has been seen already.
1753 const char kHotwordAlwaysOnNotificationSeen[] =
1754 "hotword.always_on_notification_seen";
1756 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1757 // seconds of audio data before and the spoken query are sent back to be stored
1758 // in a user's Voice & Audio Activity. Updated whenever the user opens
1759 // chrome://settings and also polled for every 24 hours.
1760 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1762 // A string holding the locale information under which Hotword was installed.
1763 // It is used for comparison since the hotword voice search trigger must be
1764 // reinstalled to handle a new language.
1765 const char kHotwordPreviousLanguage[] = "hotword.previous_language";
1767 #if defined(OS_ANDROID)
1768 // Boolean that controls the global enabled-state of protected media identifier.
1769 const char kProtectedMediaIdentifierEnabled[] =
1770 "protected_media_identifier.enabled";
1771 #endif
1773 #if defined(OS_CHROMEOS)
1774 // Dictionary for transient storage of settings that should go into device
1775 // settings storage before owner has been assigned.
1776 const char kDeviceSettingsCache[] = "signed_settings_cache";
1778 // The hardware keyboard layout of the device. This should look like
1779 // "xkb:us::eng".
1780 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1782 // An integer pref which shows number of times carrier deal promo
1783 // notification has been shown to user.
1784 const char kCarrierDealPromoShown[] =
1785 "settings.internet.mobile.carrier_deal_promo_shown";
1787 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1788 // it's not the default value; otherwise, no auto-enrollment decision has been
1789 // made yet.
1790 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1792 // An integer pref with the maximum number of bits used by the client in a
1793 // previous auto-enrollment request. If the client goes through an auto update
1794 // during OOBE and reboots into a version of the OS with a larger maximum
1795 // modulus, then it will retry auto-enrollment using the updated value.
1796 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
1798 // The local state pref that stores device activity times before reporting
1799 // them to the policy server.
1800 const char kDeviceActivityTimes[] = "device_status.activity_times";
1802 // A pref holding the last known location when device location reporting is
1803 // enabled.
1804 const char kDeviceLocation[] = "device_status.location";
1806 // A pref holding the value of the policy used to disable mounting of external
1807 // storage for the user.
1808 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
1810 // Copy of owner swap mouse buttons option to use on login screen.
1811 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
1813 // Copy of owner tap-to-click option to use on login screen.
1814 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
1816 // The length of device uptime after which an automatic reboot is scheduled,
1817 // expressed in seconds.
1818 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
1820 // Whether an automatic reboot should be scheduled when an update has been
1821 // applied and a reboot is required to complete the update process.
1822 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1824 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1825 // for connection to Google APIs when the user isn't logged in. Currently used
1826 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1827 // Public Accounts and kiosks.
1828 const char kDeviceRobotAnyApiRefreshToken[] =
1829 "device_robot_refresh_token.any-api";
1831 // Device requisition for enterprise enrollment.
1832 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1834 // Whether to automatically start the enterprise enrollment step during OOBE.
1835 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1837 // Whether the user may exit enrollment.
1838 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1840 // How many times HID detection OOBE dialog was shown.
1841 const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1843 // Dictionary of per-user Least Recently Used input method (used at login
1844 // screen).
1845 extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1847 // A dictionary pref of the echo offer check flag. It sets offer info when
1848 // an offer is checked.
1849 extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
1851 // Key name of a dictionary in local state to store cached multiprofle user
1852 // behavior policy value.
1853 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
1855 // A string pref with initial locale set in VPD or manifest.
1856 const char kInitialLocale[] = "intl.initial_locale";
1858 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1859 const char kOobeComplete[] = "OobeComplete";
1861 // The name of the screen that has to be shown if OOBE has been interrupted.
1862 const char kOobeScreenPending[] = "OobeScreenPending";
1864 // A boolean pref of the device registered flag (second part after first login).
1865 const char kDeviceRegistered[] = "DeviceRegistered";
1867 // Boolean pref to signal corrupted enrollment to force the device through
1868 // enrollment recovery flow upon next boot.
1869 const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1871 // List of usernames that used certificates pushed by policy before.
1872 // This is used to prevent these users from joining multiprofile sessions.
1873 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
1875 // A dictionary containing server-provided device state pulled form the cloud
1876 // after recovery.
1877 const char kServerBackedDeviceState[] = "server_backed_device_state";
1879 // Customized wallpaper URL, which is already downloaded and scaled.
1880 // The URL from this preference must never be fetched. It is compared to the
1881 // URL from customization document to check if wallpaper URL has changed
1882 // since wallpaper was cached.
1883 const char kCustomizationDefaultWallpaperURL[] =
1884 "customization.default_wallpaper_url";
1886 // System uptime, when last logout started.
1887 // This is saved to file and cleared after chrome process starts.
1888 const char kLogoutStartedLast[] = "chromeos.logout-started";
1890 // An integer pref of the current consumer management stage. The meaning of the
1891 // value is defined in:
1892 // chrome/browser/chromeos/policy/consumer_management_stage.h
1893 const char kConsumerManagementStage[] = "consumer_management.stage";
1895 // A boolean pref. If set to true, new experimental OOBE UI is displayed.
1896 const char kNewOobe[] = "NewOobe";
1898 // A boolean pref. If set to true, experimental webview based signin flow
1899 // activated.
1900 extern const char kWebviewSigninEnabled[] =
1901 "webview_signin_enabled";
1902 #endif // defined(OS_CHROMEOS)
1904 // Whether there is a Flash version installed that supports clearing LSO data.
1905 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1907 // Whether we should show Pepper Flash-specific settings.
1908 const char kPepperFlashSettingsEnabled[] =
1909 "browser.pepper_flash_settings_enabled";
1911 // String which specifies where to store the disk cache.
1912 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1913 // Pref name for the policy specifying the maximal cache size.
1914 const char kDiskCacheSize[] = "browser.disk_cache_size";
1915 // Pref name for the policy specifying the maximal media cache size.
1916 const char kMediaCacheSize[] = "browser.media_cache_size";
1918 // Specifies the release channel that the device should be locked to.
1919 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1920 // empty string, in which case the value will be ignored.
1921 // TODO(dubroy): This preference may not be necessary once
1922 // http://crosbug.com/17015 is implemented and the update engine can just
1923 // fetch the correct value from the policy.
1924 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1926 const char kPerformanceTracingEnabled[] =
1927 "feedback.performance_tracing_enabled";
1929 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1930 // Defaults to false.
1931 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
1933 // Indicates that factory reset was requested from options page or reset screen.
1934 const char kFactoryResetRequested[] = "FactoryResetRequested";
1936 // Indicates that debugging features were requested from oobe screen.
1937 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested";
1939 // Boolean recording whether we have showed a balloon that calls out the message
1940 // center for desktop notifications.
1941 const char kMessageCenterShowedFirstRunBalloon[] =
1942 "message_center.showed_first_run_balloon";
1944 // Boolean recording whether the user has disabled the notifications
1945 // menubar or systray icon.
1946 const char kMessageCenterShowIcon[] = "message_center.show_icon";
1948 const char kMessageCenterForcedOnTaskbar[] =
1949 "message_center.was_forced_on_taskbar";
1951 #if defined(OS_CHROMEOS)
1952 // This setting starts periodic timezone refresh when not in user session.
1953 // (user session is controlled by user profile preference
1954 // kResolveTimezoneByGeolocation
1955 const char kResolveDeviceTimezoneByGeolocation[] =
1956 "settings.resolve_device_timezone_by_geolocation";
1957 #endif // defined(OS_CHROMEOS)
1959 // *************** SERVICE PREFS ***************
1960 // These are attached to the service process.
1962 const char kCloudPrintRoot[] = "cloud_print";
1963 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
1964 // The unique id for this instance of the cloud print proxy.
1965 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
1966 // The GAIA auth token for Cloud Print
1967 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
1968 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
1969 // This should eventually go away because the above token should work for both.
1970 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
1971 // The email address of the account used to authenticate with the Cloud Print
1972 // server.
1973 const char kCloudPrintEmail[] = "cloud_print.email";
1974 // Settings specific to underlying print system.
1975 const char kCloudPrintPrintSystemSettings[] =
1976 "cloud_print.print_system_settings";
1977 // A boolean indicating whether we should poll for print jobs when don't have
1978 // an XMPP connection (false by default).
1979 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
1980 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
1981 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
1982 // A boolean indicating whether we should connect to cloud print new printers.
1983 const char kCloudPrintConnectNewPrinters[] =
1984 "cloud_print.user_settings.connectNewPrinters";
1985 // A boolean indicating whether we should ping XMPP connection.
1986 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
1987 // An int value indicating the average timeout between xmpp pings.
1988 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
1989 // Dictionary with settings stored by connector setup page.
1990 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
1991 // List of printers settings.
1992 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
1993 // A boolean indicating whether submitting jobs to Google Cloud Print is
1994 // blocked by policy.
1995 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
1997 // Preference to store proxy settings.
1998 const char kProxy[] = "proxy";
1999 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2001 #if defined(OS_MACOSX)
2002 // Set to true if the user removed our login item so we should not create a new
2003 // one when uninstalling background apps.
2004 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2006 // Set to true if Chrome already created a login item, so there's no need to
2007 // create another one.
2008 const char kChromeCreatedLoginItem[] =
2009 "background_mode.chrome_created_login_item";
2011 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2012 // time.
2013 const char kMigratedLoginItemPref[] =
2014 "background_mode.migrated_login_item_pref";
2016 // A boolean that tracks whether to show a notification when trying to quit
2017 // while there are apps running.
2018 const char kNotifyWhenAppsKeepChromeAlive[] =
2019 "apps.notify-when-apps-keep-chrome-alive";
2020 #endif
2022 // Set to true if background mode is enabled on this browser.
2023 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2025 // Set to true if hardware acceleration mode is enabled on this browser.
2026 const char kHardwareAccelerationModeEnabled[] =
2027 "hardware_acceleration_mode.enabled";
2029 // Hardware acceleration mode from previous browser launch.
2030 const char kHardwareAccelerationModePrevious[] =
2031 "hardware_acceleration_mode_previous";
2033 // List of protocol handlers.
2034 const char kRegisteredProtocolHandlers[] =
2035 "custom_handlers.registered_protocol_handlers";
2037 // List of protocol handlers the user has requested not to be asked about again.
2038 const char kIgnoredProtocolHandlers[] =
2039 "custom_handlers.ignored_protocol_handlers";
2041 // List of protocol handlers registered by policy.
2042 const char kPolicyRegisteredProtocolHandlers[] =
2043 "custom_handlers.policy.registered_protocol_handlers";
2045 // List of protocol handlers the policy has requested to be ignored.
2046 const char kPolicyIgnoredProtocolHandlers[] =
2047 "custom_handlers.policy.ignored_protocol_handlers";
2049 // Whether user-specified handlers for protocols and content types can be
2050 // specified.
2051 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2053 // Integer that specifies the policy refresh rate for device-policy in
2054 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2055 // by the cloud policy subsystem.
2056 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2058 // A boolean where true means that the browser has previously attempted to
2059 // enable autoupdate and failed, so the next out-of-date browser start should
2060 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2061 // instead.
2062 const char kAttemptedToEnableAutoupdate[] =
2063 "browser.attempted_to_enable_autoupdate";
2065 // The next media gallery ID to assign.
2066 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2068 // A list of dictionaries, where each dictionary represents a known media
2069 // gallery.
2070 const char kMediaGalleriesRememberedGalleries[] =
2071 "media_galleries.remembered_galleries";
2073 // The last time a media scan completed.
2074 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2076 #if defined(USE_ASH)
2077 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2078 // local variant is not synced and is used if set. If the local variant is not
2079 // set its value is set from the synced value (once prefs have been
2080 // synced). This gives a per-machine setting that is initialized from the last
2081 // set value.
2082 // These values are default on the machine but can be overridden by per-display
2083 // values in kShelfPreferences (unless overridden by managed policy).
2084 // String value corresponding to ash::Shell::ShelfAlignment.
2085 const char kShelfAlignment[] = "shelf_alignment";
2086 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2087 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2088 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2089 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2090 // This value stores chrome icon's index in the launcher. This should be handled
2091 // separately with app shortcut's index because of ShelfModel's backward
2092 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2093 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2094 // creating two chrome icons.
2095 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2096 // Dictionary value that holds per-display preference of shelf alignment and
2097 // auto-hide behavior. Key of the dictionary is the id of the display, and
2098 // its value is a dictionary whose keys are kShelfAlignment and
2099 // kShelfAutoHideBehavior.
2100 const char kShelfPreferences[] = "shelf_preferences";
2102 // Integer value in milliseconds indicating the length of time for which a
2103 // confirmation dialog should be shown when the user presses the logout button.
2104 // A value of 0 indicates that logout should happen immediately, without showing
2105 // a confirmation dialog.
2106 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2107 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2108 // Boolean value indicating whether to show a logout button in the ash tray.
2109 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2110 #endif
2112 #if defined(USE_AURA)
2113 // Tuning settings for gestures.
2114 const char kMaxSeparationForGestureTouchesInPixels[] =
2115 "gesture.max_separation_for_gesture_touches_in_pixels";
2116 const char kSemiLongPressTimeInMs[] = "gesture.semi_long_press_time_in_ms";
2117 const char kTabScrubActivationDelayInMs[] =
2118 "gesture.tab_scrub_activation_delay_in_ms";
2119 const char kFlingMaxCancelToDownTimeInMs[] =
2120 "gesture.fling_max_cancel_to_down_time_in_ms";
2121 const char kFlingMaxTapGapTimeInMs[] = "gesture.fling_max_tap_gap_time_in_ms";
2122 const char kOverscrollHorizontalThresholdComplete[] =
2123 "overscroll.horizontal_threshold_complete";
2124 const char kOverscrollVerticalThresholdComplete[] =
2125 "overscroll.vertical_threshold_complete";
2126 const char kOverscrollMinimumThresholdStart[] =
2127 "overscroll.minimum_threshold_start";
2128 const char kOverscrollMinimumThresholdStartTouchpad[] =
2129 "overscroll.minimum_threshold_start_touchpad";
2130 const char kOverscrollVerticalThresholdStart[] =
2131 "overscroll.vertical_threshold_start";
2132 const char kOverscrollHorizontalResistThreshold[] =
2133 "overscroll.horizontal_resist_threshold";
2134 const char kOverscrollVerticalResistThreshold[] =
2135 "overscroll.vertical_resist_threshold";
2136 #endif
2138 // Counts how many more times the 'profile on a network share' warning should be
2139 // shown to the user before the next silence period.
2140 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2141 // Tracks the time of the last shown warning. Used to reset
2142 // |network_profile.warnings_left| after a silence period.
2143 const char kNetworkProfileLastWarningTime[] =
2144 "network_profile.last_warning_time";
2146 #if defined(OS_CHROMEOS)
2147 // The RLZ brand code, if enabled.
2148 const char kRLZBrand[] = "rlz.brand";
2149 // Whether RLZ pings are disabled.
2150 const char kRLZDisabled[] = "rlz.disabled";
2151 #endif
2153 #if defined(ENABLE_APP_LIST)
2154 // The directory in user data dir that contains the profile to be used with the
2155 // app launcher.
2156 const char kAppListProfile[] = "app_list.profile";
2158 // The number of times the app launcher was launched since last ping and
2159 // the time of the last ping.
2160 const char kAppListLaunchCount[] = "app_list.launch_count";
2161 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2163 // The number of times the an app was launched from the app launcher since last
2164 // ping and the time of the last ping.
2165 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2166 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2168 // A boolean that tracks whether the user has ever enabled the app launcher.
2169 const char kAppLauncherHasBeenEnabled[] =
2170 "apps.app_launcher.has_been_enabled";
2172 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2173 // install, command line, etc. For UMA.
2174 const char kAppListEnableMethod[] = "app_list.how_enabled";
2176 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2177 const char kAppListEnableTime[] = "app_list.when_enabled";
2179 // TODO(calamity): remove this pref since app launcher will always be
2180 // installed.
2181 // Local state caching knowledge of whether the app launcher is installed.
2182 const char kAppLauncherIsEnabled[] =
2183 "apps.app_launcher.should_show_apps_page";
2185 // Integer representing the version of the app launcher shortcut installed on
2186 // the system. Incremented, e.g., when embedded icons change.
2187 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2189 // A boolean identifying if we should show the app launcher promo or not.
2190 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2192 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2193 // a Drive app id and the value is the corresponding Chrome app id. The pref
2194 // is unsynable and used to track local mappings only.
2195 const char kAppLauncherDriveAppMapping[] =
2196 "apps.app_launcher.drive_app_mapping";
2198 // A list of Drive app ids that tracks the uninstallable Drive apps.
2199 const char kAppLauncherUninstalledDriveApps[] =
2200 "apps.app_launcher.uninstalled_drive_apps";
2201 #endif
2203 // If set, the user requested to launch the app with this extension id while
2204 // in Metro mode, and then relaunched to Desktop mode to start it.
2205 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2207 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2208 // launch of the specified app when restarting Chrome in desktop mode.
2209 const char kAppLaunchForMetroRestartProfile[] =
2210 "apps.app_launch_for_metro_restart_profile";
2212 // An integer that is incremented whenever changes are made to app shortcuts.
2213 // Increasing this causes all app shortcuts to be recreated.
2214 const char kAppShortcutsVersion[] = "apps.shortcuts_version";
2216 // How often the bubble has been shown.
2217 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2219 // A string pref for storing the salt used to compute the pepper device ID.
2220 const char kDRMSalt[] = "settings.privacy.drm_salt";
2221 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2222 // enables the use of remote attestation for content protection.
2223 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2225 // An integer per-profile pref that signals if the watchdog extension is
2226 // installed and active. We need to know if the watchdog extension active for
2227 // ActivityLog initialization before the extension system is initialized.
2228 const char kWatchdogExtensionActive[] =
2229 "profile.extensions.activity_log.num_consumers_active";
2231 #if defined(OS_ANDROID)
2232 // A list of partner bookmark rename/remove mappings.
2233 // Each list item is a dictionary containing a "url", a "provider_title" and
2234 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2235 // given by the PartnerBookmarksProvider and either the user-visible renamed
2236 // title or an empty string if the bookmark node was removed.
2237 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2238 #endif
2240 // Whether DNS Quick Check is disabled in proxy resolution.
2241 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2243 // Whether Guest Mode is enabled within the browser.
2244 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2246 // Whether Adding a new Person is enabled within the user manager.
2247 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2249 // Device identifier used by Easy Unlock stored in local state. This id will be
2250 // combined with a user id, before being registered with the CryptAuth server,
2251 // so it can't correlate users on the same device.
2252 extern const char kEasyUnlockDeviceId[] = "easy_unlock.device_id";
2254 // A dictionary that maps user id to hardlock state.
2255 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
2257 // A dictionary that maps user id to public part of RSA key pair used by
2258 // Easy Sign-in for the user.
2259 const char kEasyUnlockLocalStateTpmKeys[] = "easy_unlock.public_tpm_keys";
2261 // A dictionary in local state containing each user's Easy Unlock profile
2262 // preferences, so they can be accessed outside of the user's profile. The value
2263 // is a dictionary containing an entry for each user. Each user's entry mirrors
2264 // their profile's Easy Unlock preferences.
2265 const char kEasyUnlockLocalStateUserPrefs[] = "easy_unlock.user_prefs";
2267 // The beginning of time span when we count user's "Nope" for the password
2268 // bubble.
2269 const char kPasswordBubbleTimeStamp[] = "password_bubble.timestamp";
2271 // The count of user's "Nope" for the password bubble.
2272 const char kPasswordBubbleNopesCount[] = "password_bubble.nopes";
2274 // Last user's interaction with the password bubble.
2275 const char kPasswordBubbleLastInteractions[] = "password_bubble.interactions";
2277 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2278 const char kRecoveryComponentNeedsElevation[] =
2279 "recovery_component.needs_elevation";
2281 // A dictionary that maps from supervised user whitelist IDs to their properties
2282 // (name and a list of clients that registered the whitelist).
2283 const char kRegisteredSupervisedUserWhitelists[] =
2284 "supervised_users.whitelists";
2286 #if defined(ENABLE_EXTENSIONS)
2287 // Policy that indicates how to handle animated images.
2288 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2289 #endif
2291 } // namespace prefs