Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blob41ff0eb005806871f91f09ee3e6229541bdc6596
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 the email address associated with the google account of the secondary
113 // custodian of the supervised user, set when the supervised user is created.
114 const char kSupervisedUserSecondCustodianEmail[] =
115 "profile.managed.second_custodian_email";
117 // Stores the display name associated with the google account of the secondary
118 // custodian of the supervised user, updated (if possible) each time the
119 // supervised user starts a session.
120 const char kSupervisedUserSecondCustodianName[] =
121 "profile.managed.second_custodian_name";
123 // Stores the URL of the profile image associated with the google account of the
124 // secondary custodian of the supervised user.
125 const char kSupervisedUserSecondCustodianProfileImageURL[] =
126 "profile.managed.second_custodian_profile_image_url";
128 // Stores the URL of the profile associated with the google account of the
129 // secondary custodian of the supervised user.
130 const char kSupervisedUserSecondCustodianProfileURL[] =
131 "profile.managed.second_custodian_profile_url";
133 // Stores settings that can be modified both by a supervised user and their
134 // manager. See SupervisedUserSharedSettingsService for a description of
135 // the format.
136 const char kSupervisedUserSharedSettings[] = "profile.managed.shared_settings";
138 // A dictionary storing whitelists for a supervised user. The key is the CRX ID
139 // of the whitelist, the value a dictionary containing whitelist properties
140 // (currently the name).
141 const char kSupervisedUserWhitelists[] = "profile.managed.whitelists";
143 // The application locale.
144 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
145 // and user's profile. Global property determines locale of login screen,
146 // while user's profile determines his personal locale preference.
147 const char kApplicationLocale[] = "intl.app_locale";
148 #if defined(OS_CHROMEOS)
149 // Locale preference of device' owner. ChromeOS device appears in this locale
150 // after startup/wakeup/signout.
151 const char kOwnerLocale[] = "intl.owner_locale";
152 // Locale accepted by user. Non-syncable.
153 // Used to determine whether we need to show Locale Change notification.
154 const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
155 // Non-syncable item.
156 // It is used in two distinct ways.
157 // (1) Used for two-step initialization of locale in ChromeOS
158 // because synchronization of kApplicationLocale is not instant.
159 // (2) Used to detect locale change. Locale change is detected by
160 // LocaleChangeGuard in case values of kApplicationLocaleBackup and
161 // kApplicationLocale are both non-empty and differ.
162 // Following is a table showing how state of those prefs may change upon
163 // common real-life use cases:
164 // AppLocale Backup Accepted
165 // Initial login - A -
166 // Sync B A -
167 // Accept (B) B B B
168 // -----------------------------------------------------------
169 // Initial login - A -
170 // No sync and second login A A -
171 // Change options B B -
172 // -----------------------------------------------------------
173 // Initial login - A -
174 // Sync A A -
175 // Locale changed on login screen A C -
176 // Accept (A) A A A
177 // -----------------------------------------------------------
178 // Initial login - A -
179 // Sync B A -
180 // Revert A A -
181 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
182 #endif
184 // The default character encoding to assume for a web page in the
185 // absence of MIME charset specification
186 const char kDefaultCharset[] = "intl.charset_default";
188 // The value to use for Accept-Languages HTTP header when making an HTTP
189 // request.
190 const char kAcceptLanguages[] = "intl.accept_languages";
192 // The value to use for showing locale-dependent encoding list for different
193 // locale, it's initialized from the corresponding string resource that is
194 // stored in non-translatable part of the resource bundle.
195 const char kStaticEncodings[] = "intl.static_encodings";
197 // If these change, the corresponding enums in the extension API
198 // experimental.fontSettings.json must also change.
199 const char* const kWebKitScriptsForFontFamilyMaps[] = {
200 #define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
201 #include "chrome/common/pref_font_script_names-inl.h"
202 ALL_FONT_SCRIPTS("unused param")
203 #undef EXPAND_SCRIPT_FONT
206 const size_t kWebKitScriptsForFontFamilyMapsLength =
207 arraysize(kWebKitScriptsForFontFamilyMaps);
209 // Strings for WebKit font family preferences. If these change, the pref prefix
210 // in pref_names_util.cc and the pref format in font_settings_api.cc must also
211 // change.
212 const char kWebKitStandardFontFamilyMap[] =
213 WEBKIT_WEBPREFS_FONTS_STANDARD;
214 const char kWebKitFixedFontFamilyMap[] =
215 WEBKIT_WEBPREFS_FONTS_FIXED;
216 const char kWebKitSerifFontFamilyMap[] =
217 WEBKIT_WEBPREFS_FONTS_SERIF;
218 const char kWebKitSansSerifFontFamilyMap[] =
219 WEBKIT_WEBPREFS_FONTS_SANSERIF;
220 const char kWebKitCursiveFontFamilyMap[] =
221 WEBKIT_WEBPREFS_FONTS_CURSIVE;
222 const char kWebKitFantasyFontFamilyMap[] =
223 WEBKIT_WEBPREFS_FONTS_FANTASY;
224 const char kWebKitPictographFontFamilyMap[] =
225 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
226 const char kWebKitStandardFontFamilyArabic[] =
227 "webkit.webprefs.fonts.standard.Arab";
228 #if defined(OS_WIN)
229 const char kWebKitFixedFontFamilyArabic[] =
230 "webkit.webprefs.fonts.fixed.Arab";
231 #endif
232 const char kWebKitSerifFontFamilyArabic[] =
233 "webkit.webprefs.fonts.serif.Arab";
234 const char kWebKitSansSerifFontFamilyArabic[] =
235 "webkit.webprefs.fonts.sansserif.Arab";
236 #if defined(OS_WIN)
237 const char kWebKitStandardFontFamilyCyrillic[] =
238 "webkit.webprefs.fonts.standard.Cyrl";
239 const char kWebKitFixedFontFamilyCyrillic[] =
240 "webkit.webprefs.fonts.fixed.Cyrl";
241 const char kWebKitSerifFontFamilyCyrillic[] =
242 "webkit.webprefs.fonts.serif.Cyrl";
243 const char kWebKitSansSerifFontFamilyCyrillic[] =
244 "webkit.webprefs.fonts.sansserif.Cyrl";
245 const char kWebKitStandardFontFamilyGreek[] =
246 "webkit.webprefs.fonts.standard.Grek";
247 const char kWebKitFixedFontFamilyGreek[] =
248 "webkit.webprefs.fonts.fixed.Grek";
249 const char kWebKitSerifFontFamilyGreek[] =
250 "webkit.webprefs.fonts.serif.Grek";
251 const char kWebKitSansSerifFontFamilyGreek[] =
252 "webkit.webprefs.fonts.sansserif.Grek";
253 #endif
254 const char kWebKitStandardFontFamilyJapanese[] =
255 "webkit.webprefs.fonts.standard.Jpan";
256 const char kWebKitFixedFontFamilyJapanese[] =
257 "webkit.webprefs.fonts.fixed.Jpan";
258 const char kWebKitSerifFontFamilyJapanese[] =
259 "webkit.webprefs.fonts.serif.Jpan";
260 const char kWebKitSansSerifFontFamilyJapanese[] =
261 "webkit.webprefs.fonts.sansserif.Jpan";
262 const char kWebKitStandardFontFamilyKorean[] =
263 "webkit.webprefs.fonts.standard.Hang";
264 const char kWebKitFixedFontFamilyKorean[] =
265 "webkit.webprefs.fonts.fixed.Hang";
266 const char kWebKitSerifFontFamilyKorean[] =
267 "webkit.webprefs.fonts.serif.Hang";
268 const char kWebKitSansSerifFontFamilyKorean[] =
269 "webkit.webprefs.fonts.sansserif.Hang";
270 #if defined(OS_WIN)
271 const char kWebKitCursiveFontFamilyKorean[] =
272 "webkit.webprefs.fonts.cursive.Hang";
273 #endif
274 const char kWebKitStandardFontFamilySimplifiedHan[] =
275 "webkit.webprefs.fonts.standard.Hans";
276 const char kWebKitFixedFontFamilySimplifiedHan[] =
277 "webkit.webprefs.fonts.fixed.Hans";
278 const char kWebKitSerifFontFamilySimplifiedHan[] =
279 "webkit.webprefs.fonts.serif.Hans";
280 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
281 "webkit.webprefs.fonts.sansserif.Hans";
282 const char kWebKitStandardFontFamilyTraditionalHan[] =
283 "webkit.webprefs.fonts.standard.Hant";
284 const char kWebKitFixedFontFamilyTraditionalHan[] =
285 "webkit.webprefs.fonts.fixed.Hant";
286 const char kWebKitSerifFontFamilyTraditionalHan[] =
287 "webkit.webprefs.fonts.serif.Hant";
288 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
289 "webkit.webprefs.fonts.sansserif.Hant";
291 // WebKit preferences.
292 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
293 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
294 const char kWebKitUsesUniversalDetector[] =
295 "webkit.webprefs.uses_universal_detector";
296 const char kWebKitTextAreasAreResizable[] =
297 "webkit.webprefs.text_areas_are_resizable";
298 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
299 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
300 const char kWebKitAllowDisplayingInsecureContent[] =
301 "webkit.webprefs.allow_displaying_insecure_content";
302 const char kWebKitAllowRunningInsecureContent[] =
303 "webkit.webprefs.allow_running_insecure_content";
304 #if defined(OS_ANDROID)
305 const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
306 const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
307 const char kWebKitPasswordEchoEnabled[] =
308 "webkit.webprefs.password_echo_enabled";
309 #endif
311 const char kWebKitCommonScript[] = "Zyyy";
312 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
313 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
314 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
315 const char kWebKitSansSerifFontFamily[] =
316 "webkit.webprefs.fonts.sansserif.Zyyy";
317 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
318 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
319 const char kWebKitPictographFontFamily[] =
320 "webkit.webprefs.fonts.pictograph.Zyyy";
321 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
322 const char kWebKitDefaultFixedFontSize[] =
323 "webkit.webprefs.default_fixed_font_size";
324 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
325 const char kWebKitMinimumLogicalFontSize[] =
326 "webkit.webprefs.minimum_logical_font_size";
327 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
328 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
329 "webkit.webprefs.javascript_can_open_windows_automatically";
330 const char kWebKitLoadsImagesAutomatically[] =
331 "webkit.webprefs.loads_images_automatically";
332 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
334 // Boolean that is true when SafeBrowsing is enabled.
335 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
337 // Boolean that tell us whether Safe Browsing extended reporting is enabled.
338 const char kSafeBrowsingExtendedReportingEnabled[] =
339 "safebrowsing.extended_reporting_enabled";
341 // Boolean that is true when the SafeBrowsing interstitial should not allow
342 // users to proceed anyway.
343 const char kSafeBrowsingProceedAnywayDisabled[] =
344 "safebrowsing.proceed_anyway_disabled";
346 // A dictionary mapping incident types to a dict of incident key:digest pairs.
347 const char kSafeBrowsingIncidentsSent[] = "safebrowsing.incidents_sent";
349 // Boolean that tells us whether users are given the option to opt in to Safe
350 // Browsing extended reporting.
351 const char kSafeBrowsingExtendedReportingOptInAllowed[] =
352 "safebrowsing.extended_reporting_opt_in_allowed";
354 // Boolean that is true when the SSL interstitial should allow users to
355 // proceed anyway. Otherwise, proceeding is not possible.
356 const char kSSLErrorOverrideAllowed[] = "ssl.error_override_allowed";
358 // Enum that specifies whether Incognito mode is:
359 // 0 - Enabled. Default behaviour. Default mode is available on demand.
360 // 1 - Disabled. Used cannot browse pages in Incognito mode.
361 // 2 - Forced. All pages/sessions are forced into Incognito.
362 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
364 // Boolean that is true when Suggest support is enabled.
365 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
367 #if defined(OS_ANDROID)
368 // String indicating the Contextual Search enabled state.
369 // "false" - opt-out (disabled)
370 // "" (empty string) - undecided
371 // "true" - opt-in (enabled)
372 const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
373 #endif
375 #if defined(OS_MACOSX)
376 // Boolean that indicates whether the browser should put up a confirmation
377 // window when the user is attempting to quit. Mac only.
378 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
379 #endif
381 // Boolean which specifies whether we should ask the user if we should download
382 // a file (true) or just download it automatically.
383 const char kPromptForDownload[] = "download.prompt_for_download";
385 // A boolean pref set to true if we're using Link Doctor error pages.
386 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
388 // An adaptively identified list of domain names to be pre-fetched during the
389 // next startup, based on what was actually needed during this startup.
390 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
392 // A list of host names used to fetch web pages, and their commonly used
393 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
394 // preconnecting to, such sub-resource hostnames).
395 // This list is adaptively grown and pruned.
396 const char kDnsPrefetchingHostReferralList[] =
397 "dns_prefetching.host_referral_list";
399 // Disables the SPDY protocol.
400 const char kDisableSpdy[] = "spdy.disabled";
402 // Prefs for persisting HttpServerProperties.
403 const char kHttpServerProperties[] = "net.http_server_properties";
405 #if defined(OS_ANDROID) || defined(OS_IOS)
406 // Last time that a check for cloud policy management was done. This time is
407 // recorded on Android so that retries aren't attempted on every startup.
408 // Instead the cloud policy registration is retried at least 1 or 3 days later.
409 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
410 #endif
412 // Prefix URL for the experimental Instant ZeroSuggest provider.
413 const char kInstantUIZeroSuggestUrlPrefix[] =
414 "instant_ui.zero_suggest_url_prefix";
416 // A boolean pref set to true if prediction of network actions is allowed.
417 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
418 // of web pages, and resource prefetching.
419 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
420 // preferences are not lost.
421 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
422 // is functioning as per crbug.com/334602.
423 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
425 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
426 // if prediction of network actions is allowed, depending on network type.
427 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
428 // of web pages, and resource prefetching.
429 // TODO(bnc): Implement this preference as per crbug.com/334602.
430 const char kNetworkPredictionOptions[] = "net.network_prediction_options";
432 // An integer representing the state of the default apps installation process.
433 // This value is persisted in the profile's user preferences because the process
434 // is async, and the user may have stopped chrome in the middle. The next time
435 // the profile is opened, the process will continue from where it left off.
437 // See possible values in external_provider_impl.cc.
438 const char kDefaultAppsInstallState[] = "default_apps_install_state";
440 // A boolean pref set to true if the Chrome Web Store icons should be hidden
441 // from the New Tab Page and app launcher.
442 const char kHideWebStoreIcon[] = "hide_web_store_icon";
444 #if defined(OS_CHROMEOS)
445 // A boolean pref set to true if touchpad tap-to-click is enabled.
446 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
448 // A boolean pref set to true if touchpad tap-dragging is enabled.
449 const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
451 // A boolean pref set to true if touchpad three-finger-click is enabled.
452 const char kEnableTouchpadThreeFingerClick[] =
453 "settings.touchpad.enable_three_finger_click";
455 // A boolean pref set to true if touchpad natural scrolling is enabled.
456 const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
458 // A boolean pref set to true if primary mouse button is the left button.
459 const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
461 // A integer pref for the touchpad sensitivity.
462 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
464 // A integer pref for the touchpad sensitivity.
465 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
467 // A boolean pref set to true if time should be displayed in 24-hour clock.
468 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
470 // This setting disables manual timezone selection and starts periodic timezone
471 // refresh.
472 const char kResolveTimezoneByGeolocation[] =
473 "settings.resolve_timezone_by_geolocation";
475 // A boolean pref to disable Google Drive integration.
476 // The pref prefix should remain as "gdata" for backward compatibility.
477 const char kDisableDrive[] = "gdata.disabled";
479 // A boolean pref to disable Drive over cellular connections.
480 // The pref prefix should remain as "gdata" for backward compatibility.
481 const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
483 // A boolean pref to disable hosted files on Drive.
484 // The pref prefix should remain as "gdata" for backward compatibility.
485 const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
487 // A string pref set to the current input method.
488 const char kLanguageCurrentInputMethod[] =
489 "settings.language.current_input_method";
491 // A string pref set to the previous input method.
492 const char kLanguagePreviousInputMethod[] =
493 "settings.language.previous_input_method";
495 // A string pref (comma-separated list) set to the preferred language IDs
496 // (ex. "en-US,fr,ko").
497 const char kLanguagePreferredLanguages[] =
498 "settings.language.preferred_languages";
499 const char kLanguagePreferredLanguagesSyncable[] =
500 "settings.language.preferred_languages_syncable";
502 // A string pref (comma-separated list) set to the preloaded (active) input
503 // method IDs (ex. "pinyin,mozc").
504 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
505 const char kLanguagePreloadEnginesSyncable[] =
506 "settings.language.preload_engines_syncable";
508 // A string pref (comma-separated list) set to the extension IMEs to be enabled.
509 const char kLanguageEnabledExtensionImes[] =
510 "settings.language.enabled_extension_imes";
511 const char kLanguageEnabledExtensionImesSyncable[] =
512 "settings.language.enabled_extension_imes_syncable";
514 // A boolean pref to indicate whether we still need to add the globally synced
515 // input methods. False after the initial post-OOBE sync.
516 const char kLanguageShouldMergeInputMethods[] =
517 "settings.language.merge_input_methods";
519 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
520 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
521 // src/chrome/browser/chromeos/input_method/xkeyboard.h
522 const char kLanguageRemapSearchKeyTo[] =
523 // Note: we no longer use XKB for remapping these keys, but we can't change
524 // the pref names since the names are already synced with the cloud.
525 "settings.language.xkb_remap_search_key_to";
526 const char kLanguageRemapControlKeyTo[] =
527 "settings.language.xkb_remap_control_key_to";
528 const char kLanguageRemapAltKeyTo[] =
529 "settings.language.xkb_remap_alt_key_to";
530 const char kLanguageRemapCapsLockKeyTo[] =
531 "settings.language.remap_caps_lock_key_to";
532 const char kLanguageRemapDiamondKeyTo[] =
533 "settings.language.remap_diamond_key_to";
535 // A boolean pref that causes top-row keys to be interpreted as function keys
536 // instead of as media keys.
537 const char kLanguageSendFunctionKeys[] =
538 "settings.language.send_function_keys";
540 // A boolean pref which determines whether key repeat is enabled.
541 const char kLanguageXkbAutoRepeatEnabled[] =
542 "settings.language.xkb_auto_repeat_enabled_r2";
543 // A integer pref which determines key repeat delay (in ms).
544 const char kLanguageXkbAutoRepeatDelay[] =
545 "settings.language.xkb_auto_repeat_delay_r2";
546 // A integer pref which determines key repeat interval (in ms).
547 const char kLanguageXkbAutoRepeatInterval[] =
548 "settings.language.xkb_auto_repeat_interval_r2";
549 // "_r2" suffixes were added to the three prefs above when we changed the
550 // preferences to not be user-configurable or sync with the cloud. The prefs are
551 // now user-configurable and syncable again, but we don't want to overwrite the
552 // current values with the old synced values, so we continue to use this suffix.
554 // A boolean pref which determines whether the large cursor feature is enabled.
555 const char kAccessibilityLargeCursorEnabled[] =
556 "settings.a11y.large_cursor_enabled";
558 // A boolean pref which determines whether the sticky keys feature is enabled.
559 const char kAccessibilityStickyKeysEnabled[] =
560 "settings.a11y.sticky_keys_enabled";
561 // A boolean pref which determines whether spoken feedback is enabled.
562 const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility";
563 // A boolean pref which determines whether high conrast is enabled.
564 const char kAccessibilityHighContrastEnabled[] =
565 "settings.a11y.high_contrast_enabled";
566 // A boolean pref which determines whether screen magnifier is enabled.
567 const char kAccessibilityScreenMagnifierEnabled[] =
568 "settings.a11y.screen_magnifier";
569 // A integer pref which determines what type of screen magnifier is enabled.
570 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
571 // we are using another name pref here.
572 const char kAccessibilityScreenMagnifierType[] =
573 "settings.a11y.screen_magnifier_type2";
574 // A double pref which determines a zooming scale of the screen magnifier.
575 const char kAccessibilityScreenMagnifierScale[] =
576 "settings.a11y.screen_magnifier_scale";
577 // A boolean pref which determines whether the virtual keyboard is enabled for
578 // accessibility. This feature is separate from displaying an onscreen keyboard
579 // due to lack of a physical keyboard.
580 const char kAccessibilityVirtualKeyboardEnabled[] =
581 "settings.a11y.virtual_keyboard";
582 // A boolean pref which determines whether autoclick is enabled.
583 const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick";
584 // An integer pref which determines time in ms between when the mouse cursor
585 // stops and when an autoclick is triggered.
586 const char kAccessibilityAutoclickDelayMs[] =
587 "settings.a11y.autoclick_delay_ms";
588 // A boolean pref which determines whether the accessibility menu shows
589 // regardless of the state of a11y features.
590 const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
592 // A boolean pref which turns on Advanced Filesystem
593 // (USB support, SD card, etc).
594 const char kLabsAdvancedFilesystemEnabled[] =
595 "settings.labs.advanced_filesystem";
597 // A boolean pref which turns on the mediaplayer.
598 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
600 // A boolean pref that turns on automatic screen locking.
601 const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
603 // A boolean pref of whether to show mobile plan notifications.
604 const char kShowPlanNotifications[] =
605 "settings.internet.mobile.show_plan_notifications";
607 // A boolean pref of whether to show 3G promo notification.
608 const char kShow3gPromoNotification[] =
609 "settings.internet.mobile.show_3g_promo_notification";
611 // An integer pref counting times Data Saver prompt has been shown.
612 const char kDataSaverPromptsShown[] =
613 "settings.internet.mobile.datasaver_prompts_shown";
615 // A string pref that contains version where "What's new" promo was shown.
616 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
618 // A boolean pref that controls whether proxy settings from shared network
619 // settings (accordingly from device policy) are applied or ignored.
620 const char kUseSharedProxies[] = "settings.use_shared_proxies";
622 // Power state of the current displays from the last run.
623 const char kDisplayPowerState[] = "settings.display.power_state";
624 // A dictionary pref that stores per display preferences.
625 const char kDisplayProperties[] = "settings.display.properties";
627 // A dictionary pref that specifies per-display layout/offset information.
628 // Its key is the ID of the display and its value is a dictionary for the
629 // layout/offset information.
630 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
632 // A dictionary pref that specifies the state of the rotation lock, and the
633 // display orientation, for the internal display.
634 const char kDisplayRotationLock[] = "settings.display.rotation_lock";
636 // A boolean pref indicating whether user activity has been observed in the
637 // current session already. The pref is used to restore information about user
638 // activity after browser crashes.
639 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
641 // A preference to keep track of the session start time. If the session length
642 // limit is configured to start running after initial user activity has been
643 // observed, the pref is set after the first user activity in a session.
644 // Otherwise, it is set immediately after session start. The pref is used to
645 // restore the session start time after browser crashes. The time is expressed
646 // as the serialization obtained from base::TimeTicks::ToInternalValue().
647 const char kSessionStartTime[] = "session.start_time";
649 // Holds the maximum session time in milliseconds. If this pref is set, the
650 // user is logged out when the maximum session time is reached. The user is
651 // informed about the remaining time by a countdown timer shown in the ash
652 // system tray.
653 const char kSessionLengthLimit[] = "session.length_limit";
655 // Whether the session length limit should start running only after the first
656 // user activity has been observed in a session.
657 const char kSessionWaitForInitialUserActivity[] =
658 "session.wait_for_initial_user_activity";
660 // Inactivity time in milliseconds while the system is on AC power before
661 // the screen should be dimmed, turned off, or locked, before an
662 // IdleActionImminent D-Bus signal should be sent, or before
663 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
664 // kPowerAcIdleDelayMs).
665 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
666 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
667 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
668 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
669 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
671 // Similar delays while the system is on battery power.
672 const char kPowerBatteryScreenDimDelayMs[] =
673 "power.battery_screen_dim_delay_ms";
674 const char kPowerBatteryScreenOffDelayMs[] =
675 "power.battery_screen_off_delay_ms";
676 const char kPowerBatteryScreenLockDelayMs[] =
677 "power.battery_screen_lock_delay_ms";
678 const char kPowerBatteryIdleWarningDelayMs[] =
679 "power.battery_idle_warning_delay_ms";
680 const char kPowerBatteryIdleDelayMs[] =
681 "power.battery_idle_delay_ms";
683 // Inactivity delays used to dim the screen or turn it off while the screen is
684 // locked.
685 const char kPowerLockScreenDimDelayMs[] = "power.lock_screen_dim_delay_ms";
686 const char kPowerLockScreenOffDelayMs[] = "power.lock_screen_off_delay_ms";
688 // Action that should be performed when the idle delay is reached while the
689 // system is on AC power or battery power.
690 // Values are from the chromeos::PowerPolicyController::Action enum.
691 const char kPowerAcIdleAction[] = "power.ac_idle_action";
692 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
694 // Action that should be performed when the lid is closed.
695 // Values are from the chromeos::PowerPolicyController::Action enum.
696 const char kPowerLidClosedAction[] = "power.lid_closed_action";
698 // Should audio and video activity be used to disable the above delays?
699 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
700 const char kPowerUseVideoActivity[] = "power.use_video_activity";
702 // Should extensions be able to use the chrome.power API to override
703 // screen-related power management (including locking)?
704 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
706 // Amount by which the screen-dim delay should be scaled while the system
707 // is in presentation mode. Values are limited to a minimum of 1.0.
708 const char kPowerPresentationScreenDimDelayFactor[] =
709 "power.presentation_screen_dim_delay_factor";
711 // Amount by which the screen-dim delay should be scaled when user activity is
712 // observed while the screen is dimmed or soon after the screen has been turned
713 // off. Values are limited to a minimum of 1.0.
714 const char kPowerUserActivityScreenDimDelayFactor[] =
715 "power.user_activity_screen_dim_delay_factor";
717 // Whether the power management delays should start running only after the first
718 // user activity has been observed in a session.
719 const char kPowerWaitForInitialUserActivity[] =
720 "power.wait_for_initial_user_activity";
722 // Boolean controlling whether the panel backlight should be forced to a
723 // nonzero level when user activity is observed.
724 const char kPowerForceNonzeroBrightnessForUserActivity[] =
725 "power.force_nonzero_brightness_for_user_activity";
727 // The URL from which the Terms of Service can be downloaded. The value is only
728 // honored for public accounts.
729 const char kTermsOfServiceURL[] = "terms_of_service.url";
731 // Indicates that the Profile has made navigations that used a certificate
732 // installed by the system administrator. If that is true then the local cache
733 // of remote data is tainted (e.g. shared scripts), and future navigations
734 // show a warning indicating that the organization may track the browsing
735 // session.
736 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
738 // Indicates whether the remote attestation is enabled for the user.
739 const char kAttestationEnabled[] = "attestation.enabled";
740 // The list of extensions allowed to use the platformKeysPrivate API for
741 // remote attestation.
742 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
744 // A boolean pref indicating whether the projection touch HUD is enabled or not.
745 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
747 // A pref to configure networks. Its value must be a list of
748 // NetworkConfigurations according to the OpenNetworkConfiguration
749 // specification.
750 // Currently, this pref is only used to store the policy. The user's
751 // configuration is still stored in Shill.
752 const char kOpenNetworkConfiguration[] = "onc";
754 // A boolean pref recording whether user has dismissed the multiprofile
755 // itroduction dialog show.
756 const char kMultiProfileNeverShowIntro[] =
757 "settings.multi_profile_never_show_intro";
759 // A boolean pref recording whether user has dismissed the multiprofile
760 // teleport warning dialog show.
761 const char kMultiProfileWarningShowDismissed[] =
762 "settings.multi_profile_warning_show_dismissed";
764 // A string pref that holds string enum values of how the user should behave
765 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
766 // for more details of the valid values.
767 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
769 // A boolean preference indicating whether user has seen first-run tutorial
770 // already.
771 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
773 // Indicates the amount of time for which a user authenticated via SAML can use
774 // offline authentication against a cached password before being forced to go
775 // through online authentication against GAIA again. The time is expressed in
776 // seconds. A value of -1 indicates no limit, allowing the user to use offline
777 // authentication indefinitely. The limit is in effect only if GAIA redirected
778 // the user to a SAML IdP during the last online authentication.
779 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
781 // A preference to keep track of the last time the user authenticated against
782 // GAIA using SAML. The preference is updated whenever the user authenticates
783 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
784 // current time. If GAIA performs the authentication itself, the preference is
785 // cleared. The time is expressed as the serialization obtained from
786 // base::Time::ToInternalValue().
787 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
789 // The total number of seconds that the machine has spent sitting on the
790 // OOBE screen.
791 const char kTimeOnOobe[] = "settings.time_on_oobe";
793 // The app/extension name who sets the current wallpaper. If current wallpaper
794 // is set by the component wallpaper picker, it is set to an empty string.
795 const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
797 // List of mounted file systems via the File System Provider API. Used to
798 // restore them after a reboot.
799 const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
801 // A boolean pref set to true if the virtual keyboard should be enabled.
802 const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
804 // A boolean pref that controls whether wake on SSID is enabled.
805 const char kWakeOnWifiSsid[] = "settings.internet.wake_on_wifi_ssid";
807 // This is the policy CaptivePortalAuthenticationIgnoresProxy that allows to
808 // open captive portal authentication pages in a separate window under
809 // a temporary incognito profile ("signin profile" is used for this purpose),
810 // which allows to bypass the user's proxy for captive portal authentication.
811 const char kCaptivePortalAuthenticationIgnoresProxy[] =
812 "proxy.captive_portal_ignores_proxy";
814 // This boolean controls whether the first window shown on first run should be
815 // unconditionally maximized, overriding the heuristic that normally chooses the
816 // window size.
817 const char kForceMaximizeOnFirstRun[] = "ui.force_maximize_on_first_run";
818 #endif // defined(OS_CHROMEOS)
820 // A boolean pref set to true if a Home button to open the Home pages should be
821 // visible on the toolbar.
822 const char kShowHomeButton[] = "browser.show_home_button";
824 // A string value which saves short list of recently user selected encodings
825 // separated with comma punctuation mark.
826 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
828 // Clear Browsing Data dialog preferences.
829 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
830 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
831 const char kDeleteCache[] = "browser.clear_data.cache";
832 const char kDeleteCookies[] = "browser.clear_data.cookies";
833 const char kDeletePasswords[] = "browser.clear_data.passwords";
834 const char kDeleteFormData[] = "browser.clear_data.form_data";
835 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
836 const char kDeauthorizeContentLicenses[] =
837 "browser.clear_data.content_licenses";
838 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
839 const char kLastClearBrowsingDataTime[] =
840 "browser.last_clear_browsing_data_time";
842 // Boolean pref to define the default values for using spellchecker.
843 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
845 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
846 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
848 // Boolean pref to define the default values for using auto spell correct.
849 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
851 // Boolean pref to define the default setting for "block offensive words".
852 // The old key value is kept to avoid unnecessary migration code.
853 const char kSpeechRecognitionFilterProfanities[] =
854 "browser.speechinput_censor_results";
856 // Boolean controlling whether history saving is disabled.
857 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
859 // Boolean controlling whether deleting browsing and download history is
860 // permitted.
861 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
863 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
864 const char kForceGoogleSafeSearch[] = "settings.force_google_safesearch";
866 // Boolean controlling whether Safety Mode is mandatory on YouTube.
867 const char kForceYouTubeSafetyMode[] = "settings.force_youtube_safety_mode";
869 // Boolean controlling whether History is recorded and synced for
870 // supervised users.
871 const char kRecordHistory[] = "settings.history_recorded";
873 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
874 // Linux specific preference on whether we should match the system theme.
875 const char kUsesSystemTheme[] = "extensions.theme.use_system";
876 #endif
877 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
878 const char kCurrentThemeID[] = "extensions.theme.id";
879 const char kCurrentThemeImages[] = "extensions.theme.images";
880 const char kCurrentThemeColors[] = "extensions.theme.colors";
881 const char kCurrentThemeTints[] = "extensions.theme.tints";
882 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
884 // Boolean pref which persists whether the extensions_ui is in developer mode
885 // (showing developer packing tools and extensions details)
886 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
888 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
889 // Tool promotion has been dismissed by the user.
890 const char kExtensionsUIDismissedADTPromo[] =
891 "extensions.ui.dismissed_adt_promo";
893 // Dictionary pref that tracks which command belongs to which
894 // extension + named command pair.
895 const char kExtensionCommands[] = "extensions.commands";
897 // Pref containing the directory for internal plugins as written to the plugins
898 // list (below).
899 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
901 // List pref containing information (dictionaries) on plugins.
902 const char kPluginsPluginsList[] = "plugins.plugins_list";
904 // List pref containing names of plugins that are disabled by policy.
905 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
907 // List pref containing exceptions to the list of plugins disabled by policy.
908 const char kPluginsDisabledPluginsExceptions[] =
909 "plugins.plugins_disabled_exceptions";
911 // List pref containing names of plugins that are enabled by policy.
912 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
914 // Whether NPAPI plugins are enabled.
915 const char kEnableNpapi[] = "plugins.enable_npapi";
917 // When bundled NPAPI Flash is removed, if at that point it is enabled while
918 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
919 // want to do so only once.
920 const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
922 // In the early stage of component-updated PPAPI Flash, we did field trials in
923 // which it was set to disabled by default. The corresponding settings item may
924 // remain in some users' profiles. Currently it affects both the bundled and
925 // component-updated PPAPI Flash (since the two share the same enable/disable
926 // state). We want to remove this item to get those users to use PPAPI Flash.
927 // We will want to do so only once.
928 const char kPluginsRemovedOldComponentPepperFlashSettings[] =
929 "plugins.removed_old_component_pepper_flash_settings";
931 #if !defined(OS_ANDROID)
932 // Whether about:plugins is shown in the details mode or not.
933 const char kPluginsShowDetails[] = "plugins.show_details";
934 #endif
936 // Boolean that indicates whether outdated plugins are allowed or not.
937 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
939 // Boolean that indicates whether plugins that require authorization should
940 // be always allowed or not.
941 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
943 #if defined(ENABLE_PLUGIN_INSTALLATION)
944 // Dictionary holding plugins metadata.
945 const char kPluginsMetadata[] = "plugins.metadata";
947 // Last update time of plugins resource cache.
948 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
949 #endif
951 // Boolean that indicates whether we should check if we are the default browser
952 // on start-up.
953 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
955 // Policy setting whether default browser check should be disabled and default
956 // browser registration should take place.
957 const char kDefaultBrowserSettingEnabled[] =
958 "browser.default_browser_setting_enabled";
960 #if defined(OS_MACOSX)
961 // Boolean that indicates whether the application should show the info bar
962 // asking the user to set up automatic updates when Keystone promotion is
963 // required.
964 const char kShowUpdatePromotionInfoBar[] =
965 "browser.show_update_promotion_info_bar";
966 #endif
968 // Boolean that is false if we should show window manager decorations. If
969 // true, we draw a custom chrome frame (thicker title bar and blue border).
970 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
972 #if !defined(OS_ANDROID)
973 // Which plugins have been whitelisted manually by the user.
974 const char kContentSettingsPluginWhitelist[] =
975 "profile.content_settings.plugin_whitelist";
976 #endif
978 // Boolean that is true if we should unconditionally block third-party cookies,
979 // regardless of other content settings.
980 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
982 // Boolean that is true when all locally stored site data (e.g. cookies, local
983 // storage, etc..) should be deleted on exit.
984 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
986 // Double that indicates the default zoom level.
987 const char kPartitionDefaultZoomLevel[] = "partition.default_zoom_level";
988 // TODO(wjmaclean): Remove this once sufficient users have migrated to the
989 // per-StoragePartition zoom levels. http://crbug.com/420643.
990 const char kDefaultZoomLevelDeprecated[] = "profile.default_zoom_level";
992 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
993 // be displayed at the default zoom level.
994 const char kPartitionPerHostZoomLevels[] = "partition.per_host_zoom_levels";
995 // TODO(wjmaclean): Remove this.
996 const char kPerHostZoomLevelsDeprecated[] = "profile.per_host_zoom_levels";
998 // A dictionary that tracks the default data model to use for each section of
999 // the dialog.
1000 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1002 // Whether a user opted out of making purchases with Google Wallet; changed via
1003 // the autofill dialog's account chooser and set explicitly on dialog submission
1004 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1005 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1007 // Which GAIA users have accepted that use of Google Wallet implies their
1008 // location will be shared with fraud protection services.
1009 const char kAutofillDialogWalletLocationAcceptance[] =
1010 "autofill.wallet_location_disclosure";
1012 // Whether a user wants to save data locally in Autofill.
1013 const char kAutofillDialogSaveData[] = "autofill.save_data";
1015 // Whether the user has selected "Same as billing" for the shipping address when
1016 // using Google Wallet.
1017 const char kAutofillDialogWalletShippingSameAsBilling[] =
1018 "autofill.wallet_shipping_same_as_billing";
1020 // The number of times the generated credit card bubble has been shown.
1021 const char kAutofillGeneratedCardBubbleTimesShown[] =
1022 "autofill.generated_card_bubble_times_shown";
1024 #if defined(OS_ANDROID)
1025 // A dictionary that tracks the defaults to be set on the next invocation
1026 // of the requestAutocomplete dialog.
1027 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1028 #endif
1030 #if !defined(OS_ANDROID)
1031 const char kPinnedTabs[] = "pinned_tabs";
1032 #endif
1034 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1035 const char kDisable3DAPIs[] = "disable_3d_apis";
1037 const char kEnableDeprecatedWebPlatformFeatures[] =
1038 "enable_deprecated_web_platform_features";
1040 // Whether to enable hyperlink auditing ("<a ping>").
1041 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1043 // Whether to enable sending referrers.
1044 const char kEnableReferrers[] = "enable_referrers";
1046 // Whether to send the DNT header.
1047 const char kEnableDoNotTrack[] = "enable_do_not_track";
1049 // GL_VENDOR string.
1050 const char kGLVendorString[] = "gl_vendor_string";
1052 // GL_RENDERER string.
1053 const char kGLRendererString[] = "gl_renderer_string";
1055 // GL_VERSION string.
1056 const char kGLVersionString[] = "gl_version_string";
1058 // Boolean that specifies whether to import the form data for autofill from the
1059 // default browser on first run.
1060 const char kImportAutofillFormData[] = "import_autofill_form_data";
1062 // Boolean that specifies whether to import bookmarks from the default browser
1063 // on first run.
1064 const char kImportBookmarks[] = "import_bookmarks";
1066 // Boolean that specifies whether to import the browsing history from the
1067 // default browser on first run.
1068 const char kImportHistory[] = "import_history";
1070 // Boolean that specifies whether to import the homepage from the default
1071 // browser on first run.
1072 const char kImportHomepage[] = "import_home_page";
1074 // Boolean that specifies whether to import the saved passwords from the default
1075 // browser on first run.
1076 const char kImportSavedPasswords[] = "import_saved_passwords";
1078 // Boolean that specifies whether to import the search engine from the default
1079 // browser on first run.
1080 const char kImportSearchEngine[] = "import_search_engine";
1082 // Profile avatar and name
1083 const char kProfileAvatarIndex[] = "profile.avatar_index";
1084 const char kProfileName[] = "profile.name";
1085 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1086 // because it was randomly assigned at profile creation time.
1087 const char kProfileUsingDefaultName[] = "profile.using_default_name";
1088 // Whether a profile is using an avatar without having explicitely chosen it
1089 // (i.e. was assigned by default by legacy profile creation).
1090 const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
1091 const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
1093 // The supervised user ID.
1094 const char kSupervisedUserId[] = "profile.managed_user_id";
1096 // 64-bit integer serialization of the base::Time when the user's GAIA info
1097 // was last updated.
1098 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1100 // The URL from which the GAIA profile picture was downloaded. This is cached to
1101 // prevent the same picture from being downloaded multiple times.
1102 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1104 // Integer that specifies the number of times that we have shown the upgrade
1105 // tutorial card in the avatar menu bubble.
1106 const char kProfileAvatarTutorialShown[] =
1107 "profile.avatar_bubble_tutorial_shown";
1109 // Boolean that specifies if the user has already dismissed the right-click user
1110 // switching tutorial.
1111 const char kProfileAvatarRightClickTutorialDismissed[] =
1112 "profile.avatar_bubble_right_click_tutorial_dismissed";
1114 // Indicates if we've already shown a notification that high contrast
1115 // mode is on, recommending high-contrast extensions and themes.
1116 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1118 // Boolean controlling whether printing is enabled.
1119 const char kPrintingEnabled[] = "printing.enabled";
1121 // Boolean controlling whether print preview is disabled.
1122 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1124 // An integer pref specifying the fallback behavior for sites outside of content
1125 // packs. One of:
1126 // 0: Allow (does nothing)
1127 // 1: Warn.
1128 // 2: Block.
1129 const char kDefaultSupervisedUserFilteringBehavior[] =
1130 "profile.managed.default_filtering_behavior";
1132 // Whether this user is permitted to create supervised users.
1133 const char kSupervisedUserCreationAllowed[] =
1134 "profile.managed_user_creation_allowed";
1136 // List pref containing the users supervised by this user.
1137 const char kSupervisedUsers[] = "profile.managed_users";
1139 // String that indicates that the profile reset prompt has already been shown to
1140 // the user (profile).
1141 const char kProfileResetPromptMementoInProfilePrefs[] =
1142 "profile.reset_prompt_memento";
1144 // List pref containing the extension ids which are not allowed to send
1145 // notifications to the message center.
1146 const char kMessageCenterDisabledExtensionIds[] =
1147 "message_center.disabled_extension_ids";
1149 // List pref containing the system component ids which are not allowed to send
1150 // notifications to the message center.
1151 const char kMessageCenterDisabledSystemComponentIds[] =
1152 "message_center.disabled_system_component_ids";
1154 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1155 // by the user. Syncable.
1156 // Note: This is now read-only. The welcome notification writes the _local
1157 // version, below.
1158 const char kWelcomeNotificationDismissed[] =
1159 "message_center.welcome_notification_dismissed";
1161 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1162 // by the user on this machine.
1163 const char kWelcomeNotificationDismissedLocal[] =
1164 "message_center.welcome_notification_dismissed_local";
1166 // Boolean pref indicating the welcome notification was previously popped up.
1167 const char kWelcomeNotificationPreviouslyPoppedUp[] =
1168 "message_center.welcome_notification_previously_popped_up";
1170 // Integer pref containing the expiration timestamp of the welcome notification.
1171 const char kWelcomeNotificationExpirationTimestamp[] =
1172 "message_center.welcome_notification_expiration_timestamp";
1174 // Boolean pref that determines whether the user can enter fullscreen mode.
1175 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1176 // platforms.
1177 const char kFullscreenAllowed[] = "fullscreen.allowed";
1179 // Enable notifications for new devices on the local network that can be
1180 // registered to the user's account, e.g. Google Cloud Print printers.
1181 const char kLocalDiscoveryNotificationsEnabled[] =
1182 "local_discovery.notifications_enabled";
1184 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
1185 // a preference was reset.
1186 const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1188 // How many Service Workers are registered with the Push API (could be zero).
1189 const char kPushMessagingRegistrationCount[] =
1190 "gcm.push_messaging_registration_count";
1192 // Maps from app ids to origin + Service Worker registration ID.
1193 const char kPushMessagingAppIdentifierMap[] =
1194 "gcm.push_messaging_application_id_map";
1196 // Whether a user is allowed to use Easy Unlock.
1197 const char kEasyUnlockAllowed[] = "easy_unlock.allowed";
1199 // Whether Easy Unlock is enabled.
1200 const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1202 // Preference storing Easy Unlock pairing data.
1203 const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1205 // Whether close proximity between the remote and the local device is required
1206 // in order to use Easy Unlock.
1207 const char kEasyUnlockProximityRequired[] = "easy_unlock.proximity_required";
1209 // A cache of zero suggest results using JSON serialized into a string.
1210 const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults";
1212 #if defined(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1213 // These device IDs are used by the copresence component, to uniquely identify
1214 // this device to the server. For privacy, authenticated and unauthenticated
1215 // calls are made using different device IDs.
1216 const char kCopresenceAuthenticatedDeviceId[] =
1217 "apps.copresence.auth_device_id";
1218 const char kCopresenceAnonymousDeviceId[] = "apps.copresence.unauth_device_id";
1220 // Used to indicate whether or not the toolbar redesign bubble has been shown
1221 // and acknowledged, and the last time the bubble was shown.
1222 const char kToolbarIconSurfacingBubbleAcknowledged[] =
1223 "toolbar_icon_surfacing_bubble_acknowledged";
1224 const char kToolbarIconSurfacingBubbleLastShowTime[] =
1225 "toolbar_icon_surfacing_bubble_show_time";
1226 #endif
1228 // Whether WebRTC should bind to individual NICs to explore all possible routing
1229 // options. Default is true.
1230 #if defined(ENABLE_WEBRTC)
1231 const char kWebRTCMultipleRoutesEnabled[] = "webrtc.multiple_routes_enabled";
1232 #endif
1234 // *************** LOCAL STATE ***************
1235 // These are attached to the machine/installation
1237 // A pref to configure networks device-wide. Its value must be a list of
1238 // NetworkConfigurations according to the OpenNetworkConfiguration
1239 // specification.
1240 // Currently, this pref is only used to store the policy. The user's
1241 // configuration is still stored in Shill.
1242 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1244 // Directory of the last profile used.
1245 const char kProfileLastUsed[] = "profile.last_used";
1247 // List of directories of the profiles last active.
1248 const char kProfilesLastActive[] = "profile.last_active_profiles";
1250 // Total number of profiles created for this Chrome build. Used to tag profile
1251 // directories.
1252 const char kProfilesNumCreated[] = "profile.profiles_created";
1254 // String containing the version of Chrome that the profile was created by.
1255 // If profile was created before this feature was added, this pref will default
1256 // to "1.0.0.0".
1257 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1259 // A map of profile data directory to cached information. This cache can be
1260 // used to display information about profiles without actually having to load
1261 // them.
1262 const char kProfileInfoCache[] = "profile.info_cache";
1264 // Dictionary that maps profile keys to strings that indicate that the profile
1265 // reset prompt has already been shown to the corresponding user (profile).
1266 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1267 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1268 // explanation of why this redundancy is needed.
1269 const char kProfileResetPromptMementosInLocalState[] =
1270 "profile.reset_prompt_mementos";
1272 // Prefs for SSLConfigServicePref.
1273 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1274 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1275 "ssl.rev_checking.required_for_local_anchors";
1276 const char kSSLVersionMin[] = "ssl.version_min";
1277 const char kSSLVersionMax[] = "ssl.version_max";
1278 const char kSSLVersionFallbackMin[] = "ssl.version_fallback_min";
1279 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1280 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1282 // Boolean that specifies whether or not crash reporting and metrics reporting
1283 // are sent over the network for analysis.
1284 const char kMetricsReportingEnabled[] =
1285 "user_experience_metrics.reporting_enabled";
1287 // Boolean that specifies whether or not crash reports are sent
1288 // over the network for analysis.
1289 #if defined(OS_ANDROID)
1290 const char kCrashReportingEnabled[] =
1291 "user_experience_metrics_crash.reporting_enabled";
1292 #endif
1294 // Base64-encoded compressed serialized form of the variations seed protobuf.
1295 const char kVariationsCompressedSeed[] = "variations_compressed_seed";
1297 // 64-bit integer serialization of the base::Time from the last successful seed
1298 // fetch (i.e. when the Variations server responds with 200 or 304).
1299 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1301 // Pair of <Chrome version string, country code string> representing the country
1302 // used for filtering permanent consistency studies until the next time Chrome
1303 // is updated.
1304 const char kVariationsPermanentConsistencyCountry[] =
1305 "variations_permanent_consistency_country";
1307 // String for the restrict parameter to be appended to the variations URL.
1308 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1310 // Base64-encoded serialized form of the variations seed protobuf.
1311 const char kVariationsSeed[] = "variations_seed";
1313 // 64-bit integer serialization of the base::Time from the last seed received.
1314 const char kVariationsSeedDate[] = "variations_seed_date";
1316 // Digital signature of the binary variations seed data, base64-encoded.
1317 const char kVariationsSeedSignature[] = "variations_seed_signature";
1319 // Number of times a page load event occurred since the last report.
1320 const char kStabilityPageLoadCount[] =
1321 "user_experience_metrics.stability.page_load_count";
1323 // Number of times a renderer process crashed since the last report.
1324 const char kStabilityRendererCrashCount[] =
1325 "user_experience_metrics.stability.renderer_crash_count";
1327 // Number of times an extension renderer process crashed since the last report.
1328 const char kStabilityExtensionRendererCrashCount[] =
1329 "user_experience_metrics.stability.extension_renderer_crash_count";
1331 // This is the location of a list of dictionaries of plugin stability stats.
1332 const char kStabilityPluginStats[] =
1333 "user_experience_metrics.stability.plugin_stats2";
1335 // Number of times the renderer has become non-responsive since the last
1336 // report.
1337 const char kStabilityRendererHangCount[] =
1338 "user_experience_metrics.stability.renderer_hang_count";
1340 // Total number of child process crashes (other than renderer / extension
1341 // renderer ones, and plugin children, which are counted separately) since the
1342 // last report.
1343 const char kStabilityChildProcessCrashCount[] =
1344 "user_experience_metrics.stability.child_process_crash_count";
1346 // On Chrome OS, total number of non-Chrome user process crashes
1347 // since the last report.
1348 const char kStabilityOtherUserCrashCount[] =
1349 "user_experience_metrics.stability.other_user_crash_count";
1351 // On Chrome OS, total number of kernel crashes since the last report.
1352 const char kStabilityKernelCrashCount[] =
1353 "user_experience_metrics.stability.kernel_crash_count";
1355 // On Chrome OS, total number of unclean system shutdowns since the
1356 // last report.
1357 const char kStabilitySystemUncleanShutdownCount[] =
1358 "user_experience_metrics.stability.system_unclean_shutdowns";
1360 #if defined(OS_ANDROID)
1361 // Activity type that is currently in the foreground for the UMA session.
1362 // Uses the ActivityTypeIds::Type enum.
1363 const char kStabilityForegroundActivityType[] =
1364 "user_experience_metrics.stability.current_foreground_activity_type";
1366 // Tracks which Activities were launched during the last session.
1367 // See |metrics_service_android.cc| for its usage.
1368 const char kStabilityLaunchedActivityFlags[] =
1369 "user_experience_metrics.stability.launched_activity_flags";
1371 // List pref: Counts how many times each Activity was launched.
1372 // Indexed into by ActivityTypeIds::Type.
1373 const char kStabilityLaunchedActivityCounts[] =
1374 "user_experience_metrics.stability.launched_activity_counts";
1376 // List pref: Counts how many times each Activity type was in the foreground
1377 // when a UMA session failed to be shut down properly.
1378 // Indexed into by ActivityTypeIds::Type.
1379 const char kStabilityCrashedActivityCounts[] =
1380 "user_experience_metrics.stability.crashed_activity_counts";
1381 #endif
1383 // The keys below are used for the dictionaries in the
1384 // kStabilityPluginStats list.
1385 const char kStabilityPluginName[] = "name";
1386 const char kStabilityPluginLaunches[] = "launches";
1387 const char kStabilityPluginInstances[] = "instances";
1388 const char kStabilityPluginCrashes[] = "crashes";
1389 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1391 // The keys below are strictly increasing counters over the lifetime of
1392 // a chrome installation. They are (optionally) sent up to the uninstall
1393 // survey in the event of uninstallation.
1394 const char kUninstallMetricsPageLoadCount[] =
1395 "uninstall_metrics.page_load_count";
1396 const char kUninstallLastLaunchTimeSec[] =
1397 "uninstall_metrics.last_launch_time_sec";
1398 const char kUninstallLastObservedRunTimeSec[] =
1399 "uninstall_metrics.last_observed_running_time_sec";
1401 // String containing the version of Chrome for which Chrome will not prompt the
1402 // user about setting Chrome as the default browser.
1403 const char kBrowserSuppressDefaultBrowserPrompt[] =
1404 "browser.suppress_default_browser_prompt_for_version";
1406 // A collection of position, size, and other data relating to the browser
1407 // window to restore on startup.
1408 const char kBrowserWindowPlacement[] = "browser.window_placement";
1410 // Browser window placement for popup windows.
1411 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1413 // A collection of position, size, and other data relating to the task
1414 // manager window to restore on startup.
1415 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1417 // A collection of position, size, and other data relating to app windows to
1418 // restore on startup.
1419 const char kAppWindowPlacement[] = "browser.app_window_placement";
1421 // String which specifies where to download files to by default.
1422 const char kDownloadDefaultDirectory[] = "download.default_directory";
1424 // Boolean that records if the download directory was changed by an
1425 // upgrade a unsafe location to a safe location.
1426 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1428 #if defined(OS_WIN) || defined(OS_LINUX) || \
1429 (defined(OS_MACOSX) && !defined(OS_IOS))
1430 const char kOpenPdfDownloadInSystemReader[] =
1431 "download.open_pdf_in_system_reader";
1432 #endif
1434 // String which specifies where to save html files to by default.
1435 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1437 // The type used to save the page. See the enum SavePackage::SavePackageType in
1438 // the chrome/browser/download/save_package.h for the possible values.
1439 const char kSaveFileType[] = "savefile.type";
1441 // String which specifies the last directory that was chosen for uploading
1442 // or opening a file.
1443 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1445 // Boolean that specifies if file selection dialogs are shown.
1446 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1448 // Map of default tasks, associated by MIME type.
1449 const char kDefaultTasksByMimeType[] =
1450 "filebrowser.tasks.default_by_mime_type";
1452 // Map of default tasks, associated by file suffix.
1453 const char kDefaultTasksBySuffix[] =
1454 "filebrowser.tasks.default_by_suffix";
1456 // Extensions which should be opened upon completion.
1457 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1459 // Integer which specifies the frequency in milliseconds for detecting whether
1460 // plugin windows are hung.
1461 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1463 // Integer which specifies the timeout value to be used for SendMessageTimeout
1464 // to detect a hung plugin window.
1465 const char kPluginMessageResponseTimeout[] =
1466 "browser.plugin_message_response_timeout";
1468 // String which represents the dictionary name for our spell-checker.
1469 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1471 // String which represents whether we use the spelling service.
1472 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1474 // Dictionary of schemes used by the external protocol handler.
1475 // The value is true if the scheme must be ignored.
1476 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1478 // Integer that specifies the index of the tab the user was on when they
1479 // last visited the options window.
1480 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1482 // Integer that specifies if the first run bubble should be shown.
1483 // This preference is only registered by the first-run procedure.
1484 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1486 // String containing the last known intranet redirect URL, if any. See
1487 // intranet_redirect_detector.h for more information.
1488 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1490 // An enum value of how the browser was shut down (see browser_shutdown.h).
1491 const char kShutdownType[] = "shutdown.type";
1492 // Number of processes that were open when the user shut down.
1493 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1494 // Number of processes that were shut down using the slow path.
1495 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1497 // Whether to restart the current Chrome session automatically as the last thing
1498 // before shutting everything down.
1499 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1501 // Set before autorestarting Chrome, cleared on clean exit.
1502 const char kWasRestarted[] = "was.restarted";
1504 #if defined(OS_WIN)
1505 // Preference to be used while relaunching Chrome. This preference dictates if
1506 // Chrome should be launched in Metro or Desktop mode.
1507 // For more info take a look at ChromeRelaunchMode enum.
1508 const char kRelaunchMode[] = "relaunch.mode";
1509 #endif
1511 // Whether Extensions are enabled.
1512 const char kDisableExtensions[] = "extensions.disabled";
1514 // Whether the plugin finder that lets you install missing plugins is enabled.
1515 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1517 // Customized app page names that appear on the New Tab Page.
1518 const char kNtpAppPageNames[] = "ntp.app_page_names";
1520 #if defined(OS_ANDROID)
1521 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1522 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
1523 #endif
1525 // Keeps track of which sessions are collapsed in the Other Devices menu.
1526 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1528 #if defined(OS_ANDROID)
1529 // Keeps track of recently closed tabs collapsed state in the Other Devices
1530 // menu.
1531 const char kNtpCollapsedRecentlyClosedTabs[] =
1532 "ntp.collapsed_recently_closed_tabs";
1534 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1535 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1537 // Keeps track of sync promo collapsed state in the Other Devices menu.
1538 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1539 #endif
1541 // New Tab Page URLs that should not be shown as most visited thumbnails.
1542 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1544 // Which page should be visible on the new tab page v4
1545 const char kNtpShownPage[] = "ntp.shown_page";
1547 // A private RSA key for ADB handshake.
1548 const char kDevToolsAdbKey[] = "devtools.adb_key";
1550 const char kDevToolsDisabled[] = "devtools.disabled";
1552 // Determines whether devtools should be discovering usb devices for
1553 // remote debugging at chrome://inspect.
1554 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1555 "devtools.discover_usb_devices";
1557 // Maps of files edited locally using DevTools.
1558 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1560 // List of file system paths added in DevTools.
1561 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1563 // A boolean specifying whether port forwarding should be enabled.
1564 const char kDevToolsPortForwardingEnabled[] =
1565 "devtools.port_forwarding_enabled";
1567 // A boolean specifying whether default port forwarding configuration has been
1568 // set.
1569 const char kDevToolsPortForwardingDefaultSet[] =
1570 "devtools.port_forwarding_default_set";
1572 // A dictionary of port->location pairs for port forwarding.
1573 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1575 // A dictionary with generic DevTools settings.
1576 const char kDevToolsPreferences[] = "devtools.preferences";
1578 #if defined(OS_ANDROID)
1579 // A boolean specifying whether remote dev tools debugging is enabled.
1580 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1581 #endif
1583 // Boolean indicating that TiclInvalidationService should use GCM channel.
1584 // False or lack of settings means XMPPPushClient channel.
1585 const char kInvalidationServiceUseGCMChannel[] =
1586 "invalidation_service.use_gcm_channel";
1588 // Local hash of authentication password, used for off-line authentication
1589 // when on-line authentication is not available.
1590 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1592 #if !defined(OS_ANDROID) && !defined(OS_IOS)
1593 // Tracks the number of times that we have shown the sign in promo at startup.
1594 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1596 // Boolean tracking whether the user chose to skip the sign in promo.
1597 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1599 // Boolean that specifies if the sign in promo is allowed to show on first run.
1600 // This preference is specified in the master preference file to suppress the
1601 // sign in promo for some installations.
1602 const char kSignInPromoShowOnFirstRunAllowed[] =
1603 "sync_promo.show_on_first_run_allowed";
1605 // Boolean that specifies if we should show a bubble in the new tab page.
1606 // The bubble is used to confirm that the user is signed into sync.
1607 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1608 #endif
1610 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS)
1611 // Boolean tracking whether the user chose to opt out of the x-device promo.
1612 const char kCrossDevicePromoOptedOut[] = "x_device_promo.opted_out";
1614 // Boolean tracking whether the x-device promo is currently active.
1615 const char kCrossDevicePromoActive[] = "x_device_promo.active";
1617 // Int64, representing the time when we first observed a single GAIA account in
1618 // the cookie. If the most recent observation does not contain exactly one
1619 // account, this pref does not exist.
1620 const char kCrossDevicePromoObservedSingleAccountCookie[] =
1621 "x_device_promo.single_account_observed";
1623 // Int64, representing the time to next call the ListDevices endpoint.
1624 const char kCrossDevicePromoNextFetchListDevicesTime[] =
1625 "x_device_promo.next_list_devices_fetch";
1627 // Int containing the number of other devices where the profile's account syncs.
1628 const char kCrossDevicePromoNumDevices[] = "x_device_promo.num_devices";
1630 // Int64, representing the time when we last saw activity on another device.
1631 const char kCrossDevicePromoLastDeviceActiveTime[] =
1632 "x_device_promo.last_device_active_time";
1633 #endif
1635 // Create web application shortcut dialog preferences.
1636 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1637 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1638 const char kWebAppCreateInQuickLaunchBar[] =
1639 "browser.web_app.create_in_quick_launch_bar";
1641 // Dictionary that maps Geolocation network provider server URLs to
1642 // corresponding access token.
1643 const char kGeolocationAccessToken[] = "geolocation.access_token";
1645 #if defined(OS_ANDROID)
1646 // Boolean that controls the enabled-state of Geolocation in content.
1647 const char kGeolocationEnabled[] = "geolocation.enabled";
1648 #endif
1650 #if defined(ENABLE_GOOGLE_NOW)
1651 // Boolean that is true when Google services can use the user's location.
1652 const char kGoogleGeolocationAccessEnabled[] =
1653 "googlegeolocationaccess.enabled";
1654 #endif
1656 // Boolean that specifies whether to enable the Google Now Launcher extension.
1657 // Note: This is not the notifications component gated by ENABLE_GOOGLE_NOW.
1658 const char kGoogleNowLauncherEnabled[] = "google_now_launcher.enabled";
1660 // The default audio capture device used by the Media content setting.
1661 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1663 // The default video capture device used by the Media content setting.
1664 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1666 // The salt used for creating random MediaSource IDs.
1667 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1669 // The last used printer and its settings.
1670 const char kPrintPreviewStickySettings[] =
1671 "printing.print_preview_sticky_settings";
1673 // The last requested size of the dialog as it was closed.
1674 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1675 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1677 // The list of BackgroundContents that should be loaded when the browser
1678 // launches.
1679 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1681 #if defined(OS_WIN)
1682 // An int that stores how often we've shown the "Chrome is configured to
1683 // auto-launch" infobar.
1684 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1685 #endif
1687 // String that lists supported HTTP authentication schemes.
1688 const char kAuthSchemes[] = "auth.schemes";
1690 // Boolean that specifies whether to disable CNAME lookups when generating
1691 // Kerberos SPN.
1692 const char kDisableAuthNegotiateCnameLookup[] =
1693 "auth.disable_negotiate_cname_lookup";
1695 // Boolean that specifies whether to include the port in a generated Kerberos
1696 // SPN.
1697 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1699 // Whitelist containing servers for which Integrated Authentication is enabled.
1700 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1702 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1703 // with.
1704 const char kAuthNegotiateDelegateWhitelist[] =
1705 "auth.negotiate_delegate_whitelist";
1707 // String that specifies the name of a custom GSSAPI library to load.
1708 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1710 // Boolean that specifies whether to allow basic auth prompting on cross-
1711 // domain sub-content requests.
1712 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1714 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1715 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1717 // A pref holding the value of the policy used to explicitly allow or deny
1718 // access to audio capture devices. When enabled or not set, the user is
1719 // prompted for device access. When disabled, access to audio capture devices
1720 // is not allowed and no prompt will be shown.
1721 // See also kAudioCaptureAllowedUrls.
1722 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1723 // Holds URL patterns that specify URLs that will be granted access to audio
1724 // capture devices without prompt. NOTE: This whitelist is currently only
1725 // supported when running in kiosk mode.
1726 // TODO(tommi): Update comment when this is supported for all modes.
1727 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1729 // A pref holding the value of the policy used to explicitly allow or deny
1730 // access to video capture devices. When enabled or not set, the user is
1731 // prompted for device access. When disabled, access to video capture devices
1732 // is not allowed and no prompt will be shown.
1733 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1734 // Holds URL patterns that specify URLs that will be granted access to video
1735 // capture devices without prompt. NOTE: This whitelist is currently only
1736 // supported when running in kiosk mode.
1737 // TODO(tommi): Update comment when this is supported for all modes.
1738 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1740 // A boolean pref that controls the enabled-state of hotword search voice
1741 // trigger.
1742 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1744 // A boolean pref that controls the enabled-state of hotword search voice
1745 // trigger from any screen.
1746 const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
1748 // A boolean pref that indicates whether the hotword always-on notification
1749 // has been seen already.
1750 const char kHotwordAlwaysOnNotificationSeen[] =
1751 "hotword.always_on_notification_seen";
1753 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1754 // seconds of audio data before and the spoken query are sent back to be stored
1755 // in a user's Voice & Audio Activity. Updated whenever the user opens
1756 // chrome://settings and also polled for every 24 hours.
1757 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1759 // A string holding the locale information under which Hotword was installed.
1760 // It is used for comparison since the hotword voice search trigger must be
1761 // reinstalled to handle a new language.
1762 const char kHotwordPreviousLanguage[] = "hotword.previous_language";
1764 #if defined(OS_ANDROID)
1765 // Boolean that controls the global enabled-state of protected media identifier.
1766 const char kProtectedMediaIdentifierEnabled[] =
1767 "protected_media_identifier.enabled";
1768 #endif
1770 #if defined(OS_CHROMEOS)
1771 // Dictionary for transient storage of settings that should go into device
1772 // settings storage before owner has been assigned.
1773 const char kDeviceSettingsCache[] = "signed_settings_cache";
1775 // The hardware keyboard layout of the device. This should look like
1776 // "xkb:us::eng".
1777 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1779 // An integer pref which shows number of times carrier deal promo
1780 // notification has been shown to user.
1781 const char kCarrierDealPromoShown[] =
1782 "settings.internet.mobile.carrier_deal_promo_shown";
1784 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1785 // it's not the default value; otherwise, no auto-enrollment decision has been
1786 // made yet.
1787 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1789 // An integer pref with the maximum number of bits used by the client in a
1790 // previous auto-enrollment request. If the client goes through an auto update
1791 // during OOBE and reboots into a version of the OS with a larger maximum
1792 // modulus, then it will retry auto-enrollment using the updated value.
1793 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
1795 // The local state pref that stores device activity times before reporting
1796 // them to the policy server.
1797 const char kDeviceActivityTimes[] = "device_status.activity_times";
1799 // A pref holding the last known location when device location reporting is
1800 // enabled.
1801 const char kDeviceLocation[] = "device_status.location";
1803 // A pref holding the value of the policy used to disable mounting of external
1804 // storage for the user.
1805 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
1807 // Copy of owner swap mouse buttons option to use on login screen.
1808 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
1810 // Copy of owner tap-to-click option to use on login screen.
1811 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
1813 // The length of device uptime after which an automatic reboot is scheduled,
1814 // expressed in seconds.
1815 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
1817 // Whether an automatic reboot should be scheduled when an update has been
1818 // applied and a reboot is required to complete the update process.
1819 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1821 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1822 // for connection to Google APIs when the user isn't logged in. Currently used
1823 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1824 // Public Accounts and kiosks.
1825 const char kDeviceRobotAnyApiRefreshToken[] =
1826 "device_robot_refresh_token.any-api";
1828 // Device requisition for enterprise enrollment.
1829 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1831 // Whether to automatically start the enterprise enrollment step during OOBE.
1832 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1834 // Whether the user may exit enrollment.
1835 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1837 // How many times HID detection OOBE dialog was shown.
1838 const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1840 // Dictionary of per-user Least Recently Used input method (used at login
1841 // screen).
1842 const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1844 // A dictionary pref of the echo offer check flag. It sets offer info when
1845 // an offer is checked.
1846 const char kEchoCheckedOffers[] = "EchoCheckedOffers";
1848 // Key name of a dictionary in local state to store cached multiprofle user
1849 // behavior policy value.
1850 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
1852 // A string pref with initial locale set in VPD or manifest.
1853 const char kInitialLocale[] = "intl.initial_locale";
1855 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1856 const char kOobeComplete[] = "OobeComplete";
1858 // The name of the screen that has to be shown if OOBE has been interrupted.
1859 const char kOobeScreenPending[] = "OobeScreenPending";
1861 // A boolean pref of the device registered flag (second part after first login).
1862 const char kDeviceRegistered[] = "DeviceRegistered";
1864 // Boolean pref to signal corrupted enrollment to force the device through
1865 // enrollment recovery flow upon next boot.
1866 const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1868 // List of usernames that used certificates pushed by policy before.
1869 // This is used to prevent these users from joining multiprofile sessions.
1870 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
1872 // A dictionary containing server-provided device state pulled form the cloud
1873 // after recovery.
1874 const char kServerBackedDeviceState[] = "server_backed_device_state";
1876 // Customized wallpaper URL, which is already downloaded and scaled.
1877 // The URL from this preference must never be fetched. It is compared to the
1878 // URL from customization document to check if wallpaper URL has changed
1879 // since wallpaper was cached.
1880 const char kCustomizationDefaultWallpaperURL[] =
1881 "customization.default_wallpaper_url";
1883 // System uptime, when last logout started.
1884 // This is saved to file and cleared after chrome process starts.
1885 const char kLogoutStartedLast[] = "chromeos.logout-started";
1887 // An integer pref of the current consumer management stage. The meaning of the
1888 // value is defined in:
1889 // chrome/browser/chromeos/policy/consumer_management_stage.h
1890 const char kConsumerManagementStage[] = "consumer_management.stage";
1892 // A boolean pref. If set to true, new experimental OOBE UI is displayed.
1893 const char kNewOobe[] = "NewOobe";
1895 // A boolean pref. If set to true, experimental webview based signin flow
1896 // is deactivated.
1897 const char kWebviewSigninDisabled[] = "webview_signin_disabled";
1899 // A boolean pref. If set to true, then on the network screen we should display
1900 // whether the WebView-based sign-in flow is active.
1901 const char kNewLoginUIPopup[] = "new_login_ui_popup";
1902 #endif // defined(OS_CHROMEOS)
1904 // Whether there is a Flash version installed that supports clearing LSO data.
1905 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1907 // Whether we should show Pepper Flash-specific settings.
1908 const char kPepperFlashSettingsEnabled[] =
1909 "browser.pepper_flash_settings_enabled";
1911 // String which specifies where to store the disk cache.
1912 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1913 // Pref name for the policy specifying the maximal cache size.
1914 const char kDiskCacheSize[] = "browser.disk_cache_size";
1915 // Pref name for the policy specifying the maximal media cache size.
1916 const char kMediaCacheSize[] = "browser.media_cache_size";
1918 // Specifies the release channel that the device should be locked to.
1919 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1920 // empty string, in which case the value will be ignored.
1921 // TODO(dubroy): This preference may not be necessary once
1922 // http://crosbug.com/17015 is implemented and the update engine can just
1923 // fetch the correct value from the policy.
1924 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1926 const char kPerformanceTracingEnabled[] =
1927 "feedback.performance_tracing_enabled";
1929 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1930 // Defaults to false.
1931 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
1933 // Indicates that factory reset was requested from options page or reset screen.
1934 const char kFactoryResetRequested[] = "FactoryResetRequested";
1936 // Indicates that debugging features were requested from oobe screen.
1937 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested";
1939 // Boolean recording whether we have showed a balloon that calls out the message
1940 // center for desktop notifications.
1941 const char kMessageCenterShowedFirstRunBalloon[] =
1942 "message_center.showed_first_run_balloon";
1944 // Boolean recording whether the user has disabled the notifications
1945 // menubar or systray icon.
1946 const char kMessageCenterShowIcon[] = "message_center.show_icon";
1948 const char kMessageCenterForcedOnTaskbar[] =
1949 "message_center.was_forced_on_taskbar";
1951 #if defined(OS_CHROMEOS)
1952 // This setting starts periodic timezone refresh when not in user session.
1953 // (user session is controlled by user profile preference
1954 // kResolveTimezoneByGeolocation
1955 const char kResolveDeviceTimezoneByGeolocation[] =
1956 "settings.resolve_device_timezone_by_geolocation";
1957 #endif // defined(OS_CHROMEOS)
1959 // *************** SERVICE PREFS ***************
1960 // These are attached to the service process.
1962 const char kCloudPrintRoot[] = "cloud_print";
1963 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
1964 // The unique id for this instance of the cloud print proxy.
1965 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
1966 // The GAIA auth token for Cloud Print
1967 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
1968 // The email address of the account used to authenticate with the Cloud Print
1969 // server.
1970 const char kCloudPrintEmail[] = "cloud_print.email";
1971 // Settings specific to underlying print system.
1972 const char kCloudPrintPrintSystemSettings[] =
1973 "cloud_print.print_system_settings";
1974 // A boolean indicating whether we should poll for print jobs when don't have
1975 // an XMPP connection (false by default).
1976 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
1977 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
1978 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
1979 // A boolean indicating whether we should connect to cloud print new printers.
1980 const char kCloudPrintConnectNewPrinters[] =
1981 "cloud_print.user_settings.connectNewPrinters";
1982 // A boolean indicating whether we should ping XMPP connection.
1983 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
1984 // An int value indicating the average timeout between xmpp pings.
1985 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
1986 // Dictionary with settings stored by connector setup page.
1987 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
1988 // List of printers settings.
1989 const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
1990 // A boolean indicating whether submitting jobs to Google Cloud Print is
1991 // blocked by policy.
1992 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
1994 // Preference to store proxy settings.
1995 const char kProxy[] = "proxy";
1996 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
1998 #if defined(OS_MACOSX)
1999 // Set to true if the user removed our login item so we should not create a new
2000 // one when uninstalling background apps.
2001 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2003 // Set to true if Chrome already created a login item, so there's no need to
2004 // create another one.
2005 const char kChromeCreatedLoginItem[] =
2006 "background_mode.chrome_created_login_item";
2008 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2009 // time.
2010 const char kMigratedLoginItemPref[] =
2011 "background_mode.migrated_login_item_pref";
2013 // A boolean that tracks whether to show a notification when trying to quit
2014 // while there are apps running.
2015 const char kNotifyWhenAppsKeepChromeAlive[] =
2016 "apps.notify-when-apps-keep-chrome-alive";
2017 #endif
2019 // Set to true if background mode is enabled on this browser.
2020 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2022 // Set to true if hardware acceleration mode is enabled on this browser.
2023 const char kHardwareAccelerationModeEnabled[] =
2024 "hardware_acceleration_mode.enabled";
2026 // Hardware acceleration mode from previous browser launch.
2027 const char kHardwareAccelerationModePrevious[] =
2028 "hardware_acceleration_mode_previous";
2030 // List of protocol handlers.
2031 const char kRegisteredProtocolHandlers[] =
2032 "custom_handlers.registered_protocol_handlers";
2034 // List of protocol handlers the user has requested not to be asked about again.
2035 const char kIgnoredProtocolHandlers[] =
2036 "custom_handlers.ignored_protocol_handlers";
2038 // List of protocol handlers registered by policy.
2039 const char kPolicyRegisteredProtocolHandlers[] =
2040 "custom_handlers.policy.registered_protocol_handlers";
2042 // List of protocol handlers the policy has requested to be ignored.
2043 const char kPolicyIgnoredProtocolHandlers[] =
2044 "custom_handlers.policy.ignored_protocol_handlers";
2046 // Whether user-specified handlers for protocols and content types can be
2047 // specified.
2048 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2050 // Integer that specifies the policy refresh rate for device-policy in
2051 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2052 // by the cloud policy subsystem.
2053 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2055 // A boolean where true means that the browser has previously attempted to
2056 // enable autoupdate and failed, so the next out-of-date browser start should
2057 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2058 // instead.
2059 const char kAttemptedToEnableAutoupdate[] =
2060 "browser.attempted_to_enable_autoupdate";
2062 // The next media gallery ID to assign.
2063 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2065 // A list of dictionaries, where each dictionary represents a known media
2066 // gallery.
2067 const char kMediaGalleriesRememberedGalleries[] =
2068 "media_galleries.remembered_galleries";
2070 // The last time a media scan completed.
2071 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2073 #if defined(USE_ASH)
2074 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2075 // local variant is not synced and is used if set. If the local variant is not
2076 // set its value is set from the synced value (once prefs have been
2077 // synced). This gives a per-machine setting that is initialized from the last
2078 // set value.
2079 // These values are default on the machine but can be overridden by per-display
2080 // values in kShelfPreferences (unless overridden by managed policy).
2081 // String value corresponding to ash::Shell::ShelfAlignment.
2082 const char kShelfAlignment[] = "shelf_alignment";
2083 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2084 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2085 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2086 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2087 // This value stores chrome icon's index in the launcher. This should be handled
2088 // separately with app shortcut's index because of ShelfModel's backward
2089 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2090 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2091 // creating two chrome icons.
2092 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2093 // Dictionary value that holds per-display preference of shelf alignment and
2094 // auto-hide behavior. Key of the dictionary is the id of the display, and
2095 // its value is a dictionary whose keys are kShelfAlignment and
2096 // kShelfAutoHideBehavior.
2097 const char kShelfPreferences[] = "shelf_preferences";
2099 // Integer value in milliseconds indicating the length of time for which a
2100 // confirmation dialog should be shown when the user presses the logout button.
2101 // A value of 0 indicates that logout should happen immediately, without showing
2102 // a confirmation dialog.
2103 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2104 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2105 // Boolean value indicating whether to show a logout button in the ash tray.
2106 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2107 #endif
2109 #if defined(USE_AURA)
2110 // Tuning settings for gestures.
2111 const char kMaxSeparationForGestureTouchesInPixels[] =
2112 "gesture.max_separation_for_gesture_touches_in_pixels";
2113 const char kSemiLongPressTimeInMs[] = "gesture.semi_long_press_time_in_ms";
2114 const char kTabScrubActivationDelayInMs[] =
2115 "gesture.tab_scrub_activation_delay_in_ms";
2116 const char kFlingMaxCancelToDownTimeInMs[] =
2117 "gesture.fling_max_cancel_to_down_time_in_ms";
2118 const char kFlingMaxTapGapTimeInMs[] = "gesture.fling_max_tap_gap_time_in_ms";
2119 const char kOverscrollHorizontalThresholdComplete[] =
2120 "overscroll.horizontal_threshold_complete";
2121 const char kOverscrollVerticalThresholdComplete[] =
2122 "overscroll.vertical_threshold_complete";
2123 const char kOverscrollMinimumThresholdStart[] =
2124 "overscroll.minimum_threshold_start";
2125 const char kOverscrollMinimumThresholdStartTouchpad[] =
2126 "overscroll.minimum_threshold_start_touchpad";
2127 const char kOverscrollVerticalThresholdStart[] =
2128 "overscroll.vertical_threshold_start";
2129 const char kOverscrollHorizontalResistThreshold[] =
2130 "overscroll.horizontal_resist_threshold";
2131 const char kOverscrollVerticalResistThreshold[] =
2132 "overscroll.vertical_resist_threshold";
2133 #endif
2135 #if defined(OS_WIN)
2136 // Counts how many more times the 'profile on a network share' warning should be
2137 // shown to the user before the next silence period.
2138 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2139 // Tracks the time of the last shown warning. Used to reset
2140 // |network_profile.warnings_left| after a silence period.
2141 const char kNetworkProfileLastWarningTime[] =
2142 "network_profile.last_warning_time";
2143 #endif
2145 #if defined(OS_CHROMEOS)
2146 // The RLZ brand code, if enabled.
2147 const char kRLZBrand[] = "rlz.brand";
2148 // Whether RLZ pings are disabled.
2149 const char kRLZDisabled[] = "rlz.disabled";
2150 #endif
2152 #if defined(ENABLE_APP_LIST)
2153 // The directory in user data dir that contains the profile to be used with the
2154 // app launcher.
2155 const char kAppListProfile[] = "app_list.profile";
2157 // The number of times the app launcher was launched since last ping and
2158 // the time of the last ping.
2159 const char kAppListLaunchCount[] = "app_list.launch_count";
2160 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2162 // The number of times the an app was launched from the app launcher since last
2163 // ping and the time of the last ping.
2164 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2165 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2167 // A boolean that tracks whether the user has ever enabled the app launcher.
2168 const char kAppLauncherHasBeenEnabled[] =
2169 "apps.app_launcher.has_been_enabled";
2171 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2172 // install, command line, etc. For UMA.
2173 const char kAppListEnableMethod[] = "app_list.how_enabled";
2175 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2176 const char kAppListEnableTime[] = "app_list.when_enabled";
2178 // The last time the app list was launched.
2179 const char kAppListLastLaunchTime[] = "app_list.last_launch";
2181 #if defined(OS_MACOSX)
2182 // Integer representing the version of the app launcher shortcut installed on
2183 // the system. Incremented, e.g., when embedded icons change.
2184 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2185 #endif
2187 // A boolean identifying if we should show the app launcher promo or not.
2188 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2190 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2191 // a Drive app id and the value is the corresponding Chrome app id. The pref
2192 // is unsynable and used to track local mappings only.
2193 const char kAppLauncherDriveAppMapping[] =
2194 "apps.app_launcher.drive_app_mapping";
2196 // A list of Drive app ids that tracks the uninstallable Drive apps.
2197 const char kAppLauncherUninstalledDriveApps[] =
2198 "apps.app_launcher.uninstalled_drive_apps";
2199 #endif // defined(ENABLE_APP_LIST)
2201 #if defined(OS_WIN)
2202 // If set, the user requested to launch the app with this extension id while
2203 // in Metro mode, and then relaunched to Desktop mode to start it.
2204 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2206 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2207 // launch of the specified app when restarting Chrome in desktop mode.
2208 const char kAppLaunchForMetroRestartProfile[] =
2209 "apps.app_launch_for_metro_restart_profile";
2210 #endif
2212 // An integer that is incremented whenever changes are made to app shortcuts.
2213 // Increasing this causes all app shortcuts to be recreated.
2214 const char kAppShortcutsVersion[] = "apps.shortcuts_version";
2216 // How often the bubble has been shown.
2217 const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2219 // A string pref for storing the salt used to compute the pepper device ID.
2220 const char kDRMSalt[] = "settings.privacy.drm_salt";
2221 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2222 // enables the use of remote attestation for content protection.
2223 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2225 // An integer per-profile pref that signals if the watchdog extension is
2226 // installed and active. We need to know if the watchdog extension active for
2227 // ActivityLog initialization before the extension system is initialized.
2228 const char kWatchdogExtensionActive[] =
2229 "profile.extensions.activity_log.num_consumers_active";
2231 #if defined(OS_ANDROID)
2232 // A list of partner bookmark rename/remove mappings.
2233 // Each list item is a dictionary containing a "url", a "provider_title" and
2234 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2235 // given by the PartnerBookmarksProvider and either the user-visible renamed
2236 // title or an empty string if the bookmark node was removed.
2237 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2238 #endif
2240 // Whether DNS Quick Check is disabled in proxy resolution.
2241 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2243 // Whether Guest Mode is enabled within the browser.
2244 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2246 // Whether Adding a new Person is enabled within the user manager.
2247 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2249 // Device identifier used by Easy Unlock stored in local state. This id will be
2250 // combined with a user id, before being registered with the CryptAuth server,
2251 // so it can't correlate users on the same device.
2252 const char kEasyUnlockDeviceId[] = "easy_unlock.device_id";
2254 // A dictionary that maps user id to hardlock state.
2255 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
2257 // A dictionary that maps user id to public part of RSA key pair used by
2258 // Easy Sign-in for the user.
2259 const char kEasyUnlockLocalStateTpmKeys[] = "easy_unlock.public_tpm_keys";
2261 // A dictionary in local state containing each user's Easy Unlock profile
2262 // preferences, so they can be accessed outside of the user's profile. The value
2263 // is a dictionary containing an entry for each user. Each user's entry mirrors
2264 // their profile's Easy Unlock preferences.
2265 const char kEasyUnlockLocalStateUserPrefs[] = "easy_unlock.user_prefs";
2267 // Boolean that indicates whether elevation is needed to recover Chrome upgrade.
2268 const char kRecoveryComponentNeedsElevation[] =
2269 "recovery_component.needs_elevation";
2271 // A dictionary that maps from supervised user whitelist IDs to their properties
2272 // (name and a list of clients that registered the whitelist).
2273 const char kRegisteredSupervisedUserWhitelists[] =
2274 "supervised_users.whitelists";
2276 #if defined(ENABLE_EXTENSIONS)
2277 // Policy that indicates how to handle animated images.
2278 const char kAnimationPolicy[] = "settings.a11y.animation_policy";
2279 #endif
2281 } // namespace prefs