media: Remove kRAConsentGranted pref.
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blob14f58d57a3230785f2d423ddaf1fcb3d458a6708
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 recording whether user has dismissed the multiprofile
758 // itroduction dialog show.
759 const char kMultiProfileNeverShowIntro[] =
760 "settings.multi_profile_never_show_intro";
762 // A boolean pref recording whether user has dismissed the multiprofile
763 // teleport warning dialog show.
764 const char kMultiProfileWarningShowDismissed[] =
765 "settings.multi_profile_warning_show_dismissed";
767 // A string pref that holds string enum values of how the user should behave
768 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
769 // for more details of the valid values.
770 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
772 // A boolean preference indicating whether user has seen first-run tutorial
773 // already.
774 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
776 // Indicates the amount of time for which a user authenticated via SAML can use
777 // offline authentication against a cached password before being forced to go
778 // through online authentication against GAIA again. The time is expressed in
779 // seconds. A value of -1 indicates no limit, allowing the user to use offline
780 // authentication indefinitely. The limit is in effect only if GAIA redirected
781 // the user to a SAML IdP during the last online authentication.
782 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
784 // A preference to keep track of the last time the user authenticated against
785 // GAIA using SAML. The preference is updated whenever the user authenticates
786 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
787 // current time. If GAIA performs the authentication itself, the preference is
788 // cleared. The time is expressed as the serialization obtained from
789 // base::Time::ToInternalValue().
790 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
792 // The total number of seconds that the machine has spent sitting on the
793 // OOBE screen.
794 const char kTimeOnOobe[] = "settings.time_on_oobe";
796 // The app/extension name who sets the current wallpaper. If current wallpaper
797 // is set by the component wallpaper picker, it is set to an empty string.
798 const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
800 // List of mounted file systems via the File System Provider API. Used to
801 // restore them after a reboot.
802 const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
804 // A boolean pref set to true if the virtual keyboard should be enabled.
805 const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
807 // A boolean pref that controls whether wake on SSID is enabled.
808 const char kWakeOnWifiSsid[] = "settings.internet.wake_on_wifi_ssid";
810 // This is the policy CaptivePortalAuthenticationIgnoresProxy that allows to
811 // open captive portal authentication pages in a separate window under
812 // a temporary incognito profile ("signin profile" is used for this purpose),
813 // which allows to bypass the user's proxy for captive portal authentication.
814 const char kCaptivePortalAuthenticationIgnoresProxy[] =
815 "proxy.captive_portal_ignores_proxy";
816 #endif // defined(OS_CHROMEOS)
818 // The disabled messages in IPC logging.
819 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
821 // A boolean pref set to true if a Home button to open the Home pages should be
822 // visible on the toolbar.
823 const char kShowHomeButton[] = "browser.show_home_button";
825 // A string value which saves short list of recently user selected encodings
826 // separated with comma punctuation mark.
827 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
829 // Clear Browsing Data dialog preferences.
830 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
831 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
832 const char kDeleteCache[] = "browser.clear_data.cache";
833 const char kDeleteCookies[] = "browser.clear_data.cookies";
834 const char kDeletePasswords[] = "browser.clear_data.passwords";
835 const char kDeleteFormData[] = "browser.clear_data.form_data";
836 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
837 const char kDeauthorizeContentLicenses[] =
838 "browser.clear_data.content_licenses";
839 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
840 const char kLastClearBrowsingDataTime[] =
841 "browser.last_clear_browsing_data_time";
843 // Boolean pref to define the default values for using spellchecker.
844 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
846 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
847 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
849 // Boolean pref to define the default values for using auto spell correct.
850 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
852 // Boolean pref to define the default setting for "block offensive words".
853 // The old key value is kept to avoid unnecessary migration code.
854 const char kSpeechRecognitionFilterProfanities[] =
855 "browser.speechinput_censor_results";
857 // List of speech recognition context names (extensions or websites) for which
858 // the tray notification balloon has already been shown.
859 const char kSpeechRecognitionTrayNotificationShownContexts[] =
860 "browser.speechinput_tray_notification_shown_contexts";
862 // Boolean controlling whether history saving is disabled.
863 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
865 // Boolean controlling whether deleting browsing and download history is
866 // permitted.
867 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
869 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches
870 // and also whether Safety Mode is mandatory on YouTube.
871 // DEPRECATED: This is replaced by kForceGoogleSafeSearch and
872 // kForceYouTubeSafetyMode, and still exists for legacy reasons only.
873 const char kForceSafeSearch[] = "settings.force_safesearch";
875 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
876 const char kForceGoogleSafeSearch[] = "settings.force_google_safesearch";
878 // Boolean controlling whether Safety Mode is mandatory on YouTube.
879 const char kForceYouTubeSafetyMode[] = "settings.force_youtube_safety_mode";
881 // Boolean controlling whether History is recorded and synced for
882 // supervised users.
883 const char kRecordHistory[] = "settings.history_recorded";
885 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
886 // Linux specific preference on whether we should match the system theme.
887 const char kUsesSystemTheme[] = "extensions.theme.use_system";
888 #endif
889 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
890 const char kCurrentThemeID[] = "extensions.theme.id";
891 const char kCurrentThemeImages[] = "extensions.theme.images";
892 const char kCurrentThemeColors[] = "extensions.theme.colors";
893 const char kCurrentThemeTints[] = "extensions.theme.tints";
894 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
896 // Boolean pref which persists whether the extensions_ui is in developer mode
897 // (showing developer packing tools and extensions details)
898 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
900 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
901 // Tool promotion has been dismissed by the user.
902 const char kExtensionsUIDismissedADTPromo[] =
903 "extensions.ui.dismissed_adt_promo";
905 // Dictionary pref that tracks which command belongs to which
906 // extension + named command pair.
907 const char kExtensionCommands[] = "extensions.commands";
909 // Pref containing the directory for internal plugins as written to the plugins
910 // list (below).
911 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
913 // List pref containing information (dictionaries) on plugins.
914 const char kPluginsPluginsList[] = "plugins.plugins_list";
916 // List pref containing names of plugins that are disabled by policy.
917 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
919 // List pref containing exceptions to the list of plugins disabled by policy.
920 const char kPluginsDisabledPluginsExceptions[] =
921 "plugins.plugins_disabled_exceptions";
923 // List pref containing names of plugins that are enabled by policy.
924 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
926 // When bundled NPAPI Flash is removed, if at that point it is enabled while
927 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
928 // want to do so only once.
929 const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
931 // In the early stage of component-updated PPAPI Flash, we did field trials in
932 // which it was set to disabled by default. The corresponding settings item may
933 // remain in some users' profiles. Currently it affects both the bundled and
934 // component-updated PPAPI Flash (since the two share the same enable/disable
935 // state). We want to remove this item to get those users to use PPAPI Flash.
936 // We will want to do so only once.
937 const char kPluginsRemovedOldComponentPepperFlashSettings[] =
938 "plugins.removed_old_component_pepper_flash_settings";
940 #if !defined(OS_ANDROID)
941 // Whether about:plugins is shown in the details mode or not.
942 const char kPluginsShowDetails[] = "plugins.show_details";
943 #endif
945 // Boolean that indicates whether outdated plugins are allowed or not.
946 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
948 // Boolean that indicates whether plugins that require authorization should
949 // be always allowed or not.
950 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
952 #if defined(ENABLE_PLUGIN_INSTALLATION)
953 // Dictionary holding plugins metadata.
954 const char kPluginsMetadata[] = "plugins.metadata";
956 // Last update time of plugins resource cache.
957 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
958 #endif
960 // Boolean that indicates whether we should check if we are the default browser
961 // on start-up.
962 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
964 // Policy setting whether default browser check should be disabled and default
965 // browser registration should take place.
966 const char kDefaultBrowserSettingEnabled[] =
967 "browser.default_browser_setting_enabled";
969 #if defined(OS_MACOSX)
970 // Boolean that indicates whether the application should show the info bar
971 // asking the user to set up automatic updates when Keystone promotion is
972 // required.
973 const char kShowUpdatePromotionInfoBar[] =
974 "browser.show_update_promotion_info_bar";
975 #endif
977 // Boolean that is false if we should show window manager decorations. If
978 // true, we draw a custom chrome frame (thicker title bar and blue border).
979 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
981 #if !defined(OS_ANDROID)
982 // Which plugins have been whitelisted manually by the user.
983 const char kContentSettingsPluginWhitelist[] =
984 "profile.content_settings.plugin_whitelist";
985 #endif
987 // Boolean that is true if we should unconditionally block third-party cookies,
988 // regardless of other content settings.
989 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
991 // Boolean that is true when all locally stored site data (e.g. cookies, local
992 // storage, etc..) should be deleted on exit.
993 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
995 // Double that indicates the default zoom level.
996 const char kPartitionDefaultZoomLevel[] = "partition.default_zoom_level";
997 // TODO(wjmaclean): Remove this once sufficient users have migrated to the
998 // per-StoragePartition zoom levels. http://crbug.com/420643.
999 const char kDefaultZoomLevelDeprecated[] = "profile.default_zoom_level";
1001 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
1002 // be displayed at the default zoom level.
1003 const char kPartitionPerHostZoomLevels[] = "partition.per_host_zoom_levels";
1004 // TODO(wjmaclean): Remove this.
1005 const char kPerHostZoomLevelsDeprecated[] = "profile.per_host_zoom_levels";
1007 // A dictionary that tracks the default data model to use for each section of
1008 // the dialog.
1009 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1011 // Whether a user opted out of making purchases with Google Wallet; changed via
1012 // the autofill dialog's account chooser and set explicitly on dialog submission
1013 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1014 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1016 // Which GAIA users have accepted that use of Google Wallet implies their
1017 // location will be shared with fraud protection services.
1018 const char kAutofillDialogWalletLocationAcceptance[] =
1019 "autofill.wallet_location_disclosure";
1021 // Whether a user wants to save data locally in Autofill.
1022 const char kAutofillDialogSaveData[] = "autofill.save_data";
1024 // Whether the user has selected "Same as billing" for the shipping address when
1025 // using Google Wallet.
1026 const char kAutofillDialogWalletShippingSameAsBilling[] =
1027 "autofill.wallet_shipping_same_as_billing";
1029 // The number of times the generated credit card bubble has been shown.
1030 const char kAutofillGeneratedCardBubbleTimesShown[] =
1031 "autofill.generated_card_bubble_times_shown";
1033 // A dictionary that tracks the defaults to be set on the next invocation
1034 // of the requestAutocomplete dialog.
1035 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1037 #if !defined(OS_ANDROID)
1038 const char kPinnedTabs[] = "pinned_tabs";
1039 #endif
1041 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1042 const char kDisable3DAPIs[] = "disable_3d_apis";
1044 const char kEnableDeprecatedWebPlatformFeatures[] =
1045 "enable_deprecated_web_platform_features";
1047 // Whether to enable hyperlink auditing ("<a ping>").
1048 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1050 // Whether to enable sending referrers.
1051 const char kEnableReferrers[] = "enable_referrers";
1053 // Whether to send the DNT header.
1054 const char kEnableDoNotTrack[] = "enable_do_not_track";
1056 // GL_VENDOR string.
1057 const char kGLVendorString[] = "gl_vendor_string";
1059 // GL_RENDERER string.
1060 const char kGLRendererString[] = "gl_renderer_string";
1062 // GL_VERSION string.
1063 const char kGLVersionString[] = "gl_version_string";
1065 // Boolean that specifies whether to import the form data for autofill from the
1066 // default browser on first run.
1067 const char kImportAutofillFormData[] = "import_autofill_form_data";
1069 // Boolean that specifies whether to import bookmarks from the default browser
1070 // on first run.
1071 const char kImportBookmarks[] = "import_bookmarks";
1073 // Boolean that specifies whether to import the browsing history from the
1074 // default browser on first run.
1075 const char kImportHistory[] = "import_history";
1077 // Boolean that specifies whether to import the homepage from the default
1078 // browser on first run.
1079 const char kImportHomepage[] = "import_home_page";
1081 // Boolean that specifies whether to import the saved passwords from the default
1082 // browser on first run.
1083 const char kImportSavedPasswords[] = "import_saved_passwords";
1085 // Boolean that specifies whether to import the search engine from the default
1086 // browser on first run.
1087 const char kImportSearchEngine[] = "import_search_engine";
1089 // Profile avatar and name
1090 const char kProfileAvatarIndex[] = "profile.avatar_index";
1091 const char kProfileName[] = "profile.name";
1092 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1093 // because it was randomly assigned at profile creation time.
1094 const char kProfileUsingDefaultName[] = "profile.using_default_name";
1095 // Whether a profile is using an avatar without having explicitely chosen it
1096 // (i.e. was assigned by default by legacy profile creation).
1097 const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
1098 const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
1100 // The supervised user ID.
1101 const char kSupervisedUserId[] = "profile.managed_user_id";
1103 // 64-bit integer serialization of the base::Time when the user's GAIA info
1104 // was last updated.
1105 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1107 // The URL from which the GAIA profile picture was downloaded. This is cached to
1108 // prevent the same picture from being downloaded multiple times.
1109 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1111 // Integer that specifies the number of times that we have shown the upgrade
1112 // tutorial card in the avatar menu bubble.
1113 const char kProfileAvatarTutorialShown[] =
1114 "profile.avatar_bubble_tutorial_shown";
1116 // Indicates if we've already shown a notification that high contrast
1117 // mode is on, recommending high-contrast extensions and themes.
1118 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1120 // Boolean controlling whether printing is enabled.
1121 const char kPrintingEnabled[] = "printing.enabled";
1123 // Boolean controlling whether print preview is disabled.
1124 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1126 // An integer pref specifying the fallback behavior for sites outside of content
1127 // packs. One of:
1128 // 0: Allow (does nothing)
1129 // 1: Warn.
1130 // 2: Block.
1131 const char kDefaultSupervisedUserFilteringBehavior[] =
1132 "profile.managed.default_filtering_behavior";
1134 // Whether this user is permitted to create supervised users.
1135 const char kSupervisedUserCreationAllowed[] =
1136 "profile.managed_user_creation_allowed";
1138 // List pref containing the users supervised by this user.
1139 const char kSupervisedUsers[] = "profile.managed_users";
1141 // String that indicates that the profile reset prompt has already been shown to
1142 // the user (profile).
1143 const char kProfileResetPromptMementoInProfilePrefs[] =
1144 "profile.reset_prompt_memento";
1146 // List pref containing the extension ids which are not allowed to send
1147 // notifications to the message center.
1148 const char kMessageCenterDisabledExtensionIds[] =
1149 "message_center.disabled_extension_ids";
1151 // List pref containing the system component ids which are not allowed to send
1152 // notifications to the message center.
1153 const char kMessageCenterDisabledSystemComponentIds[] =
1154 "message_center.disabled_system_component_ids";
1156 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1157 // by the user. Syncable.
1158 // Note: This is now read-only. The welcome notification writes the _local
1159 // version, below.
1160 const char kWelcomeNotificationDismissed[] =
1161 "message_center.welcome_notification_dismissed";
1163 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1164 // by the user on this machine.
1165 const char kWelcomeNotificationDismissedLocal[] =
1166 "message_center.welcome_notification_dismissed_local";
1168 // Boolean pref indicating the welcome notification was previously popped up.
1169 const char kWelcomeNotificationPreviouslyPoppedUp[] =
1170 "message_center.welcome_notification_previously_popped_up";
1172 // Integer pref containing the expiration timestamp of the welcome notification.
1173 const char kWelcomeNotificationExpirationTimestamp[] =
1174 "message_center.welcome_notification_expiration_timestamp";
1176 // Boolean pref that determines whether the user can enter fullscreen mode.
1177 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1178 // platforms.
1179 const char kFullscreenAllowed[] = "fullscreen.allowed";
1181 // Enable notifications for new devices on the local network that can be
1182 // registered to the user's account, e.g. Google Cloud Print printers.
1183 const char kLocalDiscoveryNotificationsEnabled[] =
1184 "local_discovery.notifications_enabled";
1186 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
1187 // a preference was reset.
1188 const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1190 // How many Service Workers are registered with the Push API (could be zero).
1191 const char kPushMessagingRegistrationCount[] =
1192 "gcm.push_messaging_registration_count";
1194 // Maps from app ids to origin + Service Worker registration ID.
1195 const char kPushMessagingApplicationIdMap[] =
1196 "gcm.push_messaging_application_id_map";
1198 // Whether a user is allowed to use Easy Unlock.
1199 const char kEasyUnlockAllowed[] = "easy_unlock.allowed";
1201 // Whether Easy Unlock is enabled.
1202 const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1204 // Preference storing Easy Unlock pairing data.
1205 const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1207 // Whether close proximity between the remote and the local device is required
1208 // in order to use Easy Unlock.
1209 const char kEasyUnlockProximityRequired[] = "easy_unlock.proximity_required";
1211 // Whether to show the Easy Unlock first run tutorial.
1212 const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial";
1214 // A cache of zero suggest results using JSON serialized into a string.
1215 const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults";
1217 #if defined(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1218 // These device IDs are used by the copresence component, to uniquely identify
1219 // this device to the server. For privacy, authenticated and unauthenticated
1220 // calls are made using different device IDs.
1221 const char kCopresenceAuthenticatedDeviceId[] =
1222 "apps.copresence.auth_device_id";
1223 const char kCopresenceAnonymousDeviceId[] = "apps.copresence.unauth_device_id";
1225 // Used to indicate whether or not the toolbar redesign bubble has been shown
1226 // and acknowledged, and the last time the bubble was shown.
1227 const char kToolbarIconSurfacingBubbleAcknowledged[] =
1228 "toolbar_icon_surfacing_bubble_acknowledged";
1229 const char kToolbarIconSurfacingBubbleLastShowTime[] =
1230 "toolbar_icon_surfacing_bubble_show_time";
1231 #endif
1233 // Whether WebRTC should bind to individual NICs to explore all possible routing
1234 // options. Default is true.
1235 #if defined(ENABLE_WEBRTC)
1236 const char kWebRTCMultipleRoutesEnabled[] = "webrtc.multiple_routes_enabled";
1237 #endif
1239 // *************** LOCAL STATE ***************
1240 // These are attached to the machine/installation
1242 // A pref to configure networks device-wide. Its value must be a list of
1243 // NetworkConfigurations according to the OpenNetworkConfiguration
1244 // specification.
1245 // Currently, this pref is only used to store the policy. The user's
1246 // configuration is still stored in Shill.
1247 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1249 // Directory of the last profile used.
1250 const char kProfileLastUsed[] = "profile.last_used";
1252 // List of directories of the profiles last active.
1253 const char kProfilesLastActive[] = "profile.last_active_profiles";
1255 // Total number of profiles created for this Chrome build. Used to tag profile
1256 // directories.
1257 const char kProfilesNumCreated[] = "profile.profiles_created";
1259 // String containing the version of Chrome that the profile was created by.
1260 // If profile was created before this feature was added, this pref will default
1261 // to "1.0.0.0".
1262 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1264 // A map of profile data directory to cached information. This cache can be
1265 // used to display information about profiles without actually having to load
1266 // them.
1267 const char kProfileInfoCache[] = "profile.info_cache";
1269 // Dictionary that maps profile keys to strings that indicate that the profile
1270 // reset prompt has already been shown to the corresponding user (profile).
1271 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1272 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1273 // explanation of why this redundancy is needed.
1274 const char kProfileResetPromptMementosInLocalState[] =
1275 "profile.reset_prompt_mementos";
1277 // Prefs for SSLConfigServicePref.
1278 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1279 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1280 "ssl.rev_checking.required_for_local_anchors";
1281 const char kSSLVersionMin[] = "ssl.version_min";
1282 const char kSSLVersionMax[] = "ssl.version_max";
1283 const char kSSLVersionFallbackMin[] = "ssl.version_fallback_min";
1284 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1285 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1287 // Dictionary of dates when a site's SSL blocking interstitial was proceeded
1288 // through.
1289 const char kSSLBlockingBypassed[] = "ssl.ssl_blocking_bypassed";
1291 // Boolean that specifies whether or not crash reporting and metrics reporting
1292 // are sent over the network for analysis.
1293 const char kMetricsReportingEnabled[] =
1294 "user_experience_metrics.reporting_enabled";
1296 // Boolean that specifies whether or not crash reports are sent
1297 // over the network for analysis.
1298 #if defined(OS_ANDROID)
1299 const char kCrashReportingEnabled[] =
1300 "user_experience_metrics_crash.reporting_enabled";
1301 #endif
1303 // Base64-encoded compressed serialized form of the variations seed protobuf.
1304 const char kVariationsCompressedSeed[] = "variations_compressed_seed";
1306 // 64-bit integer serialization of the base::Time from the last successful seed
1307 // fetch (i.e. when the Variations server responds with 200 or 304).
1308 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1310 // String for the restrict parameter to be appended to the variations URL.
1311 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1313 // Base64-encoded serialized form of the variations seed protobuf.
1314 const char kVariationsSeed[] = "variations_seed";
1316 // 64-bit integer serialization of the base::Time from the last seed received.
1317 const char kVariationsSeedDate[] = "variations_seed_date";
1319 // Digital signature of the binary variations seed data, base64-encoded.
1320 const char kVariationsSeedSignature[] = "variations_seed_signature";
1322 // Number of times a page load event occurred since the last report.
1323 const char kStabilityPageLoadCount[] =
1324 "user_experience_metrics.stability.page_load_count";
1326 // Number of times a renderer process crashed since the last report.
1327 const char kStabilityRendererCrashCount[] =
1328 "user_experience_metrics.stability.renderer_crash_count";
1330 // Number of times an extension renderer process crashed since the last report.
1331 const char kStabilityExtensionRendererCrashCount[] =
1332 "user_experience_metrics.stability.extension_renderer_crash_count";
1334 // This is the location of a list of dictionaries of plugin stability stats.
1335 const char kStabilityPluginStats[] =
1336 "user_experience_metrics.stability.plugin_stats2";
1338 // Number of times the renderer has become non-responsive since the last
1339 // report.
1340 const char kStabilityRendererHangCount[] =
1341 "user_experience_metrics.stability.renderer_hang_count";
1343 // Total number of child process crashes (other than renderer / extension
1344 // renderer ones, and plugin children, which are counted separately) since the
1345 // last report.
1346 const char kStabilityChildProcessCrashCount[] =
1347 "user_experience_metrics.stability.child_process_crash_count";
1349 // On Chrome OS, total number of non-Chrome user process crashes
1350 // since the last report.
1351 const char kStabilityOtherUserCrashCount[] =
1352 "user_experience_metrics.stability.other_user_crash_count";
1354 // On Chrome OS, total number of kernel crashes since the last report.
1355 const char kStabilityKernelCrashCount[] =
1356 "user_experience_metrics.stability.kernel_crash_count";
1358 // On Chrome OS, total number of unclean system shutdowns since the
1359 // last report.
1360 const char kStabilitySystemUncleanShutdownCount[] =
1361 "user_experience_metrics.stability.system_unclean_shutdowns";
1363 #if defined(OS_ANDROID)
1364 // Activity type that is currently in the foreground for the UMA session.
1365 // Uses the ActivityTypeIds::Type enum.
1366 const char kStabilityForegroundActivityType[] =
1367 "user_experience_metrics.stability.current_foreground_activity_type";
1369 // Tracks which Activities were launched during the last session.
1370 // See |metrics_service_android.cc| for its usage.
1371 const char kStabilityLaunchedActivityFlags[] =
1372 "user_experience_metrics.stability.launched_activity_flags";
1374 // List pref: Counts how many times each Activity was launched.
1375 // Indexed into by ActivityTypeIds::Type.
1376 const char kStabilityLaunchedActivityCounts[] =
1377 "user_experience_metrics.stability.launched_activity_counts";
1379 // List pref: Counts how many times each Activity type was in the foreground
1380 // when a UMA session failed to be shut down properly.
1381 // Indexed into by ActivityTypeIds::Type.
1382 const char kStabilityCrashedActivityCounts[] =
1383 "user_experience_metrics.stability.crashed_activity_counts";
1384 #endif
1386 // The keys below are used for the dictionaries in the
1387 // kStabilityPluginStats list.
1388 const char kStabilityPluginName[] = "name";
1389 const char kStabilityPluginLaunches[] = "launches";
1390 const char kStabilityPluginInstances[] = "instances";
1391 const char kStabilityPluginCrashes[] = "crashes";
1392 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1394 // The keys below are strictly increasing counters over the lifetime of
1395 // a chrome installation. They are (optionally) sent up to the uninstall
1396 // survey in the event of uninstallation.
1397 const char kUninstallMetricsPageLoadCount[] =
1398 "uninstall_metrics.page_load_count";
1399 const char kUninstallLastLaunchTimeSec[] =
1400 "uninstall_metrics.last_launch_time_sec";
1401 const char kUninstallLastObservedRunTimeSec[] =
1402 "uninstall_metrics.last_observed_running_time_sec";
1404 // String containing the version of Chrome for which Chrome will not prompt the
1405 // user about setting Chrome as the default browser.
1406 const char kBrowserSuppressDefaultBrowserPrompt[] =
1407 "browser.suppress_default_browser_prompt_for_version";
1409 // A collection of position, size, and other data relating to the browser
1410 // window to restore on startup.
1411 const char kBrowserWindowPlacement[] = "browser.window_placement";
1413 // Browser window placement for popup windows.
1414 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1416 // A collection of position, size, and other data relating to the task
1417 // manager window to restore on startup.
1418 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1420 // A collection of position, size, and other data relating to app windows to
1421 // restore on startup.
1422 const char kAppWindowPlacement[] = "browser.app_window_placement";
1424 // String which specifies where to download files to by default.
1425 const char kDownloadDefaultDirectory[] = "download.default_directory";
1427 // Boolean that records if the download directory was changed by an
1428 // upgrade a unsafe location to a safe location.
1429 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1431 #if defined(OS_WIN) || defined(OS_LINUX) || \
1432 (defined(OS_MACOSX) && !defined(OS_IOS))
1433 const char kOpenPdfDownloadInSystemReader[] =
1434 "download.open_pdf_in_system_reader";
1435 #endif
1437 // String which specifies where to save html files to by default.
1438 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1440 // The type used to save the page. See the enum SavePackage::SavePackageType in
1441 // the chrome/browser/download/save_package.h for the possible values.
1442 const char kSaveFileType[] = "savefile.type";
1444 // String which specifies the last directory that was chosen for uploading
1445 // or opening a file.
1446 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1448 // Boolean that specifies if file selection dialogs are shown.
1449 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1451 // Map of default tasks, associated by MIME type.
1452 const char kDefaultTasksByMimeType[] =
1453 "filebrowser.tasks.default_by_mime_type";
1455 // Map of default tasks, associated by file suffix.
1456 const char kDefaultTasksBySuffix[] =
1457 "filebrowser.tasks.default_by_suffix";
1459 // Extensions which should be opened upon completion.
1460 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1462 // Integer which specifies the frequency in milliseconds for detecting whether
1463 // plugin windows are hung.
1464 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1466 // Integer which specifies the timeout value to be used for SendMessageTimeout
1467 // to detect a hung plugin window.
1468 const char kPluginMessageResponseTimeout[] =
1469 "browser.plugin_message_response_timeout";
1471 // String which represents the dictionary name for our spell-checker.
1472 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1474 // String which represents whether we use the spelling service.
1475 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1477 // Dictionary of schemes used by the external protocol handler.
1478 // The value is true if the scheme must be ignored.
1479 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1481 // Keys used for MAC handling of SafeBrowsing requests.
1482 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1483 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1485 // Integer that specifies the index of the tab the user was on when they
1486 // last visited the options window.
1487 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1489 // Integer that specifies the index of the tab the user was on when they
1490 // last visited the Certificate Manager window.
1491 const char kCertificateManagerWindowLastTabIndex[] =
1492 "certificate_manager_window.last_tab_index";
1494 // Integer that specifies if the first run bubble should be shown.
1495 // This preference is only registered by the first-run procedure.
1496 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1498 // String containing the last known intranet redirect URL, if any. See
1499 // intranet_redirect_detector.h for more information.
1500 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1502 // An enum value of how the browser was shut down (see browser_shutdown.h).
1503 const char kShutdownType[] = "shutdown.type";
1504 // Number of processes that were open when the user shut down.
1505 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1506 // Number of processes that were shut down using the slow path.
1507 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1509 // Whether to restart the current Chrome session automatically as the last thing
1510 // before shutting everything down.
1511 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1513 // Set before autorestarting Chrome, cleared on clean exit.
1514 const char kWasRestarted[] = "was.restarted";
1516 #if defined(OS_WIN)
1517 // Preference to be used while relaunching Chrome. This preference dictates if
1518 // Chrome should be launched in Metro or Desktop mode.
1519 // For more info take a look at ChromeRelaunchMode enum.
1520 const char kRelaunchMode[] = "relaunch.mode";
1521 #endif
1523 // Placeholder preference for disabling voice / video chat if it is ever added.
1524 // Currently, this does not change any behavior.
1525 const char kDisableVideoAndChat[] = "disable_video_chat";
1527 // Whether Extensions are enabled.
1528 const char kDisableExtensions[] = "extensions.disabled";
1530 // Whether the plugin finder that lets you install missing plugins is enabled.
1531 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1533 // Customized app page names that appear on the New Tab Page.
1534 const char kNtpAppPageNames[] = "ntp.app_page_names";
1536 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1537 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
1539 // Keeps track of which sessions are collapsed in the Other Devices menu.
1540 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1542 // Keeps track of recently closed tabs collapsed state in the Other Devices
1543 // menu.
1544 const char kNtpCollapsedRecentlyClosedTabs[] =
1545 "ntp.collapsed_recently_closed_tabs";
1547 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1548 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1550 // Keeps track of sync promo collapsed state in the Other Devices menu.
1551 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1553 // Serves dates to determine display of elements on the NTP.
1554 const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1556 // New Tab Page URLs that should not be shown as most visited thumbnails.
1557 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1559 // True if a desktop sync session was found for this user.
1560 const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1562 // Which bookmarks folder should be visible on the new tab page v4.
1563 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1565 // Which page should be visible on the new tab page v4
1566 const char kNtpShownPage[] = "ntp.shown_page";
1568 // Serves tips for the NTP.
1569 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1571 // Boolean indicating whether the web store is active for the current locale.
1572 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1574 // A private RSA key for ADB handshake.
1575 const char kDevToolsAdbKey[] = "devtools.adb_key";
1577 const char kDevToolsDisabled[] = "devtools.disabled";
1579 // Determines whether devtools should be discovering usb devices for
1580 // remote debugging at chrome://inspect.
1581 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1582 "devtools.discover_usb_devices";
1584 // Maps of files edited locally using DevTools.
1585 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1587 // List of file system paths added in DevTools.
1588 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1590 // A boolean specifying whether dev tools window should be opened docked.
1591 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1593 // A boolean specifying whether port forwarding should be enabled.
1594 const char kDevToolsPortForwardingEnabled[] =
1595 "devtools.port_forwarding_enabled";
1597 // A boolean specifying whether default port forwarding configuration has been
1598 // set.
1599 const char kDevToolsPortForwardingDefaultSet[] =
1600 "devtools.port_forwarding_default_set";
1602 // A dictionary of port->location pairs for port forwarding.
1603 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1605 #if defined(OS_ANDROID)
1606 // A boolean specifying whether remote dev tools debugging is enabled.
1607 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1608 #endif
1610 // Boolean indicating that TiclInvalidationService should use GCM channel.
1611 // False or lack of settings means XMPPPushClient channel.
1612 const char kInvalidationServiceUseGCMChannel[] =
1613 "invalidation_service.use_gcm_channel";
1615 // Local hash of authentication password, used for off-line authentication
1616 // when on-line authentication is not available.
1617 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1619 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1620 // Tracks the number of times that we have shown the sign in promo at startup.
1621 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1623 // Boolean tracking whether the user chose to skip the sign in promo.
1624 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1626 // Boolean that specifies if the sign in promo is allowed to show on first run.
1627 // This preference is specified in the master preference file to suppress the
1628 // sign in promo for some installations.
1629 const char kSignInPromoShowOnFirstRunAllowed[] =
1630 "sync_promo.show_on_first_run_allowed";
1632 // Boolean that specifies if we should show a bubble in the new tab page.
1633 // The bubble is used to confirm that the user is signed into sync.
1634 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1635 #endif
1637 // Create web application shortcut dialog preferences.
1638 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1639 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1640 const char kWebAppCreateInQuickLaunchBar[] =
1641 "browser.web_app.create_in_quick_launch_bar";
1643 // Dictionary that maps Geolocation network provider server URLs to
1644 // corresponding access token.
1645 const char kGeolocationAccessToken[] = "geolocation.access_token";
1647 #if defined(OS_ANDROID)
1648 // Boolean that controls the enabled-state of Geolocation in content.
1649 const char kGeolocationEnabled[] = "geolocation.enabled";
1650 #endif
1652 #if defined(ENABLE_GOOGLE_NOW)
1653 // Boolean that is true when Google services can use the user's location.
1654 const char kGoogleGeolocationAccessEnabled[] =
1655 "googlegeolocationaccess.enabled";
1656 #endif
1658 // Boolean that specifies whether to enable the Google Now Launcher extension.
1659 // Note: This is not the notifications component gated by ENABLE_GOOGLE_NOW.
1660 const char kGoogleNowLauncherEnabled[] = "google_now_launcher.enabled";
1662 // The default audio capture device used by the Media content setting.
1663 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1665 // The default video capture device used by the Media content setting.
1666 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1668 // The salt used for creating random MediaSource IDs.
1669 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1671 // The last used printer and its settings.
1672 const char kPrintPreviewStickySettings[] =
1673 "printing.print_preview_sticky_settings";
1675 // The last requested size of the dialog as it was closed.
1676 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1677 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1678 const char kCloudPrintSigninDialogWidth[] =
1679 "cloud_print.signin_dialog_size.width";
1680 const char kCloudPrintSigninDialogHeight[] =
1681 "cloud_print.signin_dialog_size.height";
1683 // The list of BackgroundContents that should be loaded when the browser
1684 // launches.
1685 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1687 #if !defined(OS_ANDROID)
1688 // An int that stores how often we've shown the "Chrome is configured to
1689 // auto-launch" infobar.
1690 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1691 #endif
1693 // String that lists supported HTTP authentication schemes.
1694 const char kAuthSchemes[] = "auth.schemes";
1696 // Boolean that specifies whether to disable CNAME lookups when generating
1697 // Kerberos SPN.
1698 const char kDisableAuthNegotiateCnameLookup[] =
1699 "auth.disable_negotiate_cname_lookup";
1701 // Boolean that specifies whether to include the port in a generated Kerberos
1702 // SPN.
1703 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1705 // Whitelist containing servers for which Integrated Authentication is enabled.
1706 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1708 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1709 // with.
1710 const char kAuthNegotiateDelegateWhitelist[] =
1711 "auth.negotiate_delegate_whitelist";
1713 // String that specifies the name of a custom GSSAPI library to load.
1714 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1716 // Boolean that specifies whether to allow basic auth prompting on cross-
1717 // domain sub-content requests.
1718 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1720 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1721 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1723 // A pref holding the value of the policy used to explicitly allow or deny
1724 // access to audio capture devices. When enabled or not set, the user is
1725 // prompted for device access. When disabled, access to audio capture devices
1726 // is not allowed and no prompt will be shown.
1727 // See also kAudioCaptureAllowedUrls.
1728 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1729 // Holds URL patterns that specify URLs that will be granted access to audio
1730 // capture devices without prompt. NOTE: This whitelist is currently only
1731 // supported when running in kiosk mode.
1732 // TODO(tommi): Update comment when this is supported for all modes.
1733 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1735 // A pref holding the value of the policy used to explicitly allow or deny
1736 // access to video capture devices. When enabled or not set, the user is
1737 // prompted for device access. When disabled, access to video capture devices
1738 // is not allowed and no prompt will be shown.
1739 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1740 // Holds URL patterns that specify URLs that will be granted access to video
1741 // capture devices without prompt. NOTE: This whitelist is currently only
1742 // supported when running in kiosk mode.
1743 // TODO(tommi): Update comment when this is supported for all modes.
1744 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1746 // A boolean pref that controls the enabled-state of hotword search voice
1747 // trigger.
1748 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1750 // A boolean pref that controls the enabled-state of hotword search voice
1751 // trigger from any screen.
1752 const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
1754 // A boolean pref that indicates whether the hotword always-on notification
1755 // has been seen already.
1756 const char kHotwordAlwaysOnNotificationSeen[] =
1757 "hotword.always_on_notification_seen";
1759 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1760 // seconds of audio data before and the spoken query are sent back to be stored
1761 // in a user's Voice & Audio Activity. Updated whenever the user opens
1762 // chrome://settings and also polled for every 24 hours.
1763 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1765 // A string holding the locale information under which Hotword was installed.
1766 // It is used for comparison since the hotword voice search trigger must be
1767 // reinstalled to handle a new language.
1768 const char kHotwordPreviousLanguage[] = "hotword.previous_language";
1770 #if defined(OS_ANDROID)
1771 // Boolean that controls the global enabled-state of protected media identifier.
1772 const char kProtectedMediaIdentifierEnabled[] =
1773 "protected_media_identifier.enabled";
1774 #endif
1776 #if defined(OS_CHROMEOS)
1777 // Dictionary for transient storage of settings that should go into device
1778 // settings storage before owner has been assigned.
1779 const char kDeviceSettingsCache[] = "signed_settings_cache";
1781 // The hardware keyboard layout of the device. This should look like
1782 // "xkb:us::eng".
1783 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1785 // An integer pref which shows number of times carrier deal promo
1786 // notification has been shown to user.
1787 const char kCarrierDealPromoShown[] =
1788 "settings.internet.mobile.carrier_deal_promo_shown";
1790 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1791 // it's not the default value; otherwise, no auto-enrollment decision has been
1792 // made yet.
1793 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1795 // An integer pref with the maximum number of bits used by the client in a
1796 // previous auto-enrollment request. If the client goes through an auto update
1797 // during OOBE and reboots into a version of the OS with a larger maximum
1798 // modulus, then it will retry auto-enrollment using the updated value.
1799 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
1801 // The local state pref that stores device activity times before reporting
1802 // them to the policy server.
1803 const char kDeviceActivityTimes[] = "device_status.activity_times";
1805 // A pref holding the last known location when device location reporting is
1806 // enabled.
1807 const char kDeviceLocation[] = "device_status.location";
1809 // A pref holding the value of the policy used to disable mounting of external
1810 // storage for the user.
1811 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
1813 // Copy of owner swap mouse buttons option to use on login screen.
1814 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
1816 // Copy of owner tap-to-click option to use on login screen.
1817 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
1819 // The length of device uptime after which an automatic reboot is scheduled,
1820 // expressed in seconds.
1821 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
1823 // Whether an automatic reboot should be scheduled when an update has been
1824 // applied and a reboot is required to complete the update process.
1825 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1827 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1828 // for connection to Google APIs when the user isn't logged in. Currently used
1829 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1830 // Public Accounts and kiosks.
1831 const char kDeviceRobotAnyApiRefreshToken[] =
1832 "device_robot_refresh_token.any-api";
1834 // Device requisition for enterprise enrollment.
1835 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1837 // Whether to automatically start the enterprise enrollment step during OOBE.
1838 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1840 // Whether the user may exit enrollment.
1841 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1843 // How many times HID detection OOBE dialog was shown.
1844 const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1846 // Dictionary of per-user Least Recently Used input method (used at login
1847 // screen).
1848 const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1850 // A dictionary pref of the echo offer check flag. It sets offer info when
1851 // an offer is checked.
1852 const char kEchoCheckedOffers[] = "EchoCheckedOffers";
1854 // Key name of a dictionary in local state to store cached multiprofle user
1855 // behavior policy value.
1856 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
1858 // A string pref with initial locale set in VPD or manifest.
1859 const char kInitialLocale[] = "intl.initial_locale";
1861 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1862 const char kOobeComplete[] = "OobeComplete";
1864 // The name of the screen that has to be shown if OOBE has been interrupted.
1865 const char kOobeScreenPending[] = "OobeScreenPending";
1867 // A boolean pref of the device registered flag (second part after first login).
1868 const char kDeviceRegistered[] = "DeviceRegistered";
1870 // Boolean pref to signal corrupted enrollment to force the device through
1871 // enrollment recovery flow upon next boot.
1872 const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1874 // List of usernames that used certificates pushed by policy before.
1875 // This is used to prevent these users from joining multiprofile sessions.
1876 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
1878 // A dictionary containing server-provided device state pulled form the cloud
1879 // after recovery.
1880 const char kServerBackedDeviceState[] = "server_backed_device_state";
1882 // Customized wallpaper URL, which is already downloaded and scaled.
1883 // The URL from this preference must never be fetched. It is compared to the
1884 // URL from customization document to check if wallpaper URL has changed
1885 // since wallpaper was cached.
1886 const char kCustomizationDefaultWallpaperURL[] =
1887 "customization.default_wallpaper_url";
1889 // System uptime, when last logout started.
1890 // This is saved to file and cleared after chrome process starts.
1891 const char kLogoutStartedLast[] = "chromeos.logout-started";
1893 // An integer pref of the current consumer management stage. The meaning of the
1894 // value is defined in:
1895 // chrome/browser/chromeos/policy/consumer_management_stage.h
1896 const char kConsumerManagementStage[] = "consumer_management.stage";
1898 // A boolean pref. If set to true, new experimental OOBE UI is displayed.
1899 const char kNewOobe[] = "NewOobe";
1901 // A boolean pref. If set to true, experimental webview based signin flow
1902 // activated.
1903 const char kWebviewSigninEnabled[] =
1904 "webview_signin_enabled";
1905 #endif // defined(OS_CHROMEOS)
1907 // Whether there is a Flash version installed that supports clearing LSO data.
1908 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1910 // Whether we should show Pepper Flash-specific settings.
1911 const char kPepperFlashSettingsEnabled[] =
1912 "browser.pepper_flash_settings_enabled";
1914 // String which specifies where to store the disk cache.
1915 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1916 // Pref name for the policy specifying the maximal cache size.
1917 const char kDiskCacheSize[] = "browser.disk_cache_size";
1918 // Pref name for the policy specifying the maximal media cache size.
1919 const char kMediaCacheSize[] = "browser.media_cache_size";
1921 // Specifies the release channel that the device should be locked to.
1922 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1923 // empty string, in which case the value will be ignored.
1924 // TODO(dubroy): This preference may not be necessary once
1925 // http://crosbug.com/17015 is implemented and the update engine can just
1926 // fetch the correct value from the policy.
1927 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1929 const char kPerformanceTracingEnabled[] =
1930 "feedback.performance_tracing_enabled";
1932 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1933 // Defaults to false.
1934 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
1936 // Indicates that factory reset was requested from options page or reset screen.
1937 const char kFactoryResetRequested[] = "FactoryResetRequested";
1939 // Indicates that debugging features were requested from oobe screen.
1940 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested";
1942 // Boolean recording whether we have showed a balloon that calls out the message
1943 // center for desktop notifications.
1944 const char kMessageCenterShowedFirstRunBalloon[] =
1945 "message_center.showed_first_run_balloon";
1947 // Boolean recording whether the user has disabled the notifications
1948 // menubar or systray icon.
1949 const char kMessageCenterShowIcon[] = "message_center.show_icon";
1951 const char kMessageCenterForcedOnTaskbar[] =
1952 "message_center.was_forced_on_taskbar";
1954 #if defined(OS_CHROMEOS)
1955 // This setting starts periodic timezone refresh when not in user session.
1956 // (user session is controlled by user profile preference
1957 // kResolveTimezoneByGeolocation
1958 const char kResolveDeviceTimezoneByGeolocation[] =
1959 "settings.resolve_device_timezone_by_geolocation";
1960 #endif // defined(OS_CHROMEOS)
1962 // *************** SERVICE PREFS ***************
1963 // These are attached to the service process.
1965 const char kCloudPrintRoot[] = "cloud_print";
1966 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
1967 // The unique id for this instance of the cloud print proxy.
1968 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
1969 // The GAIA auth token for Cloud Print
1970 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
1971 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
1972 // This should eventually go away because the above token should work for both.
1973 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
1974 // The email address of the account used to authenticate with the Cloud Print
1975 // server.
1976 const char kCloudPrintEmail[] = "cloud_print.email";
1977 // Settings specific to underlying print system.
1978 const char kCloudPrintPrintSystemSettings[] =
1979 "cloud_print.print_system_settings";
1980 // A boolean indicating whether we should poll for print jobs when don't have
1981 // an XMPP connection (false by default).
1982 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
1983 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
1984 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
1985 // A boolean indicating whether we should connect to cloud print new printers.
1986 const char kCloudPrintConnectNewPrinters[] =
1987 "cloud_print.user_settings.connectNewPrinters";
1988 // A boolean indicating whether we should ping XMPP connection.
1989 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
1990 // An int value indicating the average timeout between xmpp pings.
1991 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
1992 // Dictionary with settings stored by connector setup page.
1993 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
1994 // List of printers settings.
1995 const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
1996 // A boolean indicating whether submitting jobs to Google Cloud Print is
1997 // blocked by policy.
1998 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2000 // Preference to store proxy settings.
2001 const char kProxy[] = "proxy";
2002 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2004 #if defined(OS_MACOSX)
2005 // Set to true if the user removed our login item so we should not create a new
2006 // one when uninstalling background apps.
2007 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2009 // Set to true if Chrome already created a login item, so there's no need to
2010 // create another one.
2011 const char kChromeCreatedLoginItem[] =
2012 "background_mode.chrome_created_login_item";
2014 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2015 // time.
2016 const char kMigratedLoginItemPref[] =
2017 "background_mode.migrated_login_item_pref";
2019 // A boolean that tracks whether to show a notification when trying to quit
2020 // while there are apps running.
2021 const char kNotifyWhenAppsKeepChromeAlive[] =
2022 "apps.notify-when-apps-keep-chrome-alive";
2023 #endif
2025 // Set to true if background mode is enabled on this browser.
2026 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2028 // Set to true if hardware acceleration mode is enabled on this browser.
2029 const char kHardwareAccelerationModeEnabled[] =
2030 "hardware_acceleration_mode.enabled";
2032 // Hardware acceleration mode from previous browser launch.
2033 const char kHardwareAccelerationModePrevious[] =
2034 "hardware_acceleration_mode_previous";
2036 // List of protocol handlers.
2037 const char kRegisteredProtocolHandlers[] =
2038 "custom_handlers.registered_protocol_handlers";
2040 // List of protocol handlers the user has requested not to be asked about again.
2041 const char kIgnoredProtocolHandlers[] =
2042 "custom_handlers.ignored_protocol_handlers";
2044 // List of protocol handlers registered by policy.
2045 const char kPolicyRegisteredProtocolHandlers[] =
2046 "custom_handlers.policy.registered_protocol_handlers";
2048 // List of protocol handlers the policy has requested to be ignored.
2049 const char kPolicyIgnoredProtocolHandlers[] =
2050 "custom_handlers.policy.ignored_protocol_handlers";
2052 // Whether user-specified handlers for protocols and content types can be
2053 // specified.
2054 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2056 // Integer that specifies the policy refresh rate for device-policy in
2057 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2058 // by the cloud policy subsystem.
2059 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2061 // A boolean where true means that the browser has previously attempted to
2062 // enable autoupdate and failed, so the next out-of-date browser start should
2063 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2064 // instead.
2065 const char kAttemptedToEnableAutoupdate[] =
2066 "browser.attempted_to_enable_autoupdate";
2068 // The next media gallery ID to assign.
2069 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2071 // A list of dictionaries, where each dictionary represents a known media
2072 // gallery.
2073 const char kMediaGalleriesRememberedGalleries[] =
2074 "media_galleries.remembered_galleries";
2076 // The last time a media scan completed.
2077 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2079 #if defined(USE_ASH)
2080 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2081 // local variant is not synced and is used if set. If the local variant is not
2082 // set its value is set from the synced value (once prefs have been
2083 // synced). This gives a per-machine setting that is initialized from the last
2084 // set value.
2085 // These values are default on the machine but can be overridden by per-display
2086 // values in kShelfPreferences (unless overridden by managed policy).
2087 // String value corresponding to ash::Shell::ShelfAlignment.
2088 const char kShelfAlignment[] = "shelf_alignment";
2089 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2090 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2091 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2092 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2093 // This value stores chrome icon's index in the launcher. This should be handled
2094 // separately with app shortcut's index because of ShelfModel's backward
2095 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2096 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2097 // creating two chrome icons.
2098 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2099 // Dictionary value that holds per-display preference of shelf alignment and
2100 // auto-hide behavior. Key of the dictionary is the id of the display, and
2101 // its value is a dictionary whose keys are kShelfAlignment and
2102 // kShelfAutoHideBehavior.
2103 const char kShelfPreferences[] = "shelf_preferences";
2105 // Integer value in milliseconds indicating the length of time for which a
2106 // confirmation dialog should be shown when the user presses the logout button.
2107 // A value of 0 indicates that logout should happen immediately, without showing
2108 // a confirmation dialog.
2109 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2110 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2111 // Boolean value indicating whether to show a logout button in the ash tray.
2112 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2113 #endif
2115 #if defined(USE_AURA)
2116 // Tuning settings for gestures.
2117 const char kMaxSeparationForGestureTouchesInPixels[] =
2118 "gesture.max_separation_for_gesture_touches_in_pixels";
2119 const char kSemiLongPressTimeInMs[] = "gesture.semi_long_press_time_in_ms";
2120 const char kTabScrubActivationDelayInMs[] =
2121 "gesture.tab_scrub_activation_delay_in_ms";
2122 const char kFlingMaxCancelToDownTimeInMs[] =
2123 "gesture.fling_max_cancel_to_down_time_in_ms";
2124 const char kFlingMaxTapGapTimeInMs[] = "gesture.fling_max_tap_gap_time_in_ms";
2125 const char kOverscrollHorizontalThresholdComplete[] =
2126 "overscroll.horizontal_threshold_complete";
2127 const char kOverscrollVerticalThresholdComplete[] =
2128 "overscroll.vertical_threshold_complete";
2129 const char kOverscrollMinimumThresholdStart[] =
2130 "overscroll.minimum_threshold_start";
2131 const char kOverscrollMinimumThresholdStartTouchpad[] =
2132 "overscroll.minimum_threshold_start_touchpad";
2133 const char kOverscrollVerticalThresholdStart[] =
2134 "overscroll.vertical_threshold_start";
2135 const char kOverscrollHorizontalResistThreshold[] =
2136 "overscroll.horizontal_resist_threshold";
2137 const char kOverscrollVerticalResistThreshold[] =
2138 "overscroll.vertical_resist_threshold";
2139 #endif
2141 // Counts how many more times the 'profile on a network share' warning should be
2142 // shown to the user before the next silence period.
2143 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2144 // Tracks the time of the last shown warning. Used to reset
2145 // |network_profile.warnings_left| after a silence period.
2146 const char kNetworkProfileLastWarningTime[] =
2147 "network_profile.last_warning_time";
2149 #if defined(OS_CHROMEOS)
2150 // The RLZ brand code, if enabled.
2151 const char kRLZBrand[] = "rlz.brand";
2152 // Whether RLZ pings are disabled.
2153 const char kRLZDisabled[] = "rlz.disabled";
2154 #endif
2156 #if defined(ENABLE_APP_LIST)
2157 // The directory in user data dir that contains the profile to be used with the
2158 // app launcher.
2159 const char kAppListProfile[] = "app_list.profile";
2161 // The number of times the app launcher was launched since last ping and
2162 // the time of the last ping.
2163 const char kAppListLaunchCount[] = "app_list.launch_count";
2164 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2166 // The number of times the an app was launched from the app launcher since last
2167 // ping and the time of the last ping.
2168 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2169 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2171 // A boolean that tracks whether the user has ever enabled the app launcher.
2172 const char kAppLauncherHasBeenEnabled[] =
2173 "apps.app_launcher.has_been_enabled";
2175 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2176 // install, command line, etc. For UMA.
2177 const char kAppListEnableMethod[] = "app_list.how_enabled";
2179 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2180 const char kAppListEnableTime[] = "app_list.when_enabled";
2182 // Integer representing the version of the app launcher shortcut installed on
2183 // the system. Incremented, e.g., when embedded icons change.
2184 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2186 // A boolean identifying if we should show the app launcher promo or not.
2187 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2189 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2190 // a Drive app id and the value is the corresponding Chrome app id. The pref
2191 // is unsynable and used to track local mappings only.
2192 const char kAppLauncherDriveAppMapping[] =
2193 "apps.app_launcher.drive_app_mapping";
2195 // A list of Drive app ids that tracks the uninstallable Drive apps.
2196 const char kAppLauncherUninstalledDriveApps[] =
2197 "apps.app_launcher.uninstalled_drive_apps";
2198 #endif
2200 // If set, the user requested to launch the app with this extension id while
2201 // in Metro mode, and then relaunched to Desktop mode to start it.
2202 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2204 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2205 // launch of the specified app when restarting Chrome in desktop mode.
2206 const char kAppLaunchForMetroRestartProfile[] =
2207 "apps.app_launch_for_metro_restart_profile";
2209 // An integer that is incremented whenever changes are made to app shortcuts.
2210 // Increasing this causes all app shortcuts to be recreated.
2211 const char kAppShortcutsVersion[] = "apps.shortcuts_version";
2213 // How often the bubble has been shown.
2214 const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2216 // A string pref for storing the salt used to compute the pepper device ID.
2217 const char kDRMSalt[] = "settings.privacy.drm_salt";
2218 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2219 // enables the use of remote attestation for content protection.
2220 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2222 // An integer per-profile pref that signals if the watchdog extension is
2223 // installed and active. We need to know if the watchdog extension active for
2224 // ActivityLog initialization before the extension system is initialized.
2225 const char kWatchdogExtensionActive[] =
2226 "profile.extensions.activity_log.num_consumers_active";
2228 #if defined(OS_ANDROID)
2229 // A list of partner bookmark rename/remove mappings.
2230 // Each list item is a dictionary containing a "url", a "provider_title" and
2231 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2232 // given by the PartnerBookmarksProvider and either the user-visible renamed
2233 // title or an empty string if the bookmark node was removed.
2234 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2235 #endif
2237 // Whether DNS Quick Check is disabled in proxy resolution.
2238 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2240 // Whether Guest Mode is enabled within the browser.
2241 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2243 // Whether Adding a new Person is enabled within the user manager.
2244 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2246 // Device identifier used by Easy Unlock stored in local state. This id will be
2247 // combined with a user id, before being registered with the CryptAuth server,
2248 // so it can't correlate users on the same device.
2249 const char kEasyUnlockDeviceId[] = "easy_unlock.device_id";
2251 // A dictionary that maps user id to hardlock state.
2252 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
2254 // A dictionary that maps user id to public part of RSA key pair used by
2255 // Easy Sign-in for the user.
2256 const char kEasyUnlockLocalStateTpmKeys[] = "easy_unlock.public_tpm_keys";
2258 // A dictionary in local state containing each user's Easy Unlock profile
2259 // preferences, so they can be accessed outside of the user's profile. The value
2260 // is a dictionary containing an entry for each user. Each user's entry mirrors
2261 // their profile's Easy Unlock preferences.
2262 const char kEasyUnlockLocalStateUserPrefs[] = "easy_unlock.user_prefs";
2264 // The count of user's "Nope" for the password bubble.
2265 const char kPasswordBubbleNopesCount[] = "password_bubble.nopes";
2267 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2268 const char kRecoveryComponentNeedsElevation[] =
2269 "recovery_component.needs_elevation";
2271 // A dictionary that maps from supervised user whitelist IDs to their properties
2272 // (name and a list of clients that registered the whitelist).
2273 const char kRegisteredSupervisedUserWhitelists[] =
2274 "supervised_users.whitelists";
2276 #if defined(ENABLE_EXTENSIONS)
2277 // Policy that indicates how to handle animated images.
2278 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2279 #endif
2281 } // namespace prefs