Don't compile save_password_infobar_delegate.cc everywhere but Mac and Android
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blob552bcad320a1ddf64d0bd24ed891c8cfc543ca96
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 // Disables screenshot accelerators and extension APIs.
28 // This setting resides both in profile prefs and local state. Accelerator
29 // handling code reads local state, while extension APIs use profile pref.
30 const char kDisableScreenshots[] = "disable_screenshots";
32 // If set to true profiles are created in ephemeral mode and do not store their
33 // data in the profile folder on disk but only in memory.
34 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
36 // A boolean specifying whether the New Tab page is the home page or not.
37 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
39 // This is the URL of the page to load when opening new tabs.
40 const char kHomePage[] = "homepage";
42 // An integer that keeps track of the profile icon version. This allows us to
43 // determine the state of the profile icon for icon format changes.
44 const char kProfileIconVersion[] = "profile.icon_version";
46 // Used to determine if the last session exited cleanly. Set to false when
47 // first opened, and to true when closing. On startup if the value is false,
48 // it means the profile didn't exit cleanly.
49 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards
50 // compatibility.
51 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
53 // A string pref whose values is one of the values defined by
54 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
55 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
56 // shutdown. Used to determine the exit type the last time the profile was open.
57 const char kSessionExitType[] = "profile.exit_type";
59 // An integer pref. Holds one of several values:
60 // 0: (deprecated) open the homepage on startup.
61 // 1: restore the last session.
62 // 2: this was used to indicate a specific session should be restored. It is
63 // no longer used, but saved to avoid conflict with old preferences.
64 // 3: unused, previously indicated the user wants to restore a saved session.
65 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
66 // 5: open the New Tab Page on startup.
67 const char kRestoreOnStartup[] = "session.restore_on_startup";
69 // A preference to keep track of whether we have already checked whether we
70 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
71 // We only need to do this check once, on upgrade from m18 or lower to m19 or
72 // higher.
73 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
75 // Serialized migration time of kURLsToRestoreOnStartup (see
76 // base::Time::ToInternalValue for details on serialization format).
77 const char kRestoreStartupURLsMigrationTime[] =
78 "session.startup_urls_migration_time";
80 // The URLs to restore on startup or when the home button is pressed. The URLs
81 // are only restored on startup if kRestoreOnStartup is 4.
82 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
84 // Old startup url pref name for kURLsToRestoreOnStartup.
85 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
87 // Stores the email address associated with the google account of the custodian
88 // of the supervised user, set when the supervised user is created.
89 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
91 // Stores the display name associated with the google account of the custodian
92 // of the supervised user, updated (if possible) each time the supervised user
93 // starts a session.
94 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
96 // Stores the URL of the profile image associated with the google account of the
97 // custodian of the supervised user.
98 const char kSupervisedUserCustodianProfileImageURL[] =
99 "profile.managed.custodian_profile_image_url";
101 // Stores the URL of the profile associated with the google account of the
102 // custodian of the supervised user.
103 const char kSupervisedUserCustodianProfileURL[] =
104 "profile.managed.custodian_profile_url";
106 // Maps host names to whether the host is manually allowed or blocked.
107 const char kSupervisedUserManualHosts[] = "profile.managed.manual_hosts";
109 // Maps URLs to whether the URL is manually allowed or blocked.
110 const char kSupervisedUserManualURLs[] = "profile.managed.manual_urls";
112 // Stores whether the SafeSites filter is enabled.
113 const char kSupervisedUserSafeSites[] = "profile.managed.safe_sites";
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 #if defined(OS_WIN)
232 const char kWebKitFixedFontFamilyArabic[] =
233 "webkit.webprefs.fonts.fixed.Arab";
234 #endif
235 const char kWebKitSerifFontFamilyArabic[] =
236 "webkit.webprefs.fonts.serif.Arab";
237 const char kWebKitSansSerifFontFamilyArabic[] =
238 "webkit.webprefs.fonts.sansserif.Arab";
239 #if defined(OS_WIN)
240 const char kWebKitStandardFontFamilyCyrillic[] =
241 "webkit.webprefs.fonts.standard.Cyrl";
242 const char kWebKitFixedFontFamilyCyrillic[] =
243 "webkit.webprefs.fonts.fixed.Cyrl";
244 const char kWebKitSerifFontFamilyCyrillic[] =
245 "webkit.webprefs.fonts.serif.Cyrl";
246 const char kWebKitSansSerifFontFamilyCyrillic[] =
247 "webkit.webprefs.fonts.sansserif.Cyrl";
248 const char kWebKitStandardFontFamilyGreek[] =
249 "webkit.webprefs.fonts.standard.Grek";
250 const char kWebKitFixedFontFamilyGreek[] =
251 "webkit.webprefs.fonts.fixed.Grek";
252 const char kWebKitSerifFontFamilyGreek[] =
253 "webkit.webprefs.fonts.serif.Grek";
254 const char kWebKitSansSerifFontFamilyGreek[] =
255 "webkit.webprefs.fonts.sansserif.Grek";
256 #endif
257 const char kWebKitStandardFontFamilyJapanese[] =
258 "webkit.webprefs.fonts.standard.Jpan";
259 const char kWebKitFixedFontFamilyJapanese[] =
260 "webkit.webprefs.fonts.fixed.Jpan";
261 const char kWebKitSerifFontFamilyJapanese[] =
262 "webkit.webprefs.fonts.serif.Jpan";
263 const char kWebKitSansSerifFontFamilyJapanese[] =
264 "webkit.webprefs.fonts.sansserif.Jpan";
265 const char kWebKitStandardFontFamilyKorean[] =
266 "webkit.webprefs.fonts.standard.Hang";
267 const char kWebKitFixedFontFamilyKorean[] =
268 "webkit.webprefs.fonts.fixed.Hang";
269 const char kWebKitSerifFontFamilyKorean[] =
270 "webkit.webprefs.fonts.serif.Hang";
271 const char kWebKitSansSerifFontFamilyKorean[] =
272 "webkit.webprefs.fonts.sansserif.Hang";
273 #if defined(OS_WIN)
274 const char kWebKitCursiveFontFamilyKorean[] =
275 "webkit.webprefs.fonts.cursive.Hang";
276 #endif
277 const char kWebKitStandardFontFamilySimplifiedHan[] =
278 "webkit.webprefs.fonts.standard.Hans";
279 const char kWebKitFixedFontFamilySimplifiedHan[] =
280 "webkit.webprefs.fonts.fixed.Hans";
281 const char kWebKitSerifFontFamilySimplifiedHan[] =
282 "webkit.webprefs.fonts.serif.Hans";
283 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
284 "webkit.webprefs.fonts.sansserif.Hans";
285 const char kWebKitStandardFontFamilyTraditionalHan[] =
286 "webkit.webprefs.fonts.standard.Hant";
287 const char kWebKitFixedFontFamilyTraditionalHan[] =
288 "webkit.webprefs.fonts.fixed.Hant";
289 const char kWebKitSerifFontFamilyTraditionalHan[] =
290 "webkit.webprefs.fonts.serif.Hant";
291 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
292 "webkit.webprefs.fonts.sansserif.Hant";
294 // WebKit preferences.
295 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
296 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
297 const char kWebKitUsesUniversalDetector[] =
298 "webkit.webprefs.uses_universal_detector";
299 const char kWebKitTextAreasAreResizable[] =
300 "webkit.webprefs.text_areas_are_resizable";
301 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
302 const char kWebKitAllowDisplayingInsecureContent[] =
303 "webkit.webprefs.allow_displaying_insecure_content";
304 const char kWebKitAllowRunningInsecureContent[] =
305 "webkit.webprefs.allow_running_insecure_content";
306 #if defined(OS_ANDROID)
307 const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
308 const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
309 const char kWebKitPasswordEchoEnabled[] =
310 "webkit.webprefs.password_echo_enabled";
311 #endif
313 const char kWebKitCommonScript[] = "Zyyy";
314 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
315 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
316 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
317 const char kWebKitSansSerifFontFamily[] =
318 "webkit.webprefs.fonts.sansserif.Zyyy";
319 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
320 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
321 const char kWebKitPictographFontFamily[] =
322 "webkit.webprefs.fonts.pictograph.Zyyy";
323 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
324 const char kWebKitDefaultFixedFontSize[] =
325 "webkit.webprefs.default_fixed_font_size";
326 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
327 const char kWebKitMinimumLogicalFontSize[] =
328 "webkit.webprefs.minimum_logical_font_size";
329 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
330 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
331 "webkit.webprefs.javascript_can_open_windows_automatically";
332 const char kWebKitLoadsImagesAutomatically[] =
333 "webkit.webprefs.loads_images_automatically";
334 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
336 // Boolean that is true when SafeBrowsing is enabled.
337 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
339 // Boolean that tell us whether Safe Browsing extended reporting is enabled.
340 const char kSafeBrowsingExtendedReportingEnabled[] =
341 "safebrowsing.extended_reporting_enabled";
343 // Boolean that is true when the SafeBrowsing interstitial should not allow
344 // users to proceed anyway.
345 const char kSafeBrowsingProceedAnywayDisabled[] =
346 "safebrowsing.proceed_anyway_disabled";
348 // A dictionary mapping incident types to a dict of incident key:digest pairs.
349 const char kSafeBrowsingIncidentsSent[] = "safebrowsing.incidents_sent";
351 // Boolean that tells us whether users are given the option to opt in to Safe
352 // Browsing extended reporting.
353 const char kSafeBrowsingExtendedReportingOptInAllowed[] =
354 "safebrowsing.extended_reporting_opt_in_allowed";
356 // Boolean that is true when the SSL interstitial should allow users to
357 // proceed anyway. Otherwise, proceeding is not possible.
358 const char kSSLErrorOverrideAllowed[] = "ssl.error_override_allowed";
360 // Enum that specifies whether Incognito mode is:
361 // 0 - Enabled. Default behaviour. Default mode is available on demand.
362 // 1 - Disabled. Used cannot browse pages in Incognito mode.
363 // 2 - Forced. All pages/sessions are forced into Incognito.
364 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
366 // Boolean that is true when Suggest support is enabled.
367 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
369 #if defined(OS_ANDROID)
370 // String indicating the Contextual Search enabled state.
371 // "false" - opt-out (disabled)
372 // "" (empty string) - undecided
373 // "true" - opt-in (enabled)
374 const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
375 #endif
377 #if defined(OS_MACOSX)
378 // Boolean that indicates whether the browser should put up a confirmation
379 // window when the user is attempting to quit. Mac only.
380 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
381 #endif
383 // Boolean which specifies whether we should ask the user if we should download
384 // a file (true) or just download it automatically.
385 const char kPromptForDownload[] = "download.prompt_for_download";
387 // A boolean pref set to true if we're using Link Doctor error pages.
388 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
390 // An adaptively identified list of domain names to be pre-fetched during the
391 // next startup, based on what was actually needed during this startup.
392 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
394 // A list of host names used to fetch web pages, and their commonly used
395 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
396 // preconnecting to, such sub-resource hostnames).
397 // This list is adaptively grown and pruned.
398 const char kDnsPrefetchingHostReferralList[] =
399 "dns_prefetching.host_referral_list";
401 // Disables the SPDY protocol.
402 const char kDisableSpdy[] = "spdy.disabled";
404 // Prefs for persisting HttpServerProperties.
405 const char kHttpServerProperties[] = "net.http_server_properties";
407 #if defined(OS_ANDROID) || defined(OS_IOS)
408 // Last time that a check for cloud policy management was done. This time is
409 // recorded on Android so that retries aren't attempted on every startup.
410 // Instead the cloud policy registration is retried at least 1 or 3 days later.
411 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
412 #endif
414 // Prefix URL for the experimental Instant ZeroSuggest provider.
415 const char kInstantUIZeroSuggestUrlPrefix[] =
416 "instant_ui.zero_suggest_url_prefix";
418 // A boolean pref set to true if prediction of network actions is allowed.
419 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
420 // of web pages, and resource prefetching.
421 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
422 // preferences are not lost.
423 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
424 // is functioning as per crbug.com/334602.
425 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
427 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
428 // if prediction of network actions is allowed, depending on network type.
429 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
430 // of web pages, and resource prefetching.
431 // TODO(bnc): Implement this preference as per crbug.com/334602.
432 const char kNetworkPredictionOptions[] = "net.network_prediction_options";
434 // An integer representing the state of the default apps installation process.
435 // This value is persisted in the profile's user preferences because the process
436 // is async, and the user may have stopped chrome in the middle. The next time
437 // the profile is opened, the process will continue from where it left off.
439 // See possible values in external_provider_impl.cc.
440 const char kDefaultAppsInstallState[] = "default_apps_install_state";
442 // A boolean pref set to true if the Chrome Web Store icons should be hidden
443 // from the New Tab Page and app launcher.
444 const char kHideWebStoreIcon[] = "hide_web_store_icon";
446 #if defined(OS_CHROMEOS)
447 // A boolean pref set to true if touchpad tap-to-click is enabled.
448 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
450 // A boolean pref set to true if touchpad tap-dragging is enabled.
451 const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
453 // A boolean pref set to true if touchpad three-finger-click is enabled.
454 const char kEnableTouchpadThreeFingerClick[] =
455 "settings.touchpad.enable_three_finger_click";
457 // A boolean pref set to true if touchpad natural scrolling is enabled.
458 const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
460 // A boolean pref set to true if primary mouse button is the left button.
461 const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
463 // A integer pref for the touchpad sensitivity.
464 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
466 // A integer pref for the touchpad sensitivity.
467 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
469 // A boolean pref set to true if time should be displayed in 24-hour clock.
470 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
472 // This setting disables manual timezone selection and starts periodic timezone
473 // refresh.
474 const char kResolveTimezoneByGeolocation[] =
475 "settings.resolve_timezone_by_geolocation";
477 // A string pref set to the current input method.
478 const char kLanguageCurrentInputMethod[] =
479 "settings.language.current_input_method";
481 // A string pref set to the previous input method.
482 const char kLanguagePreviousInputMethod[] =
483 "settings.language.previous_input_method";
485 // A string pref (comma-separated list) set to the preferred language IDs
486 // (ex. "en-US,fr,ko").
487 const char kLanguagePreferredLanguages[] =
488 "settings.language.preferred_languages";
489 const char kLanguagePreferredLanguagesSyncable[] =
490 "settings.language.preferred_languages_syncable";
492 // A string pref (comma-separated list) set to the preloaded (active) input
493 // method IDs (ex. "pinyin,mozc").
494 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
495 const char kLanguagePreloadEnginesSyncable[] =
496 "settings.language.preload_engines_syncable";
498 // A string pref (comma-separated list) set to the extension IMEs to be enabled.
499 const char kLanguageEnabledExtensionImes[] =
500 "settings.language.enabled_extension_imes";
501 const char kLanguageEnabledExtensionImesSyncable[] =
502 "settings.language.enabled_extension_imes_syncable";
504 // A boolean pref to indicate whether we still need to add the globally synced
505 // input methods. False after the initial post-OOBE sync.
506 const char kLanguageShouldMergeInputMethods[] =
507 "settings.language.merge_input_methods";
509 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
510 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
511 // src/chrome/browser/chromeos/input_method/xkeyboard.h
512 const char kLanguageRemapSearchKeyTo[] =
513 // Note: we no longer use XKB for remapping these keys, but we can't change
514 // the pref names since the names are already synced with the cloud.
515 "settings.language.xkb_remap_search_key_to";
516 const char kLanguageRemapControlKeyTo[] =
517 "settings.language.xkb_remap_control_key_to";
518 const char kLanguageRemapAltKeyTo[] =
519 "settings.language.xkb_remap_alt_key_to";
520 const char kLanguageRemapCapsLockKeyTo[] =
521 "settings.language.remap_caps_lock_key_to";
522 const char kLanguageRemapDiamondKeyTo[] =
523 "settings.language.remap_diamond_key_to";
525 // A boolean pref that causes top-row keys to be interpreted as function keys
526 // instead of as media keys.
527 const char kLanguageSendFunctionKeys[] =
528 "settings.language.send_function_keys";
530 // A boolean pref which determines whether key repeat is enabled.
531 const char kLanguageXkbAutoRepeatEnabled[] =
532 "settings.language.xkb_auto_repeat_enabled_r2";
533 // A integer pref which determines key repeat delay (in ms).
534 const char kLanguageXkbAutoRepeatDelay[] =
535 "settings.language.xkb_auto_repeat_delay_r2";
536 // A integer pref which determines key repeat interval (in ms).
537 const char kLanguageXkbAutoRepeatInterval[] =
538 "settings.language.xkb_auto_repeat_interval_r2";
539 // "_r2" suffixes were added to the three prefs above when we changed the
540 // preferences to not be user-configurable or sync with the cloud. The prefs are
541 // now user-configurable and syncable again, but we don't want to overwrite the
542 // current values with the old synced values, so we continue to use this suffix.
544 // A boolean pref which determines whether the large cursor feature is enabled.
545 const char kAccessibilityLargeCursorEnabled[] =
546 "settings.a11y.large_cursor_enabled";
548 // A boolean pref which determines whether the sticky keys feature is enabled.
549 const char kAccessibilityStickyKeysEnabled[] =
550 "settings.a11y.sticky_keys_enabled";
551 // A boolean pref which determines whether spoken feedback is enabled.
552 const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility";
553 // A boolean pref which determines whether high conrast is enabled.
554 const char kAccessibilityHighContrastEnabled[] =
555 "settings.a11y.high_contrast_enabled";
556 // A boolean pref which determines whether screen magnifier is enabled.
557 const char kAccessibilityScreenMagnifierEnabled[] =
558 "settings.a11y.screen_magnifier";
559 // A boolean pref which determines whether screen magnifier should center
560 // the text input focus.
561 const char kAccessibilityScreenMagnifierCenterFocus[] =
562 "settings.a11y.screen_magnifier_center_focus";
563 // A integer pref which determines what type of screen magnifier is enabled.
564 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
565 // we are using another name pref here.
566 const char kAccessibilityScreenMagnifierType[] =
567 "settings.a11y.screen_magnifier_type2";
568 // A double pref which determines a zooming scale of the screen magnifier.
569 const char kAccessibilityScreenMagnifierScale[] =
570 "settings.a11y.screen_magnifier_scale";
571 // A boolean pref which determines whether the virtual keyboard is enabled for
572 // accessibility. This feature is separate from displaying an onscreen keyboard
573 // due to lack of a physical keyboard.
574 const char kAccessibilityVirtualKeyboardEnabled[] =
575 "settings.a11y.virtual_keyboard";
576 // A boolean pref which determines whether autoclick is enabled.
577 const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick";
578 // An integer pref which determines time in ms between when the mouse cursor
579 // stops and when an autoclick is triggered.
580 const char kAccessibilityAutoclickDelayMs[] =
581 "settings.a11y.autoclick_delay_ms";
582 // A boolean pref which determines whether the accessibility menu shows
583 // regardless of the state of a11y features.
584 const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
586 // A boolean pref which turns on Advanced Filesystem
587 // (USB support, SD card, etc).
588 const char kLabsAdvancedFilesystemEnabled[] =
589 "settings.labs.advanced_filesystem";
591 // A boolean pref which turns on the mediaplayer.
592 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
594 // A boolean pref that turns on automatic screen locking.
595 const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
597 // A boolean pref of whether to show 3G promo notification.
598 const char kShow3gPromoNotification[] =
599 "settings.internet.mobile.show_3g_promo_notification";
601 // An integer pref counting times Data Saver prompt has been shown.
602 const char kDataSaverPromptsShown[] =
603 "settings.internet.mobile.datasaver_prompts_shown";
605 // A string pref that contains version where "What's new" promo was shown.
606 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
608 // A boolean pref that controls whether proxy settings from shared network
609 // settings (accordingly from device policy) are applied or ignored.
610 const char kUseSharedProxies[] = "settings.use_shared_proxies";
612 // Power state of the current displays from the last run.
613 const char kDisplayPowerState[] = "settings.display.power_state";
614 // A dictionary pref that stores per display preferences.
615 const char kDisplayProperties[] = "settings.display.properties";
617 // A dictionary pref that specifies per-display layout/offset information.
618 // Its key is the ID of the display and its value is a dictionary for the
619 // layout/offset information.
620 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
622 // A dictionary pref that specifies the state of the rotation lock, and the
623 // display orientation, for the internal display.
624 const char kDisplayRotationLock[] = "settings.display.rotation_lock";
626 // A boolean pref indicating whether user activity has been observed in the
627 // current session already. The pref is used to restore information about user
628 // activity after browser crashes.
629 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
631 // A preference to keep track of the session start time. If the session length
632 // limit is configured to start running after initial user activity has been
633 // observed, the pref is set after the first user activity in a session.
634 // Otherwise, it is set immediately after session start. The pref is used to
635 // restore the session start time after browser crashes. The time is expressed
636 // as the serialization obtained from base::TimeTicks::ToInternalValue().
637 const char kSessionStartTime[] = "session.start_time";
639 // Holds the maximum session time in milliseconds. If this pref is set, the
640 // user is logged out when the maximum session time is reached. The user is
641 // informed about the remaining time by a countdown timer shown in the ash
642 // system tray.
643 const char kSessionLengthLimit[] = "session.length_limit";
645 // Whether the session length limit should start running only after the first
646 // user activity has been observed in a session.
647 const char kSessionWaitForInitialUserActivity[] =
648 "session.wait_for_initial_user_activity";
650 // Inactivity time in milliseconds while the system is on AC power before
651 // the screen should be dimmed, turned off, or locked, before an
652 // IdleActionImminent D-Bus signal should be sent, or before
653 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
654 // kPowerAcIdleDelayMs).
655 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
656 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
657 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
658 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
659 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
661 // Similar delays while the system is on battery power.
662 const char kPowerBatteryScreenDimDelayMs[] =
663 "power.battery_screen_dim_delay_ms";
664 const char kPowerBatteryScreenOffDelayMs[] =
665 "power.battery_screen_off_delay_ms";
666 const char kPowerBatteryScreenLockDelayMs[] =
667 "power.battery_screen_lock_delay_ms";
668 const char kPowerBatteryIdleWarningDelayMs[] =
669 "power.battery_idle_warning_delay_ms";
670 const char kPowerBatteryIdleDelayMs[] =
671 "power.battery_idle_delay_ms";
673 // Inactivity delays used to dim the screen or turn it off while the screen is
674 // locked.
675 const char kPowerLockScreenDimDelayMs[] = "power.lock_screen_dim_delay_ms";
676 const char kPowerLockScreenOffDelayMs[] = "power.lock_screen_off_delay_ms";
678 // Action that should be performed when the idle delay is reached while the
679 // system is on AC power or battery power.
680 // Values are from the chromeos::PowerPolicyController::Action enum.
681 const char kPowerAcIdleAction[] = "power.ac_idle_action";
682 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
684 // Action that should be performed when the lid is closed.
685 // Values are from the chromeos::PowerPolicyController::Action enum.
686 const char kPowerLidClosedAction[] = "power.lid_closed_action";
688 // Should audio and video activity be used to disable the above delays?
689 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
690 const char kPowerUseVideoActivity[] = "power.use_video_activity";
692 // Should extensions be able to use the chrome.power API to override
693 // screen-related power management (including locking)?
694 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
696 // Amount by which the screen-dim delay should be scaled while the system
697 // is in presentation mode. Values are limited to a minimum of 1.0.
698 const char kPowerPresentationScreenDimDelayFactor[] =
699 "power.presentation_screen_dim_delay_factor";
701 // Amount by which the screen-dim delay should be scaled when user activity is
702 // observed while the screen is dimmed or soon after the screen has been turned
703 // off. Values are limited to a minimum of 1.0.
704 const char kPowerUserActivityScreenDimDelayFactor[] =
705 "power.user_activity_screen_dim_delay_factor";
707 // Whether the power management delays should start running only after the first
708 // user activity has been observed in a session.
709 const char kPowerWaitForInitialUserActivity[] =
710 "power.wait_for_initial_user_activity";
712 // Boolean controlling whether the panel backlight should be forced to a
713 // nonzero level when user activity is observed.
714 const char kPowerForceNonzeroBrightnessForUserActivity[] =
715 "power.force_nonzero_brightness_for_user_activity";
717 // The URL from which the Terms of Service can be downloaded. The value is only
718 // honored for public accounts.
719 const char kTermsOfServiceURL[] = "terms_of_service.url";
721 // Indicates that the Profile has made navigations that used a certificate
722 // installed by the system administrator. If that is true then the local cache
723 // of remote data is tainted (e.g. shared scripts), and future navigations
724 // show a warning indicating that the organization may track the browsing
725 // session.
726 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
728 // Indicates whether the remote attestation is enabled for the user.
729 const char kAttestationEnabled[] = "attestation.enabled";
730 // The list of extensions allowed to use the platformKeysPrivate API for
731 // remote attestation.
732 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
734 // A boolean pref indicating whether the projection touch HUD is enabled or not.
735 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
737 // A pref to configure networks. Its value must be a list of
738 // NetworkConfigurations according to the OpenNetworkConfiguration
739 // specification.
740 // Currently, this pref is only used to store the policy. The user's
741 // configuration is still stored in Shill.
742 const char kOpenNetworkConfiguration[] = "onc";
744 // A boolean pref recording whether user has dismissed the multiprofile
745 // itroduction dialog show.
746 const char kMultiProfileNeverShowIntro[] =
747 "settings.multi_profile_never_show_intro";
749 // A boolean pref recording whether user has dismissed the multiprofile
750 // teleport warning dialog show.
751 const char kMultiProfileWarningShowDismissed[] =
752 "settings.multi_profile_warning_show_dismissed";
754 // A string pref that holds string enum values of how the user should behave
755 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
756 // for more details of the valid values.
757 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
759 // A boolean preference indicating whether user has seen first-run tutorial
760 // already.
761 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
763 // Indicates the amount of time for which a user authenticated via SAML can use
764 // offline authentication against a cached password before being forced to go
765 // through online authentication against GAIA again. The time is expressed in
766 // seconds. A value of -1 indicates no limit, allowing the user to use offline
767 // authentication indefinitely. The limit is in effect only if GAIA redirected
768 // the user to a SAML IdP during the last online authentication.
769 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
771 // A preference to keep track of the last time the user authenticated against
772 // GAIA using SAML. The preference is updated whenever the user authenticates
773 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
774 // current time. If GAIA performs the authentication itself, the preference is
775 // cleared. The time is expressed as the serialization obtained from
776 // base::Time::ToInternalValue().
777 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
779 // The total number of seconds that the machine has spent sitting on the
780 // OOBE screen.
781 const char kTimeOnOobe[] = "settings.time_on_oobe";
783 // The app/extension name who sets the current wallpaper. If current wallpaper
784 // is set by the component wallpaper picker, it is set to an empty string.
785 const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
787 // List of mounted file systems via the File System Provider API. Used to
788 // restore them after a reboot.
789 const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
791 // A boolean pref set to true if the virtual keyboard should be enabled.
792 const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
794 // A boolean pref that controls whether wake on SSID is enabled.
795 const char kWakeOnWifiSsid[] = "settings.internet.wake_on_wifi_ssid";
797 // This is the policy CaptivePortalAuthenticationIgnoresProxy that allows to
798 // open captive portal authentication pages in a separate window under
799 // a temporary incognito profile ("signin profile" is used for this purpose),
800 // which allows to bypass the user's proxy for captive portal authentication.
801 const char kCaptivePortalAuthenticationIgnoresProxy[] =
802 "proxy.captive_portal_ignores_proxy";
804 // This boolean controls whether the first window shown on first run should be
805 // unconditionally maximized, overriding the heuristic that normally chooses the
806 // window size.
807 const char kForceMaximizeOnFirstRun[] = "ui.force_maximize_on_first_run";
809 // A dictionary pref mapping public keys that identify platform keys to its
810 // properties like whether it's meant for corporate usage.
811 const char kPlatformKeys[] = "platform_keys";
812 #endif // defined(OS_CHROMEOS)
814 // A boolean pref set to true if a Home button to open the Home pages should be
815 // visible on the toolbar.
816 const char kShowHomeButton[] = "browser.show_home_button";
818 // A string value which saves short list of recently user selected encodings
819 // separated with comma punctuation mark.
820 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
822 // Clear Browsing Data dialog preferences.
823 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
824 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
825 const char kDeleteCache[] = "browser.clear_data.cache";
826 const char kDeleteCookies[] = "browser.clear_data.cookies";
827 const char kDeletePasswords[] = "browser.clear_data.passwords";
828 const char kDeleteFormData[] = "browser.clear_data.form_data";
829 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
830 const char kDeauthorizeContentLicenses[] =
831 "browser.clear_data.content_licenses";
832 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
833 const char kLastClearBrowsingDataTime[] =
834 "browser.last_clear_browsing_data_time";
836 // Boolean pref to define the default values for using spellchecker.
837 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
839 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
840 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
842 // Boolean pref to define the default values for using auto spell correct.
843 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
845 // Boolean pref to define the default setting for "block offensive words".
846 // The old key value is kept to avoid unnecessary migration code.
847 const char kSpeechRecognitionFilterProfanities[] =
848 "browser.speechinput_censor_results";
850 // Boolean controlling whether history saving is disabled.
851 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
853 // Boolean controlling whether deleting browsing and download history is
854 // permitted.
855 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
857 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
858 const char kForceGoogleSafeSearch[] = "settings.force_google_safesearch";
860 // Boolean controlling whether Safety Mode is mandatory on YouTube.
861 const char kForceYouTubeSafetyMode[] = "settings.force_youtube_safety_mode";
863 // Boolean controlling whether History is recorded and synced for
864 // supervised users.
865 const char kRecordHistory[] = "settings.history_recorded";
867 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
868 // Linux specific preference on whether we should match the system theme.
869 const char kUsesSystemTheme[] = "extensions.theme.use_system";
870 #endif
871 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
872 const char kCurrentThemeID[] = "extensions.theme.id";
873 const char kCurrentThemeImages[] = "extensions.theme.images";
874 const char kCurrentThemeColors[] = "extensions.theme.colors";
875 const char kCurrentThemeTints[] = "extensions.theme.tints";
876 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
878 // Boolean pref which persists whether the extensions_ui is in developer mode
879 // (showing developer packing tools and extensions details)
880 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
882 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
883 // Tool promotion has been dismissed by the user.
884 const char kExtensionsUIDismissedADTPromo[] =
885 "extensions.ui.dismissed_adt_promo";
887 // Dictionary pref that tracks which command belongs to which
888 // extension + named command pair.
889 const char kExtensionCommands[] = "extensions.commands";
891 // Pref containing the directory for internal plugins as written to the plugins
892 // list (below).
893 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
895 // List pref containing information (dictionaries) on plugins.
896 const char kPluginsPluginsList[] = "plugins.plugins_list";
898 // List pref containing names of plugins that are disabled by policy.
899 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
901 // List pref containing exceptions to the list of plugins disabled by policy.
902 const char kPluginsDisabledPluginsExceptions[] =
903 "plugins.plugins_disabled_exceptions";
905 // List pref containing names of plugins that are enabled by policy.
906 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
908 // When bundled NPAPI Flash is removed, if at that point it is enabled while
909 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
910 // want to do so in M45, once, for realz.
911 const char kNpapiFlashMigratedToPepperFlash[] =
912 "plugins.npapi_flash_migrated_to_pepper_flash";
914 #if defined(ENABLE_PLUGINS)
915 // Whether about:plugins is shown in the details mode or not.
916 const char kPluginsShowDetails[] = "plugins.show_details";
917 #endif
919 // Boolean that indicates whether outdated plugins are allowed or not.
920 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
922 // Boolean that indicates whether plugins that require authorization should
923 // be always allowed or not.
924 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
926 #if defined(ENABLE_PLUGIN_INSTALLATION)
927 // Dictionary holding plugins metadata.
928 const char kPluginsMetadata[] = "plugins.metadata";
930 // Last update time of plugins resource cache.
931 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
932 #endif
934 // Boolean that indicates whether we should check if we are the default browser
935 // on start-up.
936 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
938 // Policy setting whether default browser check should be disabled and default
939 // browser registration should take place.
940 const char kDefaultBrowserSettingEnabled[] =
941 "browser.default_browser_setting_enabled";
943 #if defined(OS_MACOSX)
944 // Boolean that indicates whether the application should show the info bar
945 // asking the user to set up automatic updates when Keystone promotion is
946 // required.
947 const char kShowUpdatePromotionInfoBar[] =
948 "browser.show_update_promotion_info_bar";
949 #endif
951 // Boolean that is false if we should show window manager decorations. If
952 // true, we draw a custom chrome frame (thicker title bar and blue border).
953 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
955 #if defined(ENABLE_PLUGINS)
956 // Which plugins have been whitelisted manually by the user.
957 const char kContentSettingsPluginWhitelist[] =
958 "profile.content_settings.plugin_whitelist";
959 #endif
961 // Double that indicates the default zoom level.
962 const char kPartitionDefaultZoomLevel[] = "partition.default_zoom_level";
964 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
965 // be displayed at the default zoom level.
966 const char kPartitionPerHostZoomLevels[] = "partition.per_host_zoom_levels";
968 // A dictionary that tracks the default data model to use for each section of
969 // the dialog.
970 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
972 // Whether a user opted out of making purchases with Google Wallet; changed via
973 // the autofill dialog's account chooser and set explicitly on dialog submission
974 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
975 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
977 // Which GAIA users have accepted that use of Google Wallet implies their
978 // location will be shared with fraud protection services.
979 const char kAutofillDialogWalletLocationAcceptance[] =
980 "autofill.wallet_location_disclosure";
982 // Whether a user wants to save data locally in Autofill.
983 const char kAutofillDialogSaveData[] = "autofill.save_data";
985 // Whether the user has selected "Same as billing" for the shipping address when
986 // using Google Wallet.
987 const char kAutofillDialogWalletShippingSameAsBilling[] =
988 "autofill.wallet_shipping_same_as_billing";
990 // The number of times the generated credit card bubble has been shown.
991 const char kAutofillGeneratedCardBubbleTimesShown[] =
992 "autofill.generated_card_bubble_times_shown";
994 #if defined(OS_ANDROID)
995 // A dictionary that tracks the defaults to be set on the next invocation
996 // of the requestAutocomplete dialog.
997 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
998 #endif
1000 #if !defined(OS_ANDROID)
1001 const char kPinnedTabs[] = "pinned_tabs";
1002 #endif
1004 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1005 const char kDisable3DAPIs[] = "disable_3d_apis";
1007 const char kEnableDeprecatedWebPlatformFeatures[] =
1008 "enable_deprecated_web_platform_features";
1010 // Whether to enable hyperlink auditing ("<a ping>").
1011 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1013 // Whether to enable sending referrers.
1014 const char kEnableReferrers[] = "enable_referrers";
1016 // Whether to send the DNT header.
1017 const char kEnableDoNotTrack[] = "enable_do_not_track";
1019 // GL_VENDOR string.
1020 const char kGLVendorString[] = "gl_vendor_string";
1022 // GL_RENDERER string.
1023 const char kGLRendererString[] = "gl_renderer_string";
1025 // GL_VERSION string.
1026 const char kGLVersionString[] = "gl_version_string";
1028 // Boolean that specifies whether to import the form data for autofill from the
1029 // default browser on first run.
1030 const char kImportAutofillFormData[] = "import_autofill_form_data";
1032 // Boolean that specifies whether to import bookmarks from the default browser
1033 // on first run.
1034 const char kImportBookmarks[] = "import_bookmarks";
1036 // Boolean that specifies whether to import the browsing history from the
1037 // default browser on first run.
1038 const char kImportHistory[] = "import_history";
1040 // Boolean that specifies whether to import the homepage from the default
1041 // browser on first run.
1042 const char kImportHomepage[] = "import_home_page";
1044 // Boolean that specifies whether to import the saved passwords from the default
1045 // browser on first run.
1046 const char kImportSavedPasswords[] = "import_saved_passwords";
1048 // Boolean that specifies whether to import the search engine from the default
1049 // browser on first run.
1050 const char kImportSearchEngine[] = "import_search_engine";
1052 // Profile avatar and name
1053 const char kProfileAvatarIndex[] = "profile.avatar_index";
1054 const char kProfileName[] = "profile.name";
1055 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1056 // because it was randomly assigned at profile creation time.
1057 const char kProfileUsingDefaultName[] = "profile.using_default_name";
1058 // Whether a profile is using an avatar without having explicitely chosen it
1059 // (i.e. was assigned by default by legacy profile creation).
1060 const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
1061 const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
1063 // The supervised user ID.
1064 const char kSupervisedUserId[] = "profile.managed_user_id";
1066 // 64-bit integer serialization of the base::Time when the user's GAIA info
1067 // was last updated.
1068 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1070 // The URL from which the GAIA profile picture was downloaded. This is cached to
1071 // prevent the same picture from being downloaded multiple times.
1072 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1074 // Integer that specifies the number of times that we have shown the upgrade
1075 // tutorial card in the avatar menu bubble.
1076 const char kProfileAvatarTutorialShown[] =
1077 "profile.avatar_bubble_tutorial_shown";
1079 // Boolean that specifies if the user has already dismissed the right-click user
1080 // switching tutorial.
1081 const char kProfileAvatarRightClickTutorialDismissed[] =
1082 "profile.avatar_bubble_right_click_tutorial_dismissed";
1084 // Indicates if we've already shown a notification that high contrast
1085 // mode is on, recommending high-contrast extensions and themes.
1086 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1088 // Boolean controlling whether printing is enabled.
1089 const char kPrintingEnabled[] = "printing.enabled";
1091 // Boolean controlling whether print preview is disabled.
1092 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1094 // An integer pref specifying the fallback behavior for sites outside of content
1095 // packs. One of:
1096 // 0: Allow (does nothing)
1097 // 1: Warn.
1098 // 2: Block.
1099 const char kDefaultSupervisedUserFilteringBehavior[] =
1100 "profile.managed.default_filtering_behavior";
1102 // Whether this user is permitted to create supervised users.
1103 const char kSupervisedUserCreationAllowed[] =
1104 "profile.managed_user_creation_allowed";
1106 // List pref containing the users supervised by this user.
1107 const char kSupervisedUsers[] = "profile.managed_users";
1109 // String that indicates that the profile reset prompt has already been shown to
1110 // the user (profile).
1111 const char kProfileResetPromptMementoInProfilePrefs[] =
1112 "profile.reset_prompt_memento";
1114 // List pref containing the extension ids which are not allowed to send
1115 // notifications to the message center.
1116 const char kMessageCenterDisabledExtensionIds[] =
1117 "message_center.disabled_extension_ids";
1119 // List pref containing the system component ids which are not allowed to send
1120 // notifications to the message center.
1121 const char kMessageCenterDisabledSystemComponentIds[] =
1122 "message_center.disabled_system_component_ids";
1124 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1125 // by the user. Syncable.
1126 // Note: This is now read-only. The welcome notification writes the _local
1127 // version, below.
1128 const char kWelcomeNotificationDismissed[] =
1129 "message_center.welcome_notification_dismissed";
1131 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1132 // by the user on this machine.
1133 const char kWelcomeNotificationDismissedLocal[] =
1134 "message_center.welcome_notification_dismissed_local";
1136 // Boolean pref indicating the welcome notification was previously popped up.
1137 const char kWelcomeNotificationPreviouslyPoppedUp[] =
1138 "message_center.welcome_notification_previously_popped_up";
1140 // Integer pref containing the expiration timestamp of the welcome notification.
1141 const char kWelcomeNotificationExpirationTimestamp[] =
1142 "message_center.welcome_notification_expiration_timestamp";
1144 // Boolean pref that determines whether the user can enter fullscreen mode.
1145 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1146 // platforms.
1147 const char kFullscreenAllowed[] = "fullscreen.allowed";
1149 // Enable notifications for new devices on the local network that can be
1150 // registered to the user's account, e.g. Google Cloud Print printers.
1151 const char kLocalDiscoveryNotificationsEnabled[] =
1152 "local_discovery.notifications_enabled";
1154 // How many Service Workers are registered with the Push API (could be zero).
1155 const char kPushMessagingRegistrationCount[] =
1156 "gcm.push_messaging_registration_count";
1158 // Maps from app ids to origin + Service Worker registration ID.
1159 const char kPushMessagingAppIdentifierMap[] =
1160 "gcm.push_messaging_application_id_map";
1162 // Whether a user is allowed to use Easy Unlock.
1163 const char kEasyUnlockAllowed[] = "easy_unlock.allowed";
1165 // Whether Easy Unlock is enabled.
1166 const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1168 // Preference storing Easy Unlock pairing data.
1169 const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1171 // Whether close proximity between the remote and the local device is required
1172 // in order to use Easy Unlock.
1173 const char kEasyUnlockProximityRequired[] = "easy_unlock.proximity_required";
1175 #if defined(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1176 // These device IDs are used by the copresence component, to uniquely identify
1177 // this device to the server. For privacy, authenticated and unauthenticated
1178 // calls are made using different device IDs.
1179 const char kCopresenceAuthenticatedDeviceId[] =
1180 "apps.copresence.auth_device_id";
1181 const char kCopresenceAnonymousDeviceId[] = "apps.copresence.unauth_device_id";
1183 // Used to indicate whether or not the toolbar redesign bubble has been shown
1184 // and acknowledged, and the last time the bubble was shown.
1185 const char kToolbarIconSurfacingBubbleAcknowledged[] =
1186 "toolbar_icon_surfacing_bubble_acknowledged";
1187 const char kToolbarIconSurfacingBubbleLastShowTime[] =
1188 "toolbar_icon_surfacing_bubble_show_time";
1189 #endif
1191 #if defined(ENABLE_WEBRTC)
1192 // Whether WebRTC should bind to individual NICs to explore all possible routing
1193 // options. Default is true.
1194 const char kWebRTCMultipleRoutesEnabled[] = "webrtc.multiple_routes_enabled";
1195 // Whether WebRTC should use non-proxied UDP. If false, WebRTC will not send UDP
1196 // unless it goes through a proxy (i.e RETURN when it's available). If no UDP
1197 // proxy is configured, it will not send UDP. If true, WebRTC will send UDP
1198 // regardless of whether or not a proxy is configured.
1199 const char kWebRTCNonProxiedUdpEnabled[] =
1200 "webrtc.nonproxied_udp_enabled";
1201 #endif
1203 // *************** LOCAL STATE ***************
1204 // These are attached to the machine/installation
1206 // A pref to configure networks device-wide. Its value must be a list of
1207 // NetworkConfigurations according to the OpenNetworkConfiguration
1208 // specification.
1209 // Currently, this pref is only used to store the policy. The user's
1210 // configuration is still stored in Shill.
1211 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1213 // Directory of the last profile used.
1214 const char kProfileLastUsed[] = "profile.last_used";
1216 // List of directories of the profiles last active.
1217 const char kProfilesLastActive[] = "profile.last_active_profiles";
1219 // Total number of profiles created for this Chrome build. Used to tag profile
1220 // directories.
1221 const char kProfilesNumCreated[] = "profile.profiles_created";
1223 // String containing the version of Chrome that the profile was created by.
1224 // If profile was created before this feature was added, this pref will default
1225 // to "1.0.0.0".
1226 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1228 // A map of profile data directory to cached information. This cache can be
1229 // used to display information about profiles without actually having to load
1230 // them.
1231 const char kProfileInfoCache[] = "profile.info_cache";
1233 // Dictionary that maps profile keys to strings that indicate that the profile
1234 // reset prompt has already been shown to the corresponding user (profile).
1235 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1236 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1237 // explanation of why this redundancy is needed.
1238 const char kProfileResetPromptMementosInLocalState[] =
1239 "profile.reset_prompt_mementos";
1241 // Prefs for SSLConfigServicePref.
1242 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1243 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1244 "ssl.rev_checking.required_for_local_anchors";
1245 const char kSSLVersionMin[] = "ssl.version_min";
1246 const char kSSLVersionMax[] = "ssl.version_max";
1247 const char kSSLVersionFallbackMin[] = "ssl.version_fallback_min";
1248 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1249 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1251 // Boolean that specifies whether or not crash reporting and metrics reporting
1252 // are sent over the network for analysis.
1253 const char kMetricsReportingEnabled[] =
1254 "user_experience_metrics.reporting_enabled";
1256 // Boolean that specifies whether or not crash reports are sent
1257 // over the network for analysis.
1258 #if defined(OS_ANDROID)
1259 const char kCrashReportingEnabled[] =
1260 "user_experience_metrics_crash.reporting_enabled";
1261 #endif
1263 // Number of times a page load event occurred since the last report.
1264 const char kStabilityPageLoadCount[] =
1265 "user_experience_metrics.stability.page_load_count";
1267 // Number of times a renderer process crashed since the last report.
1268 const char kStabilityRendererCrashCount[] =
1269 "user_experience_metrics.stability.renderer_crash_count";
1271 // Number of times a renderer process failed to launch since the last report.
1272 const char kStabilityRendererFailedLaunchCount[] =
1273 "user_experience_metrics.stability.renderer_failed_launch_count";
1275 // Number of times an extension renderer process crashed since the last report.
1276 const char kStabilityExtensionRendererCrashCount[] =
1277 "user_experience_metrics.stability.extension_renderer_crash_count";
1279 // Number of times an extension renderer process failed to launch since the last
1280 // report.
1281 const char kStabilityExtensionRendererFailedLaunchCount[] =
1282 "user_experience_metrics.stability.extension_renderer_failed_launch_count";
1284 // This is the location of a list of dictionaries of plugin stability stats.
1285 const char kStabilityPluginStats[] =
1286 "user_experience_metrics.stability.plugin_stats2";
1288 // Number of times the renderer has become non-responsive since the last
1289 // report.
1290 const char kStabilityRendererHangCount[] =
1291 "user_experience_metrics.stability.renderer_hang_count";
1293 // Total number of child process crashes (other than renderer / extension
1294 // renderer ones, and plugin children, which are counted separately) since the
1295 // last report.
1296 const char kStabilityChildProcessCrashCount[] =
1297 "user_experience_metrics.stability.child_process_crash_count";
1299 // On Chrome OS, total number of non-Chrome user process crashes
1300 // since the last report.
1301 const char kStabilityOtherUserCrashCount[] =
1302 "user_experience_metrics.stability.other_user_crash_count";
1304 // On Chrome OS, total number of kernel crashes since the last report.
1305 const char kStabilityKernelCrashCount[] =
1306 "user_experience_metrics.stability.kernel_crash_count";
1308 // On Chrome OS, total number of unclean system shutdowns since the
1309 // last report.
1310 const char kStabilitySystemUncleanShutdownCount[] =
1311 "user_experience_metrics.stability.system_unclean_shutdowns";
1313 #if defined(OS_ANDROID)
1314 // Activity type that is currently in the foreground for the UMA session.
1315 // Uses the ActivityTypeIds::Type enum.
1316 const char kStabilityForegroundActivityType[] =
1317 "user_experience_metrics.stability.current_foreground_activity_type";
1319 // Tracks which Activities were launched during the last session.
1320 // See |metrics_service_android.cc| for its usage.
1321 const char kStabilityLaunchedActivityFlags[] =
1322 "user_experience_metrics.stability.launched_activity_flags";
1324 // List pref: Counts how many times each Activity was launched.
1325 // Indexed into by ActivityTypeIds::Type.
1326 const char kStabilityLaunchedActivityCounts[] =
1327 "user_experience_metrics.stability.launched_activity_counts";
1329 // List pref: Counts how many times each Activity type was in the foreground
1330 // when a UMA session failed to be shut down properly.
1331 // Indexed into by ActivityTypeIds::Type.
1332 const char kStabilityCrashedActivityCounts[] =
1333 "user_experience_metrics.stability.crashed_activity_counts";
1334 #endif
1336 // The keys below are used for the dictionaries in the
1337 // kStabilityPluginStats list.
1338 const char kStabilityPluginName[] = "name";
1339 const char kStabilityPluginLaunches[] = "launches";
1340 const char kStabilityPluginInstances[] = "instances";
1341 const char kStabilityPluginCrashes[] = "crashes";
1342 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1344 // The keys below are strictly increasing counters over the lifetime of
1345 // a chrome installation. They are (optionally) sent up to the uninstall
1346 // survey in the event of uninstallation.
1347 const char kUninstallMetricsPageLoadCount[] =
1348 "uninstall_metrics.page_load_count";
1349 const char kUninstallLastLaunchTimeSec[] =
1350 "uninstall_metrics.last_launch_time_sec";
1351 const char kUninstallLastObservedRunTimeSec[] =
1352 "uninstall_metrics.last_observed_running_time_sec";
1354 // String containing the version of Chrome for which Chrome will not prompt the
1355 // user about setting Chrome as the default browser.
1356 const char kBrowserSuppressDefaultBrowserPrompt[] =
1357 "browser.suppress_default_browser_prompt_for_version";
1359 // A collection of position, size, and other data relating to the browser
1360 // window to restore on startup.
1361 const char kBrowserWindowPlacement[] = "browser.window_placement";
1363 // Browser window placement for popup windows.
1364 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1366 // A collection of position, size, and other data relating to the task
1367 // manager window to restore on startup.
1368 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1370 // The most recent stored column visibility of the task manager table to be
1371 // restored on startup.
1372 const char kTaskManagerColumnVisibility[] = "task_manager.column_visibility";
1374 // A collection of position, size, and other data relating to app windows to
1375 // restore on startup.
1376 const char kAppWindowPlacement[] = "browser.app_window_placement";
1378 // String which specifies where to download files to by default.
1379 const char kDownloadDefaultDirectory[] = "download.default_directory";
1381 // Boolean that records if the download directory was changed by an
1382 // upgrade a unsafe location to a safe location.
1383 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1385 #if defined(OS_WIN) || defined(OS_LINUX) || \
1386 (defined(OS_MACOSX) && !defined(OS_IOS))
1387 const char kOpenPdfDownloadInSystemReader[] =
1388 "download.open_pdf_in_system_reader";
1389 #endif
1391 // String which specifies where to save html files to by default.
1392 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1394 // The type used to save the page. See the enum SavePackage::SavePackageType in
1395 // the chrome/browser/download/save_package.h for the possible values.
1396 const char kSaveFileType[] = "savefile.type";
1398 // String which specifies the last directory that was chosen for uploading
1399 // or opening a file.
1400 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1402 // Boolean that specifies if file selection dialogs are shown.
1403 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1405 // Map of default tasks, associated by MIME type.
1406 const char kDefaultTasksByMimeType[] =
1407 "filebrowser.tasks.default_by_mime_type";
1409 // Map of default tasks, associated by file suffix.
1410 const char kDefaultTasksBySuffix[] =
1411 "filebrowser.tasks.default_by_suffix";
1413 // Extensions which should be opened upon completion.
1414 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1416 // Integer which specifies the frequency in milliseconds for detecting whether
1417 // plugin windows are hung.
1418 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1420 // Integer which specifies the timeout value to be used for SendMessageTimeout
1421 // to detect a hung plugin window.
1422 const char kPluginMessageResponseTimeout[] =
1423 "browser.plugin_message_response_timeout";
1425 // String which represents the dictionary name for our spell-checker.
1426 // This is an old preference that is being migrated to kSpellCheckDictionaries.
1427 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1429 // List of strings representing the dictionary names for our spell-checker.
1430 const char kSpellCheckDictionaries[] = "spellcheck.dictionaries";
1432 // String which represents whether we use the spelling service.
1433 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1435 // Dictionary of schemes used by the external protocol handler.
1436 // The value is true if the scheme must be ignored.
1437 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1439 // Integer that specifies the index of the tab the user was on when they
1440 // last visited the options window.
1441 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1443 // Integer that specifies if the first run bubble should be shown.
1444 // This preference is only registered by the first-run procedure.
1445 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1447 // String containing the last known intranet redirect URL, if any. See
1448 // intranet_redirect_detector.h for more information.
1449 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1451 // An enum value of how the browser was shut down (see browser_shutdown.h).
1452 const char kShutdownType[] = "shutdown.type";
1453 // Number of processes that were open when the user shut down.
1454 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1455 // Number of processes that were shut down using the slow path.
1456 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1458 // Whether to restart the current Chrome session automatically as the last thing
1459 // before shutting everything down.
1460 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1462 // Set before autorestarting Chrome, cleared on clean exit.
1463 const char kWasRestarted[] = "was.restarted";
1465 #if defined(OS_WIN)
1466 // Preference to be used while relaunching Chrome. This preference dictates if
1467 // Chrome should be launched in Metro or Desktop mode.
1468 // For more info take a look at ChromeRelaunchMode enum.
1469 const char kRelaunchMode[] = "relaunch.mode";
1470 #endif
1472 // Whether Extensions are enabled.
1473 const char kDisableExtensions[] = "extensions.disabled";
1475 // Whether the plugin finder that lets you install missing plugins is enabled.
1476 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1478 // Customized app page names that appear on the New Tab Page.
1479 const char kNtpAppPageNames[] = "ntp.app_page_names";
1481 #if defined(OS_ANDROID)
1482 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1483 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
1484 #endif
1486 // Keeps track of which sessions are collapsed in the Other Devices menu.
1487 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1489 #if defined(OS_ANDROID)
1490 // Keeps track of recently closed tabs collapsed state in the Other Devices
1491 // menu.
1492 const char kNtpCollapsedRecentlyClosedTabs[] =
1493 "ntp.collapsed_recently_closed_tabs";
1495 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1496 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1498 // Keeps track of sync promo collapsed state in the Other Devices menu.
1499 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1500 #endif
1502 // Which page should be visible on the new tab page v4
1503 const char kNtpShownPage[] = "ntp.shown_page";
1505 #if defined(OS_ANDROID)
1506 // Ordered list of website suggestions shown on the new tab page that will allow
1507 // retaining the order even if the suggestions change over time.
1508 const char kNTPSuggestionsURL[] = "ntp.suggestions_url";
1510 // Whether the suggestion was derived from personal data.
1511 const char kNTPSuggestionsIsPersonal[] = "ntp.suggestions_is_personal";
1512 #endif
1514 // A private RSA key for ADB handshake.
1515 const char kDevToolsAdbKey[] = "devtools.adb_key";
1517 const char kDevToolsDisabled[] = "devtools.disabled";
1519 // Determines whether devtools should be discovering usb devices for
1520 // remote debugging at chrome://inspect.
1521 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1522 "devtools.discover_usb_devices";
1524 // Maps of files edited locally using DevTools.
1525 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1527 // List of file system paths added in DevTools.
1528 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1530 // A boolean specifying whether port forwarding should be enabled.
1531 const char kDevToolsPortForwardingEnabled[] =
1532 "devtools.port_forwarding_enabled";
1534 // A boolean specifying whether default port forwarding configuration has been
1535 // set.
1536 const char kDevToolsPortForwardingDefaultSet[] =
1537 "devtools.port_forwarding_default_set";
1539 // A dictionary of port->location pairs for port forwarding.
1540 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1542 // A dictionary with generic DevTools settings.
1543 const char kDevToolsPreferences[] = "devtools.preferences";
1545 #if defined(OS_ANDROID)
1546 // A boolean specifying whether remote dev tools debugging is enabled.
1547 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1548 #endif
1550 // Boolean indicating that TiclInvalidationService should use GCM channel.
1551 // False or lack of settings means XMPPPushClient channel.
1552 const char kInvalidationServiceUseGCMChannel[] =
1553 "invalidation_service.use_gcm_channel";
1555 // Local hash of authentication password, used for off-line authentication
1556 // when on-line authentication is not available.
1557 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1559 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1560 // Tracks the number of times that we have shown the sign in promo at startup.
1561 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1563 // Boolean tracking whether the user chose to skip the sign in promo.
1564 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1566 // Boolean that specifies if the sign in promo is allowed to show on first run.
1567 // This preference is specified in the master preference file to suppress the
1568 // sign in promo for some installations.
1569 const char kSignInPromoShowOnFirstRunAllowed[] =
1570 "sync_promo.show_on_first_run_allowed";
1572 // Boolean that specifies if we should show a bubble in the new tab page.
1573 // The bubble is used to confirm that the user is signed into sync.
1574 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1575 #endif
1577 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1578 // Boolean tracking whether the user chose to opt out of the x-device promo.
1579 const char kCrossDevicePromoOptedOut[] = "x_device_promo.opted_out";
1581 // Boolean tracking whether the x-device promo should be shown.
1582 const char kCrossDevicePromoShouldBeShown[] = "x_device_promo.should_be_shown";
1584 // Int64, representing the time when we first observed a single GAIA account in
1585 // the cookie. If the most recent observation does not contain exactly one
1586 // account, this pref does not exist.
1587 const char kCrossDevicePromoObservedSingleAccountCookie[] =
1588 "x_device_promo.single_account_observed";
1590 // Int64, representing the time to next call the ListDevices endpoint.
1591 const char kCrossDevicePromoNextFetchListDevicesTime[] =
1592 "x_device_promo.next_list_devices_fetch";
1594 // Int containing the number of other devices where the profile's account syncs.
1595 const char kCrossDevicePromoNumDevices[] = "x_device_promo.num_devices";
1597 // Int64, representing the time when we last saw activity on another device.
1598 const char kCrossDevicePromoLastDeviceActiveTime[] =
1599 "x_device_promo.last_device_active_time";
1600 #endif
1602 // Create web application shortcut dialog preferences.
1603 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1604 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1605 const char kWebAppCreateInQuickLaunchBar[] =
1606 "browser.web_app.create_in_quick_launch_bar";
1608 // Dictionary that maps Geolocation network provider server URLs to
1609 // corresponding access token.
1610 const char kGeolocationAccessToken[] = "geolocation.access_token";
1612 #if defined(OS_ANDROID)
1613 // Boolean that controls the enabled-state of Geolocation in content.
1614 const char kGeolocationEnabled[] = "geolocation.enabled";
1615 #endif
1617 #if defined(ENABLE_GOOGLE_NOW)
1618 // Boolean that is true when Google services can use the user's location.
1619 const char kGoogleGeolocationAccessEnabled[] =
1620 "googlegeolocationaccess.enabled";
1621 #endif
1623 // Boolean that specifies whether to enable the Google Now Launcher extension.
1624 // Note: This is not the notifications component gated by ENABLE_GOOGLE_NOW.
1625 const char kGoogleNowLauncherEnabled[] = "google_now_launcher.enabled";
1627 // The default audio capture device used by the Media content setting.
1628 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1630 // The default video capture device used by the Media content setting.
1631 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1633 // The salt used for creating random MediaSource IDs.
1634 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1636 // The last used printer and its settings.
1637 const char kPrintPreviewStickySettings[] =
1638 "printing.print_preview_sticky_settings";
1640 // The list of BackgroundContents that should be loaded when the browser
1641 // launches.
1642 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1644 #if defined(OS_WIN)
1645 // The "major.minor" OS version for which the welcome page was last shown.
1646 const char kLastWelcomedOSVersion[] = "browser.last_welcomed_os_version";
1648 // An int that stores how often we've shown the "Chrome is configured to
1649 // auto-launch" infobar.
1650 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1652 // Boolean that specifies whether or not showing the welcome page following an
1653 // OS upgrade is enabled. True by default. May be set by master_preferences or
1654 // overridden by the WelcomePageOnOSUpgradeEnabled policy setting.
1655 const char kWelcomePageOnOSUpgradeEnabled[] =
1656 "browser.welcome_page_on_os_upgrade_enabled";
1657 #endif
1659 // String that lists supported HTTP authentication schemes.
1660 const char kAuthSchemes[] = "auth.schemes";
1662 // Boolean that specifies whether to disable CNAME lookups when generating
1663 // Kerberos SPN.
1664 const char kDisableAuthNegotiateCnameLookup[] =
1665 "auth.disable_negotiate_cname_lookup";
1667 // Boolean that specifies whether to include the port in a generated Kerberos
1668 // SPN.
1669 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1671 // Whitelist containing servers for which Integrated Authentication is enabled.
1672 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1674 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1675 // with.
1676 const char kAuthNegotiateDelegateWhitelist[] =
1677 "auth.negotiate_delegate_whitelist";
1679 // String that specifies the name of a custom GSSAPI library to load.
1680 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1682 // String that specifies the Android account type to use for Negotiate
1683 // authentication.
1684 const char kAuthAndroidNegotiateAccountType[] =
1685 "auth.android_negotiate_account_type";
1687 // Boolean that specifies whether to allow basic auth prompting on cross-
1688 // domain sub-content requests.
1689 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1691 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1692 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1694 // A pref holding the value of the policy used to explicitly allow or deny
1695 // access to audio capture devices. When enabled or not set, the user is
1696 // prompted for device access. When disabled, access to audio capture devices
1697 // is not allowed and no prompt will be shown.
1698 // See also kAudioCaptureAllowedUrls.
1699 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1700 // Holds URL patterns that specify URLs that will be granted access to audio
1701 // capture devices without prompt.
1702 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1704 // A pref holding the value of the policy used to explicitly allow or deny
1705 // access to video capture devices. When enabled or not set, the user is
1706 // prompted for device access. When disabled, access to video capture devices
1707 // is not allowed and no prompt will be shown.
1708 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1709 // Holds URL patterns that specify URLs that will be granted access to video
1710 // capture devices without prompt.
1711 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1713 // A boolean pref that controls the enabled-state of hotword search voice
1714 // trigger.
1715 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1717 // A boolean pref that controls the enabled-state of hotword search voice
1718 // trigger from any screen.
1719 const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
1721 // A boolean pref that indicates whether the hotword always-on notification
1722 // has been seen already.
1723 const char kHotwordAlwaysOnNotificationSeen[] =
1724 "hotword.always_on_notification_seen";
1726 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1727 // seconds of audio data before and the spoken query are sent back to be stored
1728 // in a user's Voice & Audio Activity. Updated whenever the user opens
1729 // chrome://settings and also polled for every 24 hours.
1730 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1732 // A string holding the locale information under which Hotword was installed.
1733 // It is used for comparison since the hotword voice search trigger must be
1734 // reinstalled to handle a new language.
1735 const char kHotwordPreviousLanguage[] = "hotword.previous_language";
1737 #if defined(OS_ANDROID)
1738 // Boolean that controls the global enabled-state of protected media identifier.
1739 const char kProtectedMediaIdentifierEnabled[] =
1740 "protected_media_identifier.enabled";
1741 #endif
1743 #if defined(OS_CHROMEOS)
1744 // Dictionary for transient storage of settings that should go into device
1745 // settings storage before owner has been assigned.
1746 const char kDeviceSettingsCache[] = "signed_settings_cache";
1748 // The hardware keyboard layout of the device. This should look like
1749 // "xkb:us::eng".
1750 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1752 // An integer pref which shows number of times carrier deal promo
1753 // notification has been shown to user.
1754 const char kCarrierDealPromoShown[] =
1755 "settings.internet.mobile.carrier_deal_promo_shown";
1757 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1758 // it's not the default value; otherwise, no auto-enrollment decision has been
1759 // made yet.
1760 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1762 // An integer pref with the maximum number of bits used by the client in a
1763 // previous auto-enrollment request. If the client goes through an auto update
1764 // during OOBE and reboots into a version of the OS with a larger maximum
1765 // modulus, then it will retry auto-enrollment using the updated value.
1766 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
1768 // The local state pref that stores device activity times before reporting
1769 // them to the policy server.
1770 const char kDeviceActivityTimes[] = "device_status.activity_times";
1772 // A pref holding the last known location when device location reporting is
1773 // enabled.
1774 const char kDeviceLocation[] = "device_status.location";
1776 // A pref holding the value of the policy used to disable mounting of external
1777 // storage for the user.
1778 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
1780 // Copy of owner swap mouse buttons option to use on login screen.
1781 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
1783 // Copy of owner tap-to-click option to use on login screen.
1784 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
1786 // The length of device uptime after which an automatic reboot is scheduled,
1787 // expressed in seconds.
1788 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
1790 // Whether an automatic reboot should be scheduled when an update has been
1791 // applied and a reboot is required to complete the update process.
1792 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1794 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1795 // for connection to Google APIs when the user isn't logged in. Currently used
1796 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1797 // Public Accounts and kiosks.
1798 const char kDeviceRobotAnyApiRefreshToken[] =
1799 "device_robot_refresh_token.any-api";
1801 // Device requisition for enterprise enrollment.
1802 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1804 // Whether to automatically start the enterprise enrollment step during OOBE.
1805 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1807 // Whether the user may exit enrollment.
1808 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1810 // How many times HID detection OOBE dialog was shown.
1811 const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1813 // Dictionary of per-user Least Recently Used input method (used at login
1814 // screen).
1815 const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1817 // A dictionary pref of the echo offer check flag. It sets offer info when
1818 // an offer is checked.
1819 const char kEchoCheckedOffers[] = "EchoCheckedOffers";
1821 // Key name of a dictionary in local state to store cached multiprofle user
1822 // behavior policy value.
1823 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
1825 // A string pref with initial locale set in VPD or manifest.
1826 const char kInitialLocale[] = "intl.initial_locale";
1828 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1829 const char kOobeComplete[] = "OobeComplete";
1831 // The name of the screen that has to be shown if OOBE has been interrupted.
1832 const char kOobeScreenPending[] = "OobeScreenPending";
1834 // A boolean pref of the device registered flag (second part after first login).
1835 const char kDeviceRegistered[] = "DeviceRegistered";
1837 // Boolean pref to signal corrupted enrollment to force the device through
1838 // enrollment recovery flow upon next boot.
1839 const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1841 // List of usernames that used certificates pushed by policy before.
1842 // This is used to prevent these users from joining multiprofile sessions.
1843 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
1845 // A dictionary containing server-provided device state pulled form the cloud
1846 // after recovery.
1847 const char kServerBackedDeviceState[] = "server_backed_device_state";
1849 // Customized wallpaper URL, which is already downloaded and scaled.
1850 // The URL from this preference must never be fetched. It is compared to the
1851 // URL from customization document to check if wallpaper URL has changed
1852 // since wallpaper was cached.
1853 const char kCustomizationDefaultWallpaperURL[] =
1854 "customization.default_wallpaper_url";
1856 // System uptime, when last logout started.
1857 // This is saved to file and cleared after chrome process starts.
1858 const char kLogoutStartedLast[] = "chromeos.logout-started";
1860 // An integer pref of the current consumer management stage. The meaning of the
1861 // value is defined in:
1862 // chrome/browser/chromeos/policy/consumer_management_stage.h
1863 const char kConsumerManagementStage[] = "consumer_management.stage";
1864 #endif // defined(OS_CHROMEOS)
1866 // Whether there is a Flash version installed that supports clearing LSO data.
1867 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1869 // Whether we should show Pepper Flash-specific settings.
1870 const char kPepperFlashSettingsEnabled[] =
1871 "browser.pepper_flash_settings_enabled";
1873 // String which specifies where to store the disk cache.
1874 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1875 // Pref name for the policy specifying the maximal cache size.
1876 const char kDiskCacheSize[] = "browser.disk_cache_size";
1877 // Pref name for the policy specifying the maximal media cache size.
1878 const char kMediaCacheSize[] = "browser.media_cache_size";
1880 // Specifies the release channel that the device should be locked to.
1881 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1882 // empty string, in which case the value will be ignored.
1883 // TODO(dubroy): This preference may not be necessary once
1884 // http://crosbug.com/17015 is implemented and the update engine can just
1885 // fetch the correct value from the policy.
1886 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1888 const char kPerformanceTracingEnabled[] =
1889 "feedback.performance_tracing_enabled";
1891 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1892 // Defaults to false.
1893 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
1895 // Indicates that factory reset was requested from options page or reset screen.
1896 const char kFactoryResetRequested[] = "FactoryResetRequested";
1898 // Indicates that debugging features were requested from oobe screen.
1899 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested";
1901 // Boolean recording whether we have showed a balloon that calls out the message
1902 // center for desktop notifications.
1903 const char kMessageCenterShowedFirstRunBalloon[] =
1904 "message_center.showed_first_run_balloon";
1906 // Boolean recording whether the user has disabled the notifications
1907 // menubar or systray icon.
1908 const char kMessageCenterShowIcon[] = "message_center.show_icon";
1910 const char kMessageCenterForcedOnTaskbar[] =
1911 "message_center.was_forced_on_taskbar";
1913 #if defined(OS_CHROMEOS)
1914 // This setting starts periodic timezone refresh when not in user session.
1915 // (user session is controlled by user profile preference
1916 // kResolveTimezoneByGeolocation
1917 const char kResolveDeviceTimezoneByGeolocation[] =
1918 "settings.resolve_device_timezone_by_geolocation";
1919 #endif // defined(OS_CHROMEOS)
1921 // *************** SERVICE PREFS ***************
1922 // These are attached to the service process.
1924 const char kCloudPrintRoot[] = "cloud_print";
1925 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
1926 // The unique id for this instance of the cloud print proxy.
1927 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
1928 // The GAIA auth token for Cloud Print
1929 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
1930 // The email address of the account used to authenticate with the Cloud Print
1931 // server.
1932 const char kCloudPrintEmail[] = "cloud_print.email";
1933 // Settings specific to underlying print system.
1934 const char kCloudPrintPrintSystemSettings[] =
1935 "cloud_print.print_system_settings";
1936 // A boolean indicating whether we should poll for print jobs when don't have
1937 // an XMPP connection (false by default).
1938 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
1939 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
1940 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
1941 // A boolean indicating whether we should connect to cloud print new printers.
1942 const char kCloudPrintConnectNewPrinters[] =
1943 "cloud_print.user_settings.connectNewPrinters";
1944 // A boolean indicating whether we should ping XMPP connection.
1945 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
1946 // An int value indicating the average timeout between xmpp pings.
1947 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
1948 // Dictionary with settings stored by connector setup page.
1949 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
1950 // List of printers settings.
1951 const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
1952 // A boolean indicating whether submitting jobs to Google Cloud Print is
1953 // blocked by policy.
1954 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
1956 // Preference to store proxy settings.
1957 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
1959 #if defined(OS_MACOSX)
1960 // Set to true if the user removed our login item so we should not create a new
1961 // one when uninstalling background apps.
1962 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
1964 // Set to true if Chrome already created a login item, so there's no need to
1965 // create another one.
1966 const char kChromeCreatedLoginItem[] =
1967 "background_mode.chrome_created_login_item";
1969 // Set to true once we've initialized kChromeCreatedLoginItem for the first
1970 // time.
1971 const char kMigratedLoginItemPref[] =
1972 "background_mode.migrated_login_item_pref";
1974 // A boolean that tracks whether to show a notification when trying to quit
1975 // while there are apps running.
1976 const char kNotifyWhenAppsKeepChromeAlive[] =
1977 "apps.notify-when-apps-keep-chrome-alive";
1978 #endif
1980 // Set to true if background mode is enabled on this browser.
1981 const char kBackgroundModeEnabled[] = "background_mode.enabled";
1983 // Set to true if hardware acceleration mode is enabled on this browser.
1984 const char kHardwareAccelerationModeEnabled[] =
1985 "hardware_acceleration_mode.enabled";
1987 // Hardware acceleration mode from previous browser launch.
1988 const char kHardwareAccelerationModePrevious[] =
1989 "hardware_acceleration_mode_previous";
1991 // List of protocol handlers.
1992 const char kRegisteredProtocolHandlers[] =
1993 "custom_handlers.registered_protocol_handlers";
1995 // List of protocol handlers the user has requested not to be asked about again.
1996 const char kIgnoredProtocolHandlers[] =
1997 "custom_handlers.ignored_protocol_handlers";
1999 // List of protocol handlers registered by policy.
2000 const char kPolicyRegisteredProtocolHandlers[] =
2001 "custom_handlers.policy.registered_protocol_handlers";
2003 // List of protocol handlers the policy has requested to be ignored.
2004 const char kPolicyIgnoredProtocolHandlers[] =
2005 "custom_handlers.policy.ignored_protocol_handlers";
2007 // Whether user-specified handlers for protocols and content types can be
2008 // specified.
2009 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2011 // Integer that specifies the policy refresh rate for device-policy in
2012 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2013 // by the cloud policy subsystem.
2014 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2016 // A boolean where true means that the browser has previously attempted to
2017 // enable autoupdate and failed, so the next out-of-date browser start should
2018 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2019 // instead.
2020 const char kAttemptedToEnableAutoupdate[] =
2021 "browser.attempted_to_enable_autoupdate";
2023 // The next media gallery ID to assign.
2024 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2026 // A list of dictionaries, where each dictionary represents a known media
2027 // gallery.
2028 const char kMediaGalleriesRememberedGalleries[] =
2029 "media_galleries.remembered_galleries";
2031 // The last time a media scan completed.
2032 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2034 #if defined(USE_ASH)
2035 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2036 // local variant is not synced and is used if set. If the local variant is not
2037 // set its value is set from the synced value (once prefs have been
2038 // synced). This gives a per-machine setting that is initialized from the last
2039 // set value.
2040 // These values are default on the machine but can be overridden by per-display
2041 // values in kShelfPreferences (unless overridden by managed policy).
2042 // String value corresponding to ash::Shell::ShelfAlignment.
2043 const char kShelfAlignment[] = "shelf_alignment";
2044 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2045 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2046 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2047 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2048 // This value stores chrome icon's index in the launcher. This should be handled
2049 // separately with app shortcut's index because of ShelfModel's backward
2050 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2051 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2052 // creating two chrome icons.
2053 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2054 // Dictionary value that holds per-display preference of shelf alignment and
2055 // auto-hide behavior. Key of the dictionary is the id of the display, and
2056 // its value is a dictionary whose keys are kShelfAlignment and
2057 // kShelfAutoHideBehavior.
2058 const char kShelfPreferences[] = "shelf_preferences";
2060 // Integer value in milliseconds indicating the length of time for which a
2061 // confirmation dialog should be shown when the user presses the logout button.
2062 // A value of 0 indicates that logout should happen immediately, without showing
2063 // a confirmation dialog.
2064 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2065 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2066 // Boolean value indicating whether to show a logout button in the ash tray.
2067 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2068 #endif
2070 #if defined(USE_AURA)
2071 // Tuning settings for gestures.
2072 const char kMaxSeparationForGestureTouchesInPixels[] =
2073 "gesture.max_separation_for_gesture_touches_in_pixels";
2074 const char kSemiLongPressTimeInMs[] = "gesture.semi_long_press_time_in_ms";
2075 const char kTabScrubActivationDelayInMs[] =
2076 "gesture.tab_scrub_activation_delay_in_ms";
2077 const char kFlingMaxCancelToDownTimeInMs[] =
2078 "gesture.fling_max_cancel_to_down_time_in_ms";
2079 const char kFlingMaxTapGapTimeInMs[] = "gesture.fling_max_tap_gap_time_in_ms";
2080 const char kOverscrollHorizontalThresholdComplete[] =
2081 "overscroll.horizontal_threshold_complete";
2082 const char kOverscrollVerticalThresholdComplete[] =
2083 "overscroll.vertical_threshold_complete";
2084 const char kOverscrollMinimumThresholdStart[] =
2085 "overscroll.minimum_threshold_start";
2086 const char kOverscrollMinimumThresholdStartTouchpad[] =
2087 "overscroll.minimum_threshold_start_touchpad";
2088 const char kOverscrollVerticalThresholdStart[] =
2089 "overscroll.vertical_threshold_start";
2090 const char kOverscrollHorizontalResistThreshold[] =
2091 "overscroll.horizontal_resist_threshold";
2092 const char kOverscrollVerticalResistThreshold[] =
2093 "overscroll.vertical_resist_threshold";
2094 #endif
2096 #if defined(OS_WIN)
2097 // Counts how many more times the 'profile on a network share' warning should be
2098 // shown to the user before the next silence period.
2099 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2100 // Tracks the time of the last shown warning. Used to reset
2101 // |network_profile.warnings_left| after a silence period.
2102 const char kNetworkProfileLastWarningTime[] =
2103 "network_profile.last_warning_time";
2104 #endif
2106 #if defined(OS_CHROMEOS)
2107 // The RLZ brand code, if enabled.
2108 const char kRLZBrand[] = "rlz.brand";
2109 // Whether RLZ pings are disabled.
2110 const char kRLZDisabled[] = "rlz.disabled";
2111 #endif
2113 #if defined(ENABLE_APP_LIST)
2114 // The directory in user data dir that contains the profile to be used with the
2115 // app launcher.
2116 const char kAppListProfile[] = "app_list.profile";
2118 // The number of times the app launcher was launched since last ping and
2119 // the time of the last ping.
2120 const char kAppListLaunchCount[] = "app_list.launch_count";
2121 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2123 // The number of times the an app was launched from the app launcher since last
2124 // ping and the time of the last ping.
2125 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2126 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2128 // A boolean that tracks whether the user has ever enabled the app launcher.
2129 const char kAppLauncherHasBeenEnabled[] =
2130 "apps.app_launcher.has_been_enabled";
2132 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2133 // install, command line, etc. For UMA.
2134 const char kAppListEnableMethod[] = "app_list.how_enabled";
2136 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2137 const char kAppListEnableTime[] = "app_list.when_enabled";
2139 // The last time the app list was launched.
2140 const char kAppListLastLaunchTime[] = "app_list.last_launch";
2142 #if defined(OS_MACOSX)
2143 // Integer representing the version of the app launcher shortcut installed on
2144 // the system. Incremented, e.g., when embedded icons change.
2145 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2146 #endif
2148 // A boolean identifying if we should show the app launcher promo or not.
2149 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2151 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2152 // a Drive app id and the value is the corresponding Chrome app id. The pref
2153 // is unsynable and used to track local mappings only.
2154 const char kAppLauncherDriveAppMapping[] =
2155 "apps.app_launcher.drive_app_mapping";
2157 // A list of Drive app ids that tracks the uninstallable Drive apps.
2158 const char kAppLauncherUninstalledDriveApps[] =
2159 "apps.app_launcher.uninstalled_drive_apps";
2160 #endif // defined(ENABLE_APP_LIST)
2162 #if defined(OS_WIN)
2163 // If set, the user requested to launch the app with this extension id while
2164 // in Metro mode, and then relaunched to Desktop mode to start it.
2165 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2167 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2168 // launch of the specified app when restarting Chrome in desktop mode.
2169 const char kAppLaunchForMetroRestartProfile[] =
2170 "apps.app_launch_for_metro_restart_profile";
2171 #endif
2173 // An integer that is incremented whenever changes are made to app shortcuts.
2174 // Increasing this causes all app shortcuts to be recreated.
2175 const char kAppShortcutsVersion[] = "apps.shortcuts_version";
2177 // How often the bubble has been shown.
2178 const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2180 // A string pref for storing the salt used to compute the pepper device ID.
2181 const char kDRMSalt[] = "settings.privacy.drm_salt";
2182 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2183 // enables the use of remote attestation for content protection.
2184 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2186 // An integer per-profile pref that signals if the watchdog extension is
2187 // installed and active. We need to know if the watchdog extension active for
2188 // ActivityLog initialization before the extension system is initialized.
2189 const char kWatchdogExtensionActive[] =
2190 "profile.extensions.activity_log.num_consumers_active";
2192 #if defined(OS_ANDROID)
2193 // A list of partner bookmark rename/remove mappings.
2194 // Each list item is a dictionary containing a "url", a "provider_title" and
2195 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2196 // given by the PartnerBookmarksProvider and either the user-visible renamed
2197 // title or an empty string if the bookmark node was removed.
2198 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2199 #endif
2201 // Whether DNS Quick Check is disabled in proxy resolution.
2202 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2204 // Whether Guest Mode is enabled within the browser.
2205 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2207 // Whether Adding a new Person is enabled within the user manager.
2208 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2210 // Device identifier used by Easy Unlock stored in local state. This id will be
2211 // combined with a user id, before being registered with the CryptAuth server,
2212 // so it can't correlate users on the same device.
2213 const char kEasyUnlockDeviceId[] = "easy_unlock.device_id";
2215 // A dictionary that maps user id to hardlock state.
2216 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
2218 // A dictionary that maps user id to public part of RSA key pair used by
2219 // Easy Sign-in for the user.
2220 const char kEasyUnlockLocalStateTpmKeys[] = "easy_unlock.public_tpm_keys";
2222 // A dictionary in local state containing each user's Easy Unlock profile
2223 // preferences, so they can be accessed outside of the user's profile. The value
2224 // is a dictionary containing an entry for each user. Each user's entry mirrors
2225 // their profile's Easy Unlock preferences.
2226 const char kEasyUnlockLocalStateUserPrefs[] = "easy_unlock.user_prefs";
2228 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2229 const char kRecoveryComponentNeedsElevation[] =
2230 "recovery_component.needs_elevation";
2232 // A dictionary that maps from supervised user whitelist IDs to their properties
2233 // (name and a list of clients that registered the whitelist).
2234 const char kRegisteredSupervisedUserWhitelists[] =
2235 "supervised_users.whitelists";
2237 #if defined(ENABLE_EXTENSIONS)
2238 // Policy that indicates how to handle animated images.
2239 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2240 #endif
2242 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
2244 } // namespace prefs