[Easy Unlock] Fix a DCHECK: Load localized string correctly.
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blob5e2a324c5b8abbb3858e0df6f0c6eb85645364ca
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
15 // A string property indicating whether default apps should be installed
16 // in this profile. Use the value "install" to enable defaults apps, or
17 // "noinstall" to disable them. This property is usually set in the
18 // master_preferences and copied into the profile preferences on first run.
19 // Defaults apps are installed only when creating a new profile.
20 const char kDefaultApps[] = "default_apps";
22 // Whether we have installed default apps yet in this profile.
23 const char kDefaultAppsInstalled[] = "default_apps_installed";
25 // Disables screenshot accelerators and extension APIs.
26 // This setting resides both in profile prefs and local state. Accelerator
27 // handling code reads local state, while extension APIs use profile pref.
28 const char kDisableScreenshots[] = "disable_screenshots";
30 // If set to true profiles are created in ephemeral mode and do not store their
31 // data in the profile folder on disk but only in memory.
32 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
34 // A boolean specifying whether the New Tab page is the home page or not.
35 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
37 // This is the URL of the page to load when opening new tabs.
38 const char kHomePage[] = "homepage";
40 // An integer that keeps track of the profile icon version. This allows us to
41 // determine the state of the profile icon for icon format changes.
42 const char kProfileIconVersion[] = "profile.icon_version";
44 // Used to determine if the last session exited cleanly. Set to false when
45 // first opened, and to true when closing. On startup if the value is false,
46 // it means the profile didn't exit cleanly.
47 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards
48 // compatibility.
49 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
51 // A string pref whose values is one of the values defined by
52 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
53 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
54 // shutdown. Used to determine the exit type the last time the profile was open.
55 const char kSessionExitType[] = "profile.exit_type";
57 // An integer pref. Holds one of several values:
58 // 0: (deprecated) open the homepage on startup.
59 // 1: restore the last session.
60 // 2: this was used to indicate a specific session should be restored. It is
61 // no longer used, but saved to avoid conflict with old preferences.
62 // 3: unused, previously indicated the user wants to restore a saved session.
63 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
64 // 5: open the New Tab Page on startup.
65 const char kRestoreOnStartup[] = "session.restore_on_startup";
67 // A preference to keep track of whether we have already checked whether we
68 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
69 // We only need to do this check once, on upgrade from m18 or lower to m19 or
70 // higher.
71 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
73 // Serialized migration time of kURLsToRestoreOnStartup (see
74 // base::Time::ToInternalValue for details on serialization format).
75 const char kRestoreStartupURLsMigrationTime[] =
76 "session.startup_urls_migration_time";
78 // The URLs to restore on startup or when the home button is pressed. The URLs
79 // are only restored on startup if kRestoreOnStartup is 4.
80 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
82 // Old startup url pref name for kURLsToRestoreOnStartup.
83 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
85 // Stores the email address associated with the google account of the custodian
86 // of the supervised user, set when the supervised user is created.
87 const char kSupervisedUserCustodianEmail[] = "profile.managed.custodian_email";
89 // Stores the display name associated with the google account of the custodian
90 // of the supervised user, updated (if possible) each time the supervised user
91 // starts a session.
92 const char kSupervisedUserCustodianName[] = "profile.managed.custodian_name";
94 // Stores the URL of the profile image associated with the google account of the
95 // custodian of the supervised user.
96 const char kSupervisedUserCustodianProfileImageURL[] =
97 "profile.managed.custodian_profile_image_url";
99 // Stores the URL of the profile associated with the google account of the
100 // custodian of the supervised user.
101 const char kSupervisedUserCustodianProfileURL[] =
102 "profile.managed.custodian_profile_url";
104 // Maps host names to whether the host is manually allowed or blocked.
105 const char kSupervisedUserManualHosts[] = "profile.managed.manual_hosts";
107 // Maps URLs to whether the URL is manually allowed or blocked.
108 const char kSupervisedUserManualURLs[] = "profile.managed.manual_urls";
110 // Stores the email address associated with the google account of the secondary
111 // custodian of the supervised user, set when the supervised user is created.
112 const char kSupervisedUserSecondCustodianEmail[] =
113 "profile.managed.second_custodian_email";
115 // Stores the display name associated with the google account of the secondary
116 // custodian of the supervised user, updated (if possible) each time the
117 // supervised user starts a session.
118 const char kSupervisedUserSecondCustodianName[] =
119 "profile.managed.second_custodian_name";
121 // Stores the URL of the profile image associated with the google account of the
122 // secondary custodian of the supervised user.
123 const char kSupervisedUserSecondCustodianProfileImageURL[] =
124 "profile.managed.second_custodian_profile_image_url";
126 // Stores the URL of the profile associated with the google account of the
127 // secondary custodian of the supervised user.
128 const char kSupervisedUserSecondCustodianProfileURL[] =
129 "profile.managed.second_custodian_profile_url";
131 // Stores settings that can be modified both by a supervised user and their
132 // manager. See SupervisedUserSharedSettingsService for a description of
133 // the format.
134 const char kSupervisedUserSharedSettings[] = "profile.managed.shared_settings";
136 // The application locale.
137 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
138 // and user's profile. Global property determines locale of login screen,
139 // while user's profile determines his personal locale preference.
140 const char kApplicationLocale[] = "intl.app_locale";
141 #if defined(OS_CHROMEOS)
142 // Locale preference of device' owner. ChromeOS device appears in this locale
143 // after startup/wakeup/signout.
144 const char kOwnerLocale[] = "intl.owner_locale";
145 // Locale accepted by user. Non-syncable.
146 // Used to determine whether we need to show Locale Change notification.
147 const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
148 // Non-syncable item.
149 // It is used in two distinct ways.
150 // (1) Used for two-step initialization of locale in ChromeOS
151 // because synchronization of kApplicationLocale is not instant.
152 // (2) Used to detect locale change. Locale change is detected by
153 // LocaleChangeGuard in case values of kApplicationLocaleBackup and
154 // kApplicationLocale are both non-empty and differ.
155 // Following is a table showing how state of those prefs may change upon
156 // common real-life use cases:
157 // AppLocale Backup Accepted
158 // Initial login - A -
159 // Sync B A -
160 // Accept (B) B B B
161 // -----------------------------------------------------------
162 // Initial login - A -
163 // No sync and second login A A -
164 // Change options B B -
165 // -----------------------------------------------------------
166 // Initial login - A -
167 // Sync A A -
168 // Locale changed on login screen A C -
169 // Accept (A) A A A
170 // -----------------------------------------------------------
171 // Initial login - A -
172 // Sync B A -
173 // Revert A A -
174 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
175 #endif
177 // The default character encoding to assume for a web page in the
178 // absence of MIME charset specification
179 const char kDefaultCharset[] = "intl.charset_default";
181 // The value to use for Accept-Languages HTTP header when making an HTTP
182 // request.
183 const char kAcceptLanguages[] = "intl.accept_languages";
185 // The value to use for showing locale-dependent encoding list for different
186 // locale, it's initialized from the corresponding string resource that is
187 // stored in non-translatable part of the resource bundle.
188 const char kStaticEncodings[] = "intl.static_encodings";
190 // If these change, the corresponding enums in the extension API
191 // experimental.fontSettings.json must also change.
192 const char* const kWebKitScriptsForFontFamilyMaps[] = {
193 #define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
194 #include "chrome/common/pref_font_script_names-inl.h"
195 ALL_FONT_SCRIPTS("unused param")
196 #undef EXPAND_SCRIPT_FONT
199 const size_t kWebKitScriptsForFontFamilyMapsLength =
200 arraysize(kWebKitScriptsForFontFamilyMaps);
202 // Strings for WebKit font family preferences. If these change, the pref prefix
203 // in pref_names_util.cc and the pref format in font_settings_api.cc must also
204 // change.
205 const char kWebKitStandardFontFamilyMap[] =
206 WEBKIT_WEBPREFS_FONTS_STANDARD;
207 const char kWebKitFixedFontFamilyMap[] =
208 WEBKIT_WEBPREFS_FONTS_FIXED;
209 const char kWebKitSerifFontFamilyMap[] =
210 WEBKIT_WEBPREFS_FONTS_SERIF;
211 const char kWebKitSansSerifFontFamilyMap[] =
212 WEBKIT_WEBPREFS_FONTS_SANSERIF;
213 const char kWebKitCursiveFontFamilyMap[] =
214 WEBKIT_WEBPREFS_FONTS_CURSIVE;
215 const char kWebKitFantasyFontFamilyMap[] =
216 WEBKIT_WEBPREFS_FONTS_FANTASY;
217 const char kWebKitPictographFontFamilyMap[] =
218 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
219 const char kWebKitStandardFontFamilyArabic[] =
220 "webkit.webprefs.fonts.standard.Arab";
221 const char kWebKitFixedFontFamilyArabic[] =
222 "webkit.webprefs.fonts.fixed.Arab";
223 const char kWebKitSerifFontFamilyArabic[] =
224 "webkit.webprefs.fonts.serif.Arab";
225 const char kWebKitSansSerifFontFamilyArabic[] =
226 "webkit.webprefs.fonts.sansserif.Arab";
227 const char kWebKitStandardFontFamilyCyrillic[] =
228 "webkit.webprefs.fonts.standard.Cyrl";
229 const char kWebKitFixedFontFamilyCyrillic[] =
230 "webkit.webprefs.fonts.fixed.Cyrl";
231 const char kWebKitSerifFontFamilyCyrillic[] =
232 "webkit.webprefs.fonts.serif.Cyrl";
233 const char kWebKitSansSerifFontFamilyCyrillic[] =
234 "webkit.webprefs.fonts.sansserif.Cyrl";
235 const char kWebKitStandardFontFamilyGreek[] =
236 "webkit.webprefs.fonts.standard.Grek";
237 const char kWebKitFixedFontFamilyGreek[] =
238 "webkit.webprefs.fonts.fixed.Grek";
239 const char kWebKitSerifFontFamilyGreek[] =
240 "webkit.webprefs.fonts.serif.Grek";
241 const char kWebKitSansSerifFontFamilyGreek[] =
242 "webkit.webprefs.fonts.sansserif.Grek";
243 const char kWebKitStandardFontFamilyJapanese[] =
244 "webkit.webprefs.fonts.standard.Jpan";
245 const char kWebKitFixedFontFamilyJapanese[] =
246 "webkit.webprefs.fonts.fixed.Jpan";
247 const char kWebKitSerifFontFamilyJapanese[] =
248 "webkit.webprefs.fonts.serif.Jpan";
249 const char kWebKitSansSerifFontFamilyJapanese[] =
250 "webkit.webprefs.fonts.sansserif.Jpan";
251 const char kWebKitStandardFontFamilyKorean[] =
252 "webkit.webprefs.fonts.standard.Hang";
253 const char kWebKitFixedFontFamilyKorean[] =
254 "webkit.webprefs.fonts.fixed.Hang";
255 const char kWebKitSerifFontFamilyKorean[] =
256 "webkit.webprefs.fonts.serif.Hang";
257 const char kWebKitSansSerifFontFamilyKorean[] =
258 "webkit.webprefs.fonts.sansserif.Hang";
259 const char kWebKitCursiveFontFamilyKorean[] =
260 "webkit.webprefs.fonts.cursive.Hang";
261 const char kWebKitStandardFontFamilySimplifiedHan[] =
262 "webkit.webprefs.fonts.standard.Hans";
263 const char kWebKitFixedFontFamilySimplifiedHan[] =
264 "webkit.webprefs.fonts.fixed.Hans";
265 const char kWebKitSerifFontFamilySimplifiedHan[] =
266 "webkit.webprefs.fonts.serif.Hans";
267 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
268 "webkit.webprefs.fonts.sansserif.Hans";
269 const char kWebKitStandardFontFamilyTraditionalHan[] =
270 "webkit.webprefs.fonts.standard.Hant";
271 const char kWebKitFixedFontFamilyTraditionalHan[] =
272 "webkit.webprefs.fonts.fixed.Hant";
273 const char kWebKitSerifFontFamilyTraditionalHan[] =
274 "webkit.webprefs.fonts.serif.Hant";
275 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
276 "webkit.webprefs.fonts.sansserif.Hant";
278 // WebKit preferences.
279 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
280 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
281 const char kWebKitShrinksStandaloneImagesToFit[] =
282 "webkit.webprefs.shrinks_standalone_images_to_fit";
283 const char kWebKitUsesUniversalDetector[] =
284 "webkit.webprefs.uses_universal_detector";
285 const char kWebKitTextAreasAreResizable[] =
286 "webkit.webprefs.text_areas_are_resizable";
287 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
288 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
289 const char kWebKitAllowDisplayingInsecureContent[] =
290 "webkit.webprefs.allow_displaying_insecure_content";
291 const char kWebKitAllowRunningInsecureContent[] =
292 "webkit.webprefs.allow_running_insecure_content";
293 #if defined(OS_ANDROID)
294 const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
295 const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
296 const char kWebKitPasswordEchoEnabled[] =
297 "webkit.webprefs.password_echo_enabled";
298 #endif
300 const char kWebKitCommonScript[] = "Zyyy";
301 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
302 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
303 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
304 const char kWebKitSansSerifFontFamily[] =
305 "webkit.webprefs.fonts.sansserif.Zyyy";
306 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
307 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
308 const char kWebKitPictographFontFamily[] =
309 "webkit.webprefs.fonts.pictograph.Zyyy";
310 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
311 const char kWebKitDefaultFixedFontSize[] =
312 "webkit.webprefs.default_fixed_font_size";
313 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
314 const char kWebKitMinimumLogicalFontSize[] =
315 "webkit.webprefs.minimum_logical_font_size";
316 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
317 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
318 "webkit.webprefs.javascript_can_open_windows_automatically";
319 const char kWebKitLoadsImagesAutomatically[] =
320 "webkit.webprefs.loads_images_automatically";
321 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
323 // Boolean that is true when SafeBrowsing is enabled.
324 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
326 // Boolean that tell us whether Safe Browsing extended reporting is enabled.
327 const char kSafeBrowsingExtendedReportingEnabled[] =
328 "safebrowsing.extended_reporting_enabled";
330 // Boolean that is true when the SafeBrowsing interstitial should not allow
331 // users to proceed anyway.
332 const char kSafeBrowsingProceedAnywayDisabled[] =
333 "safebrowsing.proceed_anyway_disabled";
335 // Boolean that is true when SafeBrowsing has sent an incident report.
336 const char kSafeBrowsingIncidentReportSent[] =
337 "safebrowsing.incident_report_sent";
339 // A dictionary mapping incident types to a dict of incident key:digest pairs.
340 const char kSafeBrowsingIncidentsSent[] = "safebrowsing.incidents_sent";
342 // Enum that specifies whether Incognito mode is:
343 // 0 - Enabled. Default behaviour. Default mode is available on demand.
344 // 1 - Disabled. Used cannot browse pages in Incognito mode.
345 // 2 - Forced. All pages/sessions are forced into Incognito.
346 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
348 // Boolean that is true when Suggest support is enabled.
349 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
351 #if defined(OS_ANDROID)
352 // String indicating the Contextual Search enabled state.
353 // "false" - opt-out (disabled)
354 // "" (empty string) - undecided
355 // "true" - opt-in (enabled)
356 const char kContextualSearchEnabled[] = "search.contextual_search_enabled";
357 #endif
359 // Boolean that indicates whether the browser should put up a confirmation
360 // window when the user is attempting to quit. Mac only.
361 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
363 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
364 // blocking policy. This has been superseded by kDefaultContentSettings +
365 // kBlockThirdPartyCookies.
366 // 0 - allow all cookies.
367 // 1 - block third-party cookies
368 // 2 - block all cookies
369 const char kCookieBehavior[] = "security.cookie_behavior";
371 // Boolean which specifies whether we should ask the user if we should download
372 // a file (true) or just download it automatically.
373 const char kPromptForDownload[] = "download.prompt_for_download";
375 // A boolean pref set to true if we're using Link Doctor error pages.
376 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
378 // OBSOLETE: new pref now stored with user prefs instead of profile, as
379 // kDnsPrefetchingStartupList.
380 const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
382 // An adaptively identified list of domain names to be pre-fetched during the
383 // next startup, based on what was actually needed during this startup.
384 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
386 // OBSOLETE: new pref now stored with user prefs instead of profile, as
387 // kDnsPrefetchingHostReferralList.
388 const char kDnsHostReferralList[] = "HostReferralList";
390 // A list of host names used to fetch web pages, and their commonly used
391 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
392 // preconnecting to, such sub-resource hostnames).
393 // This list is adaptively grown and pruned.
394 const char kDnsPrefetchingHostReferralList[] =
395 "dns_prefetching.host_referral_list";
397 // Disables the SPDY protocol.
398 const char kDisableSpdy[] = "spdy.disabled";
400 // Prefs for persisting HttpServerProperties.
401 const char kHttpServerProperties[] = "net.http_server_properties";
403 // Prefs for server names that support SPDY protocol.
404 const char kSpdyServers[] = "spdy.servers";
406 // Prefs for servers that support Alternate-Protocol.
407 const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
409 // Disables the listed protocol schemes.
410 const char kDisabledSchemes[] = "protocol.disabled_schemes";
412 #if defined(OS_ANDROID) || defined(OS_IOS)
413 // Last time that a check for cloud policy management was done. This time is
414 // recorded on Android so that retries aren't attempted on every startup.
415 // Instead the cloud policy registration is retried at least 1 or 3 days later.
416 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
417 #endif
419 // Prefix URL for the experimental Instant ZeroSuggest provider.
420 const char kInstantUIZeroSuggestUrlPrefix[] =
421 "instant_ui.zero_suggest_url_prefix";
423 // Used to migrate preferences from local state to user preferences to
424 // enable multiple profiles.
425 // BITMASK with possible values (see browser_prefs.cc for enum):
426 // 0: No preferences migrated.
427 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
428 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
429 // kBrowserWindowPlacement
430 const char kMultipleProfilePrefMigration[] =
431 "local_state.multiple_profile_prefs_version";
433 // A boolean pref set to true if prediction of network actions is allowed.
434 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
435 // of web pages, and resource prefetching.
436 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
437 // preferences are not lost.
438 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions
439 // is functioning as per crbug.com/334602.
440 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
442 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
443 // if prediction of network actions is allowed, depending on network type.
444 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
445 // of web pages, and resource prefetching.
446 // TODO(bnc): Implement this preference as per crbug.com/334602.
447 const char kNetworkPredictionOptions[] = "net.network_prediction_options";
449 // An integer representing the state of the default apps installation process.
450 // This value is persisted in the profile's user preferences because the process
451 // is async, and the user may have stopped chrome in the middle. The next time
452 // the profile is opened, the process will continue from where it left off.
454 // See possible values in external_provider_impl.cc.
455 const char kDefaultAppsInstallState[] = "default_apps_install_state";
457 // A boolean pref set to true if the Chrome Web Store icons should be hidden
458 // from the New Tab Page and app launcher.
459 const char kHideWebStoreIcon[] = "hide_web_store_icon";
461 #if defined(OS_CHROMEOS)
462 // A dictionary pref to hold the mute setting for all the currently known
463 // audio devices.
464 const char kAudioDevicesMute[] = "settings.audio.devices.mute";
466 // A dictionary pref storing the volume settings for all the currently known
467 // audio devices.
468 const char kAudioDevicesVolumePercent[] =
469 "settings.audio.devices.volume_percent";
471 // An integer pref to initially mute volume if 1. This pref is ignored if
472 // |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
473 // when the policy is lifted the original mute state is restored. This setting
474 // is here only for migration purposes now. It is being replaced by the
475 // |kAudioDevicesMute| setting.
476 const char kAudioMute[] = "settings.audio.mute";
478 // A double pref storing the user-requested volume. This setting is here only
479 // for migration purposes now. It is being replaced by the
480 // |kAudioDevicesVolumePercent| setting.
481 const char kAudioVolumePercent[] = "settings.audio.volume_percent";
483 // An integer pref to record user's spring charger check result.
484 // 0 - unknown charger, not checked yet.
485 // 1 - confirmed safe charger.
486 // 2 - confirmed original charger and declined to order new charger.
487 // 3 - confirmed original charger and ordered new charger online.
488 // 4 - confirmed original charger and ordered new charger by phone.
489 // 5 - confirmed original charger, ordered a new one online, but continue to use
490 // the old one.
491 // 6 - confirmed original charger, ordered a new one by phone, but continue to
492 // use the old one.
493 const char kSpringChargerCheck[] = "settings.spring_charger.check_result";
495 // A boolean pref set to true if touchpad tap-to-click is enabled.
496 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
498 // A boolean pref set to true if touchpad tap-dragging is enabled.
499 const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
501 // A boolean pref set to true if touchpad three-finger-click is enabled.
502 const char kEnableTouchpadThreeFingerClick[] =
503 "settings.touchpad.enable_three_finger_click";
505 // A boolean pref set to true if touchpad natural scrolling is enabled.
506 const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
508 // A boolean pref set to true if primary mouse button is the left button.
509 const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
511 // A integer pref for the touchpad sensitivity.
512 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
514 // A integer pref for the touchpad sensitivity.
515 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
517 // A boolean pref set to true if time should be displayed in 24-hour clock.
518 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
520 // A boolean pref to disable Google Drive integration.
521 // The pref prefix should remain as "gdata" for backward compatibility.
522 const char kDisableDrive[] = "gdata.disabled";
524 // A boolean pref to disable Drive over cellular connections.
525 // The pref prefix should remain as "gdata" for backward compatibility.
526 const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
528 // A boolean pref to disable hosted files on Drive.
529 // The pref prefix should remain as "gdata" for backward compatibility.
530 const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
532 // A string pref set to the current input method.
533 const char kLanguageCurrentInputMethod[] =
534 "settings.language.current_input_method";
536 // A string pref set to the previous input method.
537 const char kLanguagePreviousInputMethod[] =
538 "settings.language.previous_input_method";
540 // A string pref (comma-separated list) set to the "next engine in menu"
541 // hot-key lists.
542 const char kLanguageHotkeyNextEngineInMenu[] =
543 "settings.language.hotkey_next_engine_in_menu";
545 // A string pref (comma-separated list) set to the "previous engine"
546 // hot-key lists.
547 const char kLanguageHotkeyPreviousEngine[] =
548 "settings.language.hotkey_previous_engine";
550 // A string pref (comma-separated list) set to the preferred language IDs
551 // (ex. "en-US,fr,ko").
552 const char kLanguagePreferredLanguages[] =
553 "settings.language.preferred_languages";
555 // A string pref (comma-separated list) set to the preloaded (active) input
556 // method IDs (ex. "pinyin,mozc").
557 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
559 // A List pref (comma-separated list) set to the extension IMEs to be enabled.
560 const char kLanguageEnabledExtensionImes[] =
561 "settings.language.enabled_extension_imes";
563 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
564 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
565 // src/chrome/browser/chromeos/input_method/xkeyboard.h
566 const char kLanguageRemapSearchKeyTo[] =
567 // Note: we no longer use XKB for remapping these keys, but we can't change
568 // the pref names since the names are already synced with the cloud.
569 "settings.language.xkb_remap_search_key_to";
570 const char kLanguageRemapControlKeyTo[] =
571 "settings.language.xkb_remap_control_key_to";
572 const char kLanguageRemapAltKeyTo[] =
573 "settings.language.xkb_remap_alt_key_to";
574 const char kLanguageRemapCapsLockKeyTo[] =
575 "settings.language.remap_caps_lock_key_to";
576 const char kLanguageRemapDiamondKeyTo[] =
577 "settings.language.remap_diamond_key_to";
579 // A boolean pref that causes top-row keys to be interpreted as function keys
580 // instead of as media keys.
581 const char kLanguageSendFunctionKeys[] =
582 "settings.language.send_function_keys";
584 // A boolean pref which determines whether key repeat is enabled.
585 const char kLanguageXkbAutoRepeatEnabled[] =
586 "settings.language.xkb_auto_repeat_enabled_r2";
587 // A integer pref which determines key repeat delay (in ms).
588 const char kLanguageXkbAutoRepeatDelay[] =
589 "settings.language.xkb_auto_repeat_delay_r2";
590 // A integer pref which determines key repeat interval (in ms).
591 const char kLanguageXkbAutoRepeatInterval[] =
592 "settings.language.xkb_auto_repeat_interval_r2";
593 // "_r2" suffixes were added to the three prefs above when we changed the
594 // preferences to not be user-configurable or sync with the cloud. The prefs are
595 // now user-configurable and syncable again, but we don't want to overwrite the
596 // current values with the old synced values, so we continue to use this suffix.
598 // A boolean pref which determines whether the large cursor feature is enabled.
599 const char kAccessibilityLargeCursorEnabled[] =
600 "settings.a11y.large_cursor_enabled";
602 // A boolean pref which determines whether the sticky keys feature is enabled.
603 const char kAccessibilityStickyKeysEnabled[] =
604 "settings.a11y.sticky_keys_enabled";
605 // A boolean pref which determines whether spoken feedback is enabled.
606 const char kAccessibilitySpokenFeedbackEnabled[] = "settings.accessibility";
607 // A boolean pref which determines whether high conrast is enabled.
608 const char kAccessibilityHighContrastEnabled[] =
609 "settings.a11y.high_contrast_enabled";
610 // A boolean pref which determines whether screen magnifier is enabled.
611 const char kAccessibilityScreenMagnifierEnabled[] =
612 "settings.a11y.screen_magnifier";
613 // A integer pref which determines what type of screen magnifier is enabled.
614 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
615 // we are using another name pref here.
616 const char kAccessibilityScreenMagnifierType[] =
617 "settings.a11y.screen_magnifier_type2";
618 // A double pref which determines a zooming scale of the screen magnifier.
619 const char kAccessibilityScreenMagnifierScale[] =
620 "settings.a11y.screen_magnifier_scale";
621 // A boolean pref which determines whether the virtual keyboard is enabled for
622 // accessibility. This feature is separate from displaying an onscreen keyboard
623 // due to lack of a physical keyboard.
624 const char kAccessibilityVirtualKeyboardEnabled[] =
625 "settings.a11y.virtual_keyboard";
626 // A boolean pref which determines whether autoclick is enabled.
627 const char kAccessibilityAutoclickEnabled[] = "settings.a11y.autoclick";
628 // An integer pref which determines time in ms between when the mouse cursor
629 // stops and when an autoclick is triggered.
630 const char kAccessibilityAutoclickDelayMs[] =
631 "settings.a11y.autoclick_delay_ms";
632 // A boolean pref which determines whether the accessibility menu shows
633 // regardless of the state of a11y features.
634 const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
636 // A boolean pref which turns on Advanced Filesystem
637 // (USB support, SD card, etc).
638 const char kLabsAdvancedFilesystemEnabled[] =
639 "settings.labs.advanced_filesystem";
641 // A boolean pref which turns on the mediaplayer.
642 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
644 // A boolean pref that turns on automatic screen locking.
645 const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
647 // A boolean pref of whether to show mobile plan notifications.
648 const char kShowPlanNotifications[] =
649 "settings.internet.mobile.show_plan_notifications";
651 // A boolean pref of whether to show 3G promo notification.
652 const char kShow3gPromoNotification[] =
653 "settings.internet.mobile.show_3g_promo_notification";
655 // A string pref that contains version where "What's new" promo was shown.
656 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
658 // A boolean pref that controls whether proxy settings from shared network
659 // settings (accordingly from device policy) are applied or ignored.
660 const char kUseSharedProxies[] = "settings.use_shared_proxies";
662 // Power state of the current displays from the last run.
663 const char kDisplayPowerState[] = "settings.display.power_state";
664 // A dictionary pref that stores per display preferences.
665 const char kDisplayProperties[] = "settings.display.properties";
667 // A dictionary pref that specifies per-display layout/offset information.
668 // Its key is the ID of the display and its value is a dictionary for the
669 // layout/offset information.
670 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
672 // A dictionary pref that specifies the state of the rotation lock, and the
673 // display orientation, for the internal display.
674 const char kDisplayRotationLock[] = "settings.display.rotation_lock";
676 // A boolean pref indicating whether user activity has been observed in the
677 // current session already. The pref is used to restore information about user
678 // activity after browser crashes.
679 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
681 // A preference to keep track of the session start time. If the session length
682 // limit is configured to start running after initial user activity has been
683 // observed, the pref is set after the first user activity in a session.
684 // Otherwise, it is set immediately after session start. The pref is used to
685 // restore the session start time after browser crashes. The time is expressed
686 // as the serialization obtained from base::TimeTicks::ToInternalValue().
687 const char kSessionStartTime[] = "session.start_time";
689 // Holds the maximum session time in milliseconds. If this pref is set, the
690 // user is logged out when the maximum session time is reached. The user is
691 // informed about the remaining time by a countdown timer shown in the ash
692 // system tray.
693 const char kSessionLengthLimit[] = "session.length_limit";
695 // Whether the session length limit should start running only after the first
696 // user activity has been observed in a session.
697 const char kSessionWaitForInitialUserActivity[] =
698 "session.wait_for_initial_user_activity";
700 // Inactivity time in milliseconds while the system is on AC power before
701 // the screen should be dimmed, turned off, or locked, before an
702 // IdleActionImminent D-Bus signal should be sent, or before
703 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
704 // kPowerAcIdleDelayMs).
705 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
706 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
707 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
708 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
709 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
711 // Similar delays while the system is on battery power.
712 const char kPowerBatteryScreenDimDelayMs[] =
713 "power.battery_screen_dim_delay_ms";
714 const char kPowerBatteryScreenOffDelayMs[] =
715 "power.battery_screen_off_delay_ms";
716 const char kPowerBatteryScreenLockDelayMs[] =
717 "power.battery_screen_lock_delay_ms";
718 const char kPowerBatteryIdleWarningDelayMs[] =
719 "power.battery_idle_warning_delay_ms";
720 const char kPowerBatteryIdleDelayMs[] =
721 "power.battery_idle_delay_ms";
723 // Action that should be performed when the idle delay is reached while the
724 // system is on AC power or battery power.
725 // Values are from the chromeos::PowerPolicyController::Action enum.
726 const char kPowerAcIdleAction[] = "power.ac_idle_action";
727 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
729 // Action that should be performed when the lid is closed.
730 // Values are from the chromeos::PowerPolicyController::Action enum.
731 const char kPowerLidClosedAction[] = "power.lid_closed_action";
733 // Should audio and video activity be used to disable the above delays?
734 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
735 const char kPowerUseVideoActivity[] = "power.use_video_activity";
737 // Should extensions be able to use the chrome.power API to override
738 // screen-related power management (including locking)?
739 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
741 // Amount by which the screen-dim delay should be scaled while the system
742 // is in presentation mode. Values are limited to a minimum of 1.0.
743 const char kPowerPresentationScreenDimDelayFactor[] =
744 "power.presentation_screen_dim_delay_factor";
746 // Amount by which the screen-dim delay should be scaled when user activity is
747 // observed while the screen is dimmed or soon after the screen has been turned
748 // off. Values are limited to a minimum of 1.0.
749 const char kPowerUserActivityScreenDimDelayFactor[] =
750 "power.user_activity_screen_dim_delay_factor";
752 // Whether the power management delays should start running only after the first
753 // user activity has been observed in a session.
754 const char kPowerWaitForInitialUserActivity[] =
755 "power.wait_for_initial_user_activity";
757 // The URL from which the Terms of Service can be downloaded. The value is only
758 // honored for public accounts.
759 const char kTermsOfServiceURL[] = "terms_of_service.url";
761 // Indicates that the Profile has made navigations that used a certificate
762 // installed by the system administrator. If that is true then the local cache
763 // of remote data is tainted (e.g. shared scripts), and future navigations
764 // show a warning indicating that the organization may track the browsing
765 // session.
766 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
768 // Indicates whether the remote attestation is enabled for the user.
769 const char kAttestationEnabled[] = "attestation.enabled";
770 // The list of extensions allowed to use the platformKeysPrivate API for
771 // remote attestation.
772 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
774 // A boolean pref indicating whether the projection touch HUD is enabled or not.
775 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
777 // A pref to configure networks. Its value must be a list of
778 // NetworkConfigurations according to the OpenNetworkConfiguration
779 // specification.
780 // Currently, this pref is only used to store the policy. The user's
781 // configuration is still stored in Shill.
782 const char kOpenNetworkConfiguration[] = "onc";
784 // A boolean pref that tracks whether the user has already given consent for
785 // enabling remote attestation for content protection.
786 const char kRAConsentFirstTime[] = "settings.privacy.ra_consent";
788 // A boolean pref recording whether user has dismissed the multiprofile
789 // itroduction dialog show.
790 const char kMultiProfileNeverShowIntro[] =
791 "settings.multi_profile_never_show_intro";
793 // A boolean pref recording whether user has dismissed the multiprofile
794 // teleport warning dialog show.
795 const char kMultiProfileWarningShowDismissed[] =
796 "settings.multi_profile_warning_show_dismissed";
798 // A string pref that holds string enum values of how the user should behave
799 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
800 // for more details of the valid values.
801 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
803 // A boolean preference indicating whether user has seen first-run tutorial
804 // already.
805 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
807 // Indicates the amount of time for which a user authenticated via SAML can use
808 // offline authentication against a cached password before being forced to go
809 // through online authentication against GAIA again. The time is expressed in
810 // seconds. A value of -1 indicates no limit, allowing the user to use offline
811 // authentication indefinitely. The limit is in effect only if GAIA redirected
812 // the user to a SAML IdP during the last online authentication.
813 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
815 // A preference to keep track of the last time the user authenticated against
816 // GAIA using SAML. The preference is updated whenever the user authenticates
817 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
818 // current time. If GAIA performs the authentication itself, the preference is
819 // cleared. The time is expressed as the serialization obtained from
820 // base::Time::ToInternalValue().
821 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
823 // The total number of seconds that the machine has spent sitting on the
824 // OOBE screen.
825 const char kTimeOnOobe[] = "settings.time_on_oobe";
827 // The app/extension name who sets the current wallpaper. If current wallpaper
828 // is set by the component wallpaper picker, it is set to an empty string.
829 const char kCurrentWallpaperAppName[] = "wallpaper.app.name";
831 // List of mounted file systems via the File System Provider API. Used to
832 // restore them after a reboot.
833 const char kFileSystemProviderMounted[] = "file_system_provider.mounted";
835 // A boolean pref set to true if the virtual keyboard should be enabled.
836 const char kTouchVirtualKeyboardEnabled[] = "ui.touch_virtual_keyboard_enabled";
838 #endif // defined(OS_CHROMEOS)
840 // The disabled messages in IPC logging.
841 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
843 // A boolean pref set to true if a Home button to open the Home pages should be
844 // visible on the toolbar.
845 const char kShowHomeButton[] = "browser.show_home_button";
847 // A string value which saves short list of recently user selected encodings
848 // separated with comma punctuation mark.
849 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
851 // Clear Browsing Data dialog preferences.
852 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
853 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
854 const char kDeleteCache[] = "browser.clear_data.cache";
855 const char kDeleteCookies[] = "browser.clear_data.cookies";
856 const char kDeletePasswords[] = "browser.clear_data.passwords";
857 const char kDeleteFormData[] = "browser.clear_data.form_data";
858 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
859 const char kDeauthorizeContentLicenses[] =
860 "browser.clear_data.content_licenses";
861 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
862 const char kLastClearBrowsingDataTime[] =
863 "browser.last_clear_browsing_data_time";
865 // Boolean pref to define the default values for using spellchecker.
866 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
868 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
869 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
871 // Boolean pref to define the default values for using auto spell correct.
872 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
874 // Boolean pref to define the default setting for "block offensive words".
875 // The old key value is kept to avoid unnecessary migration code.
876 const char kSpeechRecognitionFilterProfanities[] =
877 "browser.speechinput_censor_results";
879 // List of speech recognition context names (extensions or websites) for which
880 // the tray notification balloon has already been shown.
881 const char kSpeechRecognitionTrayNotificationShownContexts[] =
882 "browser.speechinput_tray_notification_shown_contexts";
884 // Boolean controlling whether history saving is disabled.
885 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
887 // Boolean controlling whether deleting browsing and download history is
888 // permitted.
889 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
891 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
892 const char kForceSafeSearch[] = "settings.force_safesearch";
894 // Boolean controlling whether History is recorded and synced for
895 // supervised users.
896 const char kRecordHistory[] = "settings.history_recorded";
898 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
899 // Linux specific preference on whether we should match the system theme.
900 const char kUsesSystemTheme[] = "extensions.theme.use_system";
901 #endif
902 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
903 const char kCurrentThemeID[] = "extensions.theme.id";
904 const char kCurrentThemeImages[] = "extensions.theme.images";
905 const char kCurrentThemeColors[] = "extensions.theme.colors";
906 const char kCurrentThemeTints[] = "extensions.theme.tints";
907 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
909 // Boolean pref which persists whether the extensions_ui is in developer mode
910 // (showing developer packing tools and extensions details)
911 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
913 // Boolean pref which indicates whether the Chrome Apps & Extensions Developer
914 // Tool promotion has been dismissed by the user.
915 const char kExtensionsUIDismissedADTPromo[] =
916 "extensions.ui.dismissed_adt_promo";
918 // Dictionary pref that tracks which command belongs to which
919 // extension + named command pair.
920 const char kExtensionCommands[] = "extensions.commands";
922 // Pref containing the directory for internal plugins as written to the plugins
923 // list (below).
924 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
926 // List pref containing information (dictionaries) on plugins.
927 const char kPluginsPluginsList[] = "plugins.plugins_list";
929 // List pref containing names of plugins that are disabled by policy.
930 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
932 // List pref containing exceptions to the list of plugins disabled by policy.
933 const char kPluginsDisabledPluginsExceptions[] =
934 "plugins.plugins_disabled_exceptions";
936 // List pref containing names of plugins that are enabled by policy.
937 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
939 // When bundled NPAPI Flash is removed, if at that point it is enabled while
940 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
941 // want to do so only once.
942 const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
944 // In the early stage of component-updated PPAPI Flash, we did field trials in
945 // which it was set to disabled by default. The corresponding settings item may
946 // remain in some users' profiles. Currently it affects both the bundled and
947 // component-updated PPAPI Flash (since the two share the same enable/disable
948 // state). We want to remove this item to get those users to use PPAPI Flash.
949 // We will want to do so only once.
950 const char kPluginsRemovedOldComponentPepperFlashSettings[] =
951 "plugins.removed_old_component_pepper_flash_settings";
953 #if !defined(OS_ANDROID)
954 // Whether about:plugins is shown in the details mode or not.
955 const char kPluginsShowDetails[] = "plugins.show_details";
956 #endif
958 // Boolean that indicates whether outdated plugins are allowed or not.
959 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
961 // Boolean that indicates whether plugins that require authorization should
962 // be always allowed or not.
963 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
965 #if defined(ENABLE_PLUGIN_INSTALLATION)
966 // Dictionary holding plug-ins metadata.
967 const char kPluginsMetadata[] = "plugins.metadata";
969 // Last update time of plug-ins resource cache.
970 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
971 #endif
973 // Boolean that indicates whether we should check if we are the default browser
974 // on start-up.
975 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
977 // Policy setting whether default browser check should be disabled and default
978 // browser registration should take place.
979 const char kDefaultBrowserSettingEnabled[] =
980 "browser.default_browser_setting_enabled";
982 #if defined(OS_MACOSX)
983 // Boolean that indicates whether the application should show the info bar
984 // asking the user to set up automatic updates when Keystone promotion is
985 // required.
986 const char kShowUpdatePromotionInfoBar[] =
987 "browser.show_update_promotion_info_bar";
988 #endif
990 // Boolean that is false if we should show window manager decorations. If
991 // true, we draw a custom chrome frame (thicker title bar and blue border).
992 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
994 // Dictionary of content settings applied to all hosts by default.
995 const char kDefaultContentSettings[] = "profile.default_content_settings";
997 // Dictionary of content settings that can globally disallow all hosts by
998 // default. If a value is set, it means the setting is globally disallowed.
999 // If a value is not set, it means the setting is allowed.
1000 const char kOverrideContentSettings[] = "profile.override_content_settings";
1002 // Boolean indicating whether the clear on exit pref was migrated to content
1003 // settings yet.
1004 const char kContentSettingsClearOnExitMigrated[] =
1005 "profile.content_settings.clear_on_exit_migrated";
1007 // Version of the pattern format used to define content settings.
1008 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
1010 // Patterns for mapping origins to origin related settings. Default settings
1011 // will be applied to origins that don't match any of the patterns. The pattern
1012 // format used is defined by kContentSettingsVersion.
1013 const char kContentSettingsPatternPairs[] =
1014 "profile.content_settings.pattern_pairs";
1016 #if !defined(OS_ANDROID)
1017 // Which plugins have been whitelisted manually by the user.
1018 const char kContentSettingsPluginWhitelist[] =
1019 "profile.content_settings.plugin_whitelist";
1020 #endif
1022 // Boolean that is true if we should unconditionally block third-party cookies,
1023 // regardless of other content settings.
1024 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
1026 // Boolean that is true when all locally stored site data (e.g. cookies, local
1027 // storage, etc..) should be deleted on exit.
1028 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
1030 // Double that indicates the default zoom level.
1031 const char kDefaultZoomLevel[] = "profile.default_zoom_level";
1033 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
1034 // be displayed at the default zoom level.
1035 const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
1037 // A dictionary that tracks the default data model to use for each section of
1038 // the dialog.
1039 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1041 // Whether a user opted out of making purchases with Google Wallet; changed via
1042 // the autofill dialog's account chooser and set explicitly on dialog submission
1043 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1044 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1046 // Which GAIA users have accepted that use of Google Wallet implies their
1047 // location will be shared with fraud protection services.
1048 const char kAutofillDialogWalletLocationAcceptance[] =
1049 "autofill.wallet_location_disclosure";
1051 // Whether a user wants to save data locally in Autofill.
1052 const char kAutofillDialogSaveData[] = "autofill.save_data";
1054 // Whether the user has selected "Same as billing" for the shipping address when
1055 // using Google Wallet.
1056 const char kAutofillDialogWalletShippingSameAsBilling[] =
1057 "autofill.wallet_shipping_same_as_billing";
1059 // The number of times the generated credit card bubble has been shown.
1060 const char kAutofillGeneratedCardBubbleTimesShown[] =
1061 "autofill.generated_card_bubble_times_shown";
1063 // A dictionary that tracks the defaults to be set on the next invocation
1064 // of the requestAutocomplete dialog.
1065 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1067 #if !defined(OS_ANDROID)
1068 const char kPinnedTabs[] = "pinned_tabs";
1069 #endif
1071 #if defined(OS_ANDROID)
1072 // Boolean that controls the enabled-state of Geolocation in content.
1073 const char kGeolocationEnabled[] = "geolocation.enabled";
1074 #endif
1076 #if defined(ENABLE_GOOGLE_NOW)
1077 // Boolean that is true when Google services can use the user's location.
1078 const char kGoogleGeolocationAccessEnabled[] =
1079 "googlegeolocationaccess.enabled";
1080 #endif
1082 // The default audio capture device used by the Media content setting.
1083 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1085 // The default video capture device used by the Media content setting.
1086 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1088 // The salt used for creating random MediaSource IDs.
1089 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1091 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1092 const char kDisable3DAPIs[] = "disable_3d_apis";
1094 const char kEnableDeprecatedWebPlatformFeatures[] =
1095 "enable_deprecated_web_platform_features";
1097 // Whether to enable hyperlink auditing ("<a ping>").
1098 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1100 // Whether to enable sending referrers.
1101 const char kEnableReferrers[] = "enable_referrers";
1103 // Whether to send the DNT header.
1104 const char kEnableDoNotTrack[] = "enable_do_not_track";
1106 // GL_VENDOR string.
1107 const char kGLVendorString[] = "gl_vendor_string";
1109 // GL_RENDERER string.
1110 const char kGLRendererString[] = "gl_renderer_string";
1112 // GL_VERSION string.
1113 const char kGLVersionString[] = "gl_version_string";
1115 // Boolean that specifies whether to import the form data for autofill from the
1116 // default browser on first run.
1117 const char kImportAutofillFormData[] = "import_autofill_form_data";
1119 // Boolean that specifies whether to import bookmarks from the default browser
1120 // on first run.
1121 const char kImportBookmarks[] = "import_bookmarks";
1123 // Boolean that specifies whether to import the browsing history from the
1124 // default browser on first run.
1125 const char kImportHistory[] = "import_history";
1127 // Boolean that specifies whether to import the homepage from the default
1128 // browser on first run.
1129 const char kImportHomepage[] = "import_home_page";
1131 // Boolean that specifies whether to import the saved passwords from the default
1132 // browser on first run.
1133 const char kImportSavedPasswords[] = "import_saved_passwords";
1135 // Boolean that specifies whether to import the search engine from the default
1136 // browser on first run.
1137 const char kImportSearchEngine[] = "import_search_engine";
1139 // Profile avatar and name
1140 const char kProfileAvatarIndex[] = "profile.avatar_index";
1141 const char kProfileName[] = "profile.name";
1142 // Whether a profile is using a default avatar name (eg. Pickles or Person 1)
1143 // because it was randomly assigned at profile creation time.
1144 const char kProfileUsingDefaultName[] = "profile.using_default_name";
1145 // Whether a profile is using an avatar without having explicitely chosen it
1146 // (i.e. was assigned by default by legacy profile creation).
1147 const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
1148 const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
1150 // The supervised user ID.
1151 const char kSupervisedUserId[] = "profile.managed_user_id";
1153 // 64-bit integer serialization of the base::Time when the user's GAIA info
1154 // was last updated.
1155 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1157 // The URL from which the GAIA profile picture was downloaded. This is cached to
1158 // prevent the same picture from being downloaded multiple times.
1159 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1161 // Integer that specifies the number of times that we have shown the upgrade
1162 // tutorial card in the avatar menu bubble.
1163 const char kProfileAvatarTutorialShown[] =
1164 "profile.avatar_bubble_tutorial_shown";
1166 // Indicates if we've already shown a notification that high contrast
1167 // mode is on, recommending high-contrast extensions and themes.
1168 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1170 // Boolean controlling whether printing is enabled.
1171 const char kPrintingEnabled[] = "printing.enabled";
1173 // Boolean controlling whether print preview is disabled.
1174 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1176 // An integer pref specifying the fallback behavior for sites outside of content
1177 // packs. One of:
1178 // 0: Allow (does nothing)
1179 // 1: Warn.
1180 // 2: Block.
1181 const char kDefaultSupervisedUserFilteringBehavior[] =
1182 "profile.managed.default_filtering_behavior";
1184 // Whether this user is permitted to create supervised users.
1185 const char kSupervisedUserCreationAllowed[] =
1186 "profile.managed_user_creation_allowed";
1188 // List pref containing the users supervised by this user.
1189 const char kSupervisedUsers[] = "profile.managed_users";
1191 // String that indicates that the profile reset prompt has already been shown to
1192 // the user (profile).
1193 const char kProfileResetPromptMementoInProfilePrefs[] =
1194 "profile.reset_prompt_memento";
1196 // List pref containing the extension ids which are not allowed to send
1197 // notifications to the message center.
1198 const char kMessageCenterDisabledExtensionIds[] =
1199 "message_center.disabled_extension_ids";
1201 // List pref containing the system component ids which are not allowed to send
1202 // notifications to the message center.
1203 const char kMessageCenterDisabledSystemComponentIds[] =
1204 "message_center.disabled_system_component_ids";
1206 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1207 // by the user. Syncable.
1208 // Note: This is now read-only. The welcome notification writes the _local
1209 // version, below.
1210 extern const char kWelcomeNotificationDismissed[] =
1211 "message_center.welcome_notification_dismissed";
1213 // Boolean pref indicating the Chrome Now welcome notification was dismissed
1214 // by the user on this machine.
1215 extern const char kWelcomeNotificationDismissedLocal[] =
1216 "message_center.welcome_notification_dismissed_local";
1218 // Boolean pref indicating the welcome notification was previously popped up.
1219 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
1220 "message_center.welcome_notification_previously_popped_up";
1222 // Integer pref containing the expiration timestamp of the welcome notification.
1223 extern const char kWelcomeNotificationExpirationTimestamp[] =
1224 "message_center.welcome_notification_expiration_timestamp";
1226 // Boolean pref that determines whether the user can enter fullscreen mode.
1227 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1228 // platforms.
1229 extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1231 // Enable notifications for new devices on the local network that can be
1232 // registered to the user's account, e.g. Google Cloud Print printers.
1233 const char kLocalDiscoveryNotificationsEnabled[] =
1234 "local_discovery.notifications_enabled";
1236 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
1237 // a preference was reset.
1238 const char kPreferenceResetTime[] = "prefs.preference_reset_time";
1240 // The GCM channel's enabled state.
1241 const char kGCMChannelEnabled[] = "gcm.channel_enabled";
1243 // How many Service Workers are registered with the Push API (could be zero).
1244 const char kPushMessagingRegistrationCount[] =
1245 "gcm.push_messaging_registration_count";
1247 // Whether Easy Unlock is enabled.
1248 const char kEasyUnlockEnabled[] = "easy_unlock.enabled";
1250 // Whether to show the Easy Unlock first run tutorial.
1251 const char kEasyUnlockShowTutorial[] = "easy_unlock.show_tutorial";
1253 // Preference storing Easy Unlock pairing data.
1254 const char kEasyUnlockPairing[] = "easy_unlock.pairing";
1256 // Whether a user is allowed to use Easy Unlock.
1257 const char kEasyUnlockAllowed[] = "easy_unlock.allowed";
1259 // A cache of zero suggest results using JSON serialized into a string.
1260 const char kZeroSuggestCachedResults[] = "zerosuggest.cachedresults";
1262 // *************** LOCAL STATE ***************
1263 // These are attached to the machine/installation
1265 // A pref to configure networks device-wide. Its value must be a list of
1266 // NetworkConfigurations according to the OpenNetworkConfiguration
1267 // specification.
1268 // Currently, this pref is only used to store the policy. The user's
1269 // configuration is still stored in Shill.
1270 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1272 // Directory of the last profile used.
1273 const char kProfileLastUsed[] = "profile.last_used";
1275 // List of directories of the profiles last active.
1276 const char kProfilesLastActive[] = "profile.last_active_profiles";
1278 // Total number of profiles created for this Chrome build. Used to tag profile
1279 // directories.
1280 const char kProfilesNumCreated[] = "profile.profiles_created";
1282 // String containing the version of Chrome that the profile was created by.
1283 // If profile was created before this feature was added, this pref will default
1284 // to "1.0.0.0".
1285 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1287 // A map of profile data directory to cached information. This cache can be
1288 // used to display information about profiles without actually having to load
1289 // them.
1290 const char kProfileInfoCache[] = "profile.info_cache";
1292 // Dictionary that maps profile keys to strings that indicate that the profile
1293 // reset prompt has already been shown to the corresponding user (profile).
1294 // This is semantically similar to kProfileResetPromptMementoInProfilePrefs, see
1295 // chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h for an
1296 // explanation of why this redundancy is needed.
1297 const char kProfileResetPromptMementosInLocalState[] =
1298 "profile.reset_prompt_mementos";
1300 // Prefs for SSLConfigServicePref.
1301 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1302 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1303 "ssl.rev_checking.required_for_local_anchors";
1304 const char kSSLVersionMin[] = "ssl.version_min";
1305 const char kSSLVersionMax[] = "ssl.version_max";
1306 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1307 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1309 // Dictionary of dates when a site's SSL blocking interstitial was proceeded
1310 // through.
1311 const char kSSLBlockingBypassed[] = "ssl.ssl_blocking_bypassed";
1313 // A boolean pref of the EULA accepted flag.
1314 const char kEulaAccepted[] = "EulaAccepted";
1316 // Boolean that specifies whether or not crash reporting and metrics reporting
1317 // are sent over the network for analysis.
1318 const char kMetricsReportingEnabled[] =
1319 "user_experience_metrics.reporting_enabled";
1321 // Boolean that specifies whether or not crash reports are sent
1322 // over the network for analysis.
1323 #if defined(OS_ANDROID)
1324 const char kCrashReportingEnabled[] =
1325 "user_experience_metrics_crash.reporting_enabled";
1326 #endif
1328 // 64-bit integer serialization of the base::Time from the last successful seed
1329 // fetch (i.e. when the Variations server responds with 200 or 304).
1330 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1332 // String for the restrict parameter to be appended to the variations URL.
1333 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1335 // String serialized form of variations seed protobuf.
1336 const char kVariationsSeed[] = "variations_seed";
1338 // 64-bit integer serialization of the base::Time from the last seed received.
1339 const char kVariationsSeedDate[] = "variations_seed_date";
1341 // SHA-1 hash of the serialized variations seed data (hex encoded).
1342 const char kVariationsSeedHash[] = "variations_seed_hash";
1344 // Digital signature of the binary variations seed data, base64-encoded.
1345 const char kVariationsSeedSignature[] = "variations_seed_signature";
1347 // Number of times a page load event occurred since the last report.
1348 const char kStabilityPageLoadCount[] =
1349 "user_experience_metrics.stability.page_load_count";
1351 // Number of times a renderer process crashed since the last report.
1352 const char kStabilityRendererCrashCount[] =
1353 "user_experience_metrics.stability.renderer_crash_count";
1355 // Number of times an extension renderer process crashed since the last report.
1356 const char kStabilityExtensionRendererCrashCount[] =
1357 "user_experience_metrics.stability.extension_renderer_crash_count";
1359 // This is the location of a list of dictionaries of plugin stability stats.
1360 const char kStabilityPluginStats[] =
1361 "user_experience_metrics.stability.plugin_stats2";
1363 // Number of times the renderer has become non-responsive since the last
1364 // report.
1365 const char kStabilityRendererHangCount[] =
1366 "user_experience_metrics.stability.renderer_hang_count";
1368 // Total number of child process crashes (other than renderer / extension
1369 // renderer ones, and plugin children, which are counted separately) since the
1370 // last report.
1371 const char kStabilityChildProcessCrashCount[] =
1372 "user_experience_metrics.stability.child_process_crash_count";
1374 // On Chrome OS, total number of non-Chrome user process crashes
1375 // since the last report.
1376 const char kStabilityOtherUserCrashCount[] =
1377 "user_experience_metrics.stability.other_user_crash_count";
1379 // On Chrome OS, total number of kernel crashes since the last report.
1380 const char kStabilityKernelCrashCount[] =
1381 "user_experience_metrics.stability.kernel_crash_count";
1383 // On Chrome OS, total number of unclean system shutdowns since the
1384 // last report.
1385 const char kStabilitySystemUncleanShutdownCount[] =
1386 "user_experience_metrics.stability.system_unclean_shutdowns";
1388 #if defined(OS_ANDROID)
1389 // Activity type that is currently in the foreground for the UMA session.
1390 // Uses the ActivityTypeIds::Type enum.
1391 const char kStabilityForegroundActivityType[] =
1392 "user_experience_metrics.stability.current_foreground_activity_type";
1394 // Tracks which Activities were launched during the last session.
1395 // See |metrics_service_android.cc| for its usage.
1396 const char kStabilityLaunchedActivityFlags[] =
1397 "user_experience_metrics.stability.launched_activity_flags";
1399 // List pref: Counts how many times each Activity was launched.
1400 // Indexed into by ActivityTypeIds::Type.
1401 const char kStabilityLaunchedActivityCounts[] =
1402 "user_experience_metrics.stability.launched_activity_counts";
1404 // List pref: Counts how many times each Activity type was in the foreground
1405 // when a UMA session failed to be shut down properly.
1406 // Indexed into by ActivityTypeIds::Type.
1407 const char kStabilityCrashedActivityCounts[] =
1408 "user_experience_metrics.stability.crashed_activity_counts";
1409 #endif
1411 // The keys below are used for the dictionaries in the
1412 // kStabilityPluginStats list.
1413 const char kStabilityPluginName[] = "name";
1414 const char kStabilityPluginLaunches[] = "launches";
1415 const char kStabilityPluginInstances[] = "instances";
1416 const char kStabilityPluginCrashes[] = "crashes";
1417 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1419 // The keys below are strictly increasing counters over the lifetime of
1420 // a chrome installation. They are (optionally) sent up to the uninstall
1421 // survey in the event of uninstallation.
1422 const char kUninstallMetricsPageLoadCount[] =
1423 "uninstall_metrics.page_load_count";
1424 const char kUninstallLastLaunchTimeSec[] =
1425 "uninstall_metrics.last_launch_time_sec";
1426 const char kUninstallLastObservedRunTimeSec[] =
1427 "uninstall_metrics.last_observed_running_time_sec";
1429 // String containing the version of Chrome for which Chrome will not prompt the
1430 // user about setting Chrome as the default browser.
1431 const char kBrowserSuppressDefaultBrowserPrompt[] =
1432 "browser.suppress_default_browser_prompt_for_version";
1434 // A collection of position, size, and other data relating to the browser
1435 // window to restore on startup.
1436 const char kBrowserWindowPlacement[] = "browser.window_placement";
1438 // Browser window placement for popup windows.
1439 const char kBrowserWindowPlacementPopup[] = "browser.window_placement_popup";
1441 // A collection of position, size, and other data relating to the task
1442 // manager window to restore on startup.
1443 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1445 // A collection of position, size, and other data relating to app windows to
1446 // restore on startup.
1447 const char kAppWindowPlacement[] = "browser.app_window_placement";
1449 // An integer specifying the total number of bytes to be used by the
1450 // renderer's in-memory cache of objects.
1451 const char kMemoryCacheSize[] = "renderer.memory_cache.size";
1453 // String which specifies where to download files to by default.
1454 const char kDownloadDefaultDirectory[] = "download.default_directory";
1456 // Boolean that records if the download directory was changed by an
1457 // upgrade a unsafe location to a safe location.
1458 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1460 #if defined(OS_WIN)
1461 // Whether downloaded PDFs should be opened in Adobe Acrobat Reader.
1462 const char kOpenPdfDownloadInAdobeReader[] =
1463 "download.open_pdf_in_adobe_reader";
1464 #endif
1466 // String which specifies where to save html files to by default.
1467 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1469 // The type used to save the page. See the enum SavePackage::SavePackageType in
1470 // the chrome/browser/download/save_package.h for the possible values.
1471 const char kSaveFileType[] = "savefile.type";
1473 // String which specifies the last directory that was chosen for uploading
1474 // or opening a file.
1475 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1477 // Boolean that specifies if file selection dialogs are shown.
1478 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1480 // Map of default tasks, associated by MIME type.
1481 const char kDefaultTasksByMimeType[] =
1482 "filebrowser.tasks.default_by_mime_type";
1484 // Map of default tasks, associated by file suffix.
1485 const char kDefaultTasksBySuffix[] =
1486 "filebrowser.tasks.default_by_suffix";
1488 // Extensions which should be opened upon completion.
1489 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1491 // Integer which specifies the frequency in milliseconds for detecting whether
1492 // plugin windows are hung.
1493 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1495 // Integer which specifies the timeout value to be used for SendMessageTimeout
1496 // to detect a hung plugin window.
1497 const char kPluginMessageResponseTimeout[] =
1498 "browser.plugin_message_response_timeout";
1500 // String which represents the dictionary name for our spell-checker.
1501 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1503 // String which represents whether we use the spelling service.
1504 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1506 // Dictionary of schemes used by the external protocol handler.
1507 // The value is true if the scheme must be ignored.
1508 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1510 // Keys used for MAC handling of SafeBrowsing requests.
1511 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1512 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1514 // Integer that specifies the index of the tab the user was on when they
1515 // last visited the options window.
1516 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1518 // Integer that specifies the index of the tab the user was on when they
1519 // last visited the content settings window.
1520 const char kContentSettingsWindowLastTabIndex[] =
1521 "content_settings_window.last_tab_index";
1523 // Integer that specifies the index of the tab the user was on when they
1524 // last visited the Certificate Manager window.
1525 const char kCertificateManagerWindowLastTabIndex[] =
1526 "certificate_manager_window.last_tab_index";
1528 // Integer that specifies if the first run bubble should be shown.
1529 // This preference is only registered by the first-run procedure.
1530 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1532 // String containing the last known intranet redirect URL, if any. See
1533 // intranet_redirect_detector.h for more information.
1534 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1536 // An enum value of how the browser was shut down (see browser_shutdown.h).
1537 const char kShutdownType[] = "shutdown.type";
1538 // Number of processes that were open when the user shut down.
1539 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1540 // Number of processes that were shut down using the slow path.
1541 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1543 // Whether to restart the current Chrome session automatically as the last thing
1544 // before shutting everything down.
1545 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1547 // Set before autorestarting Chrome, cleared on clean exit.
1548 const char kWasRestarted[] = "was.restarted";
1550 #if defined(OS_WIN)
1551 // Preference to be used while relaunching Chrome. This preference dictates if
1552 // Chrome should be launched in Metro or Desktop mode.
1553 // For more info take a look at ChromeRelaunchMode enum.
1554 const char kRelaunchMode[] = "relaunch.mode";
1555 #endif
1557 // Placeholder preference for disabling voice / video chat if it is ever added.
1558 // Currently, this does not change any behavior.
1559 const char kDisableVideoAndChat[] = "disable_video_chat";
1561 // Whether Extensions are enabled.
1562 const char kDisableExtensions[] = "extensions.disabled";
1564 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1565 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1567 // Customized app page names that appear on the New Tab Page.
1568 const char kNtpAppPageNames[] = "ntp.app_page_names";
1570 // Keeps track of currently open tabs collapsed state in the Other Devices menu.
1571 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs";
1573 // Keeps track of which sessions are collapsed in the Other Devices menu.
1574 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1576 // Keeps track of recently closed tabs collapsed state in the Other Devices
1577 // menu.
1578 const char kNtpCollapsedRecentlyClosedTabs[] =
1579 "ntp.collapsed_recently_closed_tabs";
1581 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1582 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1584 // Keeps track of sync promo collapsed state in the Other Devices menu.
1585 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1587 // Serves dates to determine display of elements on the NTP.
1588 const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1590 // New Tab Page URLs that should not be shown as most visited thumbnails.
1591 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1593 // True if a desktop sync session was found for this user.
1594 const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1596 // Last time of update of promo_resource_cache.
1597 const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1599 // Which bookmarks folder should be visible on the new tab page v4.
1600 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1602 // Which page should be visible on the new tab page v4
1603 const char kNtpShownPage[] = "ntp.shown_page";
1605 // Serves tips for the NTP.
1606 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1608 // Boolean indicating whether the web store is active for the current locale.
1609 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1611 // A private RSA key for ADB handshake.
1612 const char kDevToolsAdbKey[] = "devtools.adb_key";
1614 const char kDevToolsDisabled[] = "devtools.disabled";
1616 // Determines whether devtools should be discovering usb devices for
1617 // remote debugging at chrome://inspect.
1618 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1619 "devtools.discover_usb_devices";
1621 // Maps of files edited locally using DevTools.
1622 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1624 // List of file system paths added in DevTools.
1625 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1627 // A boolean specifying whether dev tools window should be opened docked.
1628 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1630 // A boolean specifying whether port forwarding should be enabled.
1631 const char kDevToolsPortForwardingEnabled[] =
1632 "devtools.port_forwarding_enabled";
1634 // A boolean specifying whether default port forwarding configuration has been
1635 // set.
1636 const char kDevToolsPortForwardingDefaultSet[] =
1637 "devtools.port_forwarding_default_set";
1639 // A dictionary of port->location pairs for port forwarding.
1640 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1642 #if defined(OS_ANDROID)
1643 // A boolean specifying whether remote dev tools debugging is enabled.
1644 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1645 #endif
1647 // Boolean indicating that TiclInvalidationService should use GCM channel.
1648 // False or lack of settings means XMPPPushClient channel.
1649 const char kInvalidationServiceUseGCMChannel[] =
1650 "invalidation_service.use_gcm_channel";
1652 // Local hash of authentication password, used for off-line authentication
1653 // when on-line authentication is not available.
1654 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1656 #if !defined(OS_ANDROID)
1657 // Tracks the number of times that we have shown the sign in promo at startup.
1658 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1660 // Boolean tracking whether the user chose to skip the sign in promo.
1661 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1663 // Boolean that specifies if the sign in promo is allowed to show on first run.
1664 // This preference is specified in the master preference file to suppress the
1665 // sign in promo for some installations.
1666 const char kSignInPromoShowOnFirstRunAllowed[] =
1667 "sync_promo.show_on_first_run_allowed";
1669 // Boolean that specifies if we should show a bubble in the new tab page.
1670 // The bubble is used to confirm that the user is signed into sync.
1671 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1672 #endif
1674 // Create web application shortcut dialog preferences.
1675 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1676 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1677 const char kWebAppCreateInQuickLaunchBar[] =
1678 "browser.web_app.create_in_quick_launch_bar";
1680 // Dictionary that maps Geolocation network provider server URLs to
1681 // corresponding access token.
1682 const char kGeolocationAccessToken[] = "geolocation.access_token";
1684 // Boolean that indicates whether to allow firewall traversal while trying to
1685 // establish the initial connection from the client or host.
1686 const char kRemoteAccessHostFirewallTraversal[] =
1687 "remote_access.host_firewall_traversal";
1689 // Boolean controlling whether 2-factor auth should be required when connecting
1690 // to a host (instead of a PIN).
1691 const char kRemoteAccessHostRequireTwoFactor[] =
1692 "remote_access.host_require_two_factor";
1694 // String containing the domain name that hosts must belong to. If blank, then
1695 // hosts can belong to any domain.
1696 const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
1698 // String containing the domain name of the Chromoting Directory.
1699 // Used by Chromoting host and client.
1700 const char kRemoteAccessHostTalkGadgetPrefix[] =
1701 "remote_access.host_talkgadget_prefix";
1703 // Boolean controlling whether curtaining is required when connecting to a host.
1704 const char kRemoteAccessHostRequireCurtain[] =
1705 "remote_access.host_require_curtain";
1707 // Boolean controlling whether curtaining is required when connecting to a host.
1708 const char kRemoteAccessHostAllowClientPairing[] =
1709 "remote_access.host_allow_client_pairing";
1711 // Whether Chrome Remote Desktop can proxy gnubby authentication traffic.
1712 const char kRemoteAccessHostAllowGnubbyAuth[] =
1713 "remote_access.host_allow_gnubby_auth";
1715 // Boolean that indicates whether the Chromoting host should allow connections
1716 // using relay servers.
1717 const char kRemoteAccessHostAllowRelayedConnection[] =
1718 "remote_access.host_allow_relayed_connection";
1720 // String containing the UDP port range that the Chromoting host should used
1721 // when connecting to clients. The port range should be in the form:
1722 // <min_port>-<max_port>. E.g. 12400-12409.
1723 const char kRemoteAccessHostUdpPortRange[] =
1724 "remote_access.host_udp_port_range";
1726 // The last used printer and its settings.
1727 const char kPrintPreviewStickySettings[] =
1728 "printing.print_preview_sticky_settings";
1730 // The last requested size of the dialog as it was closed.
1731 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1732 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1733 const char kCloudPrintSigninDialogWidth[] =
1734 "cloud_print.signin_dialog_size.width";
1735 const char kCloudPrintSigninDialogHeight[] =
1736 "cloud_print.signin_dialog_size.height";
1738 // The list of BackgroundContents that should be loaded when the browser
1739 // launches.
1740 const char kRegisteredBackgroundContents[] = "background_contents.registered";
1742 #if !defined(OS_ANDROID)
1743 // An int that stores how often we've shown the "Chrome is configured to
1744 // auto-launch" infobar.
1745 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1746 #endif
1748 // String that lists supported HTTP authentication schemes.
1749 const char kAuthSchemes[] = "auth.schemes";
1751 // Boolean that specifies whether to disable CNAME lookups when generating
1752 // Kerberos SPN.
1753 const char kDisableAuthNegotiateCnameLookup[] =
1754 "auth.disable_negotiate_cname_lookup";
1756 // Boolean that specifies whether to include the port in a generated Kerberos
1757 // SPN.
1758 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1760 // Whitelist containing servers for which Integrated Authentication is enabled.
1761 const char kAuthServerWhitelist[] = "auth.server_whitelist";
1763 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
1764 // with.
1765 const char kAuthNegotiateDelegateWhitelist[] =
1766 "auth.negotiate_delegate_whitelist";
1768 // String that specifies the name of a custom GSSAPI library to load.
1769 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1771 // Boolean that specifies whether to allow basic auth prompting on cross-
1772 // domain sub-content requests.
1773 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
1775 // Boolean that specifies whether the built-in asynchronous DNS client is used.
1776 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
1778 // A pref holding the value of the policy used to explicitly allow or deny
1779 // access to audio capture devices. When enabled or not set, the user is
1780 // prompted for device access. When disabled, access to audio capture devices
1781 // is not allowed and no prompt will be shown.
1782 // See also kAudioCaptureAllowedUrls.
1783 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
1784 // Holds URL patterns that specify URLs that will be granted access to audio
1785 // capture devices without prompt. NOTE: This whitelist is currently only
1786 // supported when running in kiosk mode.
1787 // TODO(tommi): Update comment when this is supported for all modes.
1788 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
1790 // A pref holding the value of the policy used to explicitly allow or deny
1791 // access to video capture devices. When enabled or not set, the user is
1792 // prompted for device access. When disabled, access to video capture devices
1793 // is not allowed and no prompt will be shown.
1794 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
1795 // Holds URL patterns that specify URLs that will be granted access to video
1796 // capture devices without prompt. NOTE: This whitelist is currently only
1797 // supported when running in kiosk mode.
1798 // TODO(tommi): Update comment when this is supported for all modes.
1799 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
1801 // A boolean pref that controls the enabled-state of hotword search voice
1802 // trigger.
1803 const char kHotwordSearchEnabled[] = "hotword.search_enabled_2";
1805 // A boolean pref that controls the enabled-state of hotword search voice
1806 // trigger from any screen.
1807 const char kHotwordAlwaysOnSearchEnabled[] = "hotword.always_on_search_enabled";
1809 // A boolean pref that controls whether the sound of "Ok, Google" plus a few
1810 // seconds of audio data before is sent back to improve voice search.
1811 const char kHotwordAudioLoggingEnabled[] = "hotword.audio_logging_enabled";
1813 // A string holding the locale information under which Hotword was installed.
1814 // It is used for comparison since the hotword voice search trigger must be
1815 // reinstalled to handle a new language.
1816 const char kHotwordPreviousLanguage[] = "hotword.previous_language";
1818 #if defined(OS_ANDROID)
1819 // Boolean that controls the global enabled-state of protected media identifier.
1820 const char kProtectedMediaIdentifierEnabled[] =
1821 "protected_media_identifier.enabled";
1822 #endif
1824 #if defined(OS_CHROMEOS)
1825 // Dictionary for transient storage of settings that should go into device
1826 // settings storage before owner has been assigned.
1827 const char kDeviceSettingsCache[] = "signed_settings_cache";
1829 // The hardware keyboard layout of the device. This should look like
1830 // "xkb:us::eng".
1831 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
1833 // An integer pref which shows number of times carrier deal promo
1834 // notification has been shown to user.
1835 const char kCarrierDealPromoShown[] =
1836 "settings.internet.mobile.carrier_deal_promo_shown";
1838 // A boolean pref of the auto-enrollment decision. Its value is only valid if
1839 // it's not the default value; otherwise, no auto-enrollment decision has been
1840 // made yet.
1841 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
1843 // An integer pref with the maximum number of bits used by the client in a
1844 // previous auto-enrollment request. If the client goes through an auto update
1845 // during OOBE and reboots into a version of the OS with a larger maximum
1846 // modulus, then it will retry auto-enrollment using the updated value.
1847 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
1849 // The local state pref that stores device activity times before reporting
1850 // them to the policy server.
1851 const char kDeviceActivityTimes[] = "device_status.activity_times";
1853 // A pref holding the last known location when device location reporting is
1854 // enabled.
1855 const char kDeviceLocation[] = "device_status.location";
1857 // A pref holding the value of the policy used to disable mounting of external
1858 // storage for the user.
1859 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
1861 // A pref holding the value of the policy used to disable playing audio on
1862 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
1863 // it, therefore when the policy is lifted the original mute state is restored.
1864 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
1866 // A dictionary that maps usernames to wallpaper properties.
1867 const char kUsersWallpaperInfo[] = "user_wallpaper_info";
1869 // Copy of owner swap mouse buttons option to use on login screen.
1870 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
1872 // Copy of owner tap-to-click option to use on login screen.
1873 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
1875 // The length of device uptime after which an automatic reboot is scheduled,
1876 // expressed in seconds.
1877 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
1879 // Whether an automatic reboot should be scheduled when an update has been
1880 // applied and a reboot is required to complete the update process.
1881 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
1883 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
1884 // for connection to Google APIs when the user isn't logged in. Currently used
1885 // for for getting a cloudprint scoped token to allow printing in Guest mode,
1886 // Public Accounts and kiosks.
1887 const char kDeviceRobotAnyApiRefreshToken[] =
1888 "device_robot_refresh_token.any-api";
1890 // Device requisition for enterprise enrollment.
1891 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
1893 // Whether to automatically start the enterprise enrollment step during OOBE.
1894 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
1896 // Whether the user may exit enrollment.
1897 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
1899 // How many times HID detection OOBE dialog was shown.
1900 const char kTimesHIDDialogShown[] = "HIDDialog.shown_how_many_times";
1902 // Dictionary of per-user Least Recently Used input method (used at login
1903 // screen).
1904 extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
1906 // A dictionary pref of the echo offer check flag. It sets offer info when
1907 // an offer is checked.
1908 extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
1910 // Key name of a dictionary in local state to store cached multiprofle user
1911 // behavior policy value.
1912 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
1914 // A string pref with initial locale set in VPD or manifest.
1915 const char kInitialLocale[] = "intl.initial_locale";
1917 // A boolean pref of the OOBE complete flag (first OOBE part before login).
1918 const char kOobeComplete[] = "OobeComplete";
1920 // The name of the screen that has to be shown if OOBE has been interrupted.
1921 const char kOobeScreenPending[] = "OobeScreenPending";
1923 // A boolean pref of the device registered flag (second part after first login).
1924 const char kDeviceRegistered[] = "DeviceRegistered";
1926 // Boolean pref to signal corrupted enrollment to force the device through
1927 // enrollment recovery flow upon next boot.
1928 const char kEnrollmentRecoveryRequired[] = "EnrollmentRecoveryRequired";
1930 // List of usernames that used certificates pushed by policy before.
1931 // This is used to prevent these users from joining multiprofile sessions.
1932 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
1934 // A dictionary containing server-provided device state pulled form the cloud
1935 // after recovery.
1936 const char kServerBackedDeviceState[] = "server_backed_device_state";
1938 // Customized wallpaper URL, which is already downloaded and scaled.
1939 // The URL from this preference must never be fetched. It is compared to the
1940 // URL from customization document to check if wallpaper URL has changed
1941 // since wallpaper was cached.
1942 const char kCustomizationDefaultWallpaperURL[] =
1943 "customization.default_wallpaper_url";
1945 // System uptime, when last logout started.
1946 // This is saved to file and cleared after chrome process starts.
1947 const char kLogoutStartedLast[] = "chromeos.logout-started";
1949 // An integer pref of the current consumer management enrollment stage. The
1950 // meaning of the value is defined in the enum EnrollmentStage in:
1951 // chrome/browser/chromeos/policy/consumer_management_service.h
1952 const char kConsumerManagementEnrollmentStage[] =
1953 "consumer_management.enrollment_stage";
1954 #endif
1956 // Whether there is a Flash version installed that supports clearing LSO data.
1957 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1959 // Whether we should show Pepper Flash-specific settings.
1960 const char kPepperFlashSettingsEnabled[] =
1961 "browser.pepper_flash_settings_enabled";
1963 // String which specifies where to store the disk cache.
1964 const char kDiskCacheDir[] = "browser.disk_cache_dir";
1965 // Pref name for the policy specifying the maximal cache size.
1966 const char kDiskCacheSize[] = "browser.disk_cache_size";
1967 // Pref name for the policy specifying the maximal media cache size.
1968 const char kMediaCacheSize[] = "browser.media_cache_size";
1970 // Specifies the release channel that the device should be locked to.
1971 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
1972 // empty string, in which case the value will be ignored.
1973 // TODO(dubroy): This preference may not be necessary once
1974 // http://crosbug.com/17015 is implemented and the update engine can just
1975 // fetch the correct value from the policy.
1976 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
1978 const char kPerformanceTracingEnabled[] =
1979 "feedback.performance_tracing_enabled";
1981 // Boolean indicating whether tabstrip uses stacked layout (on touch devices).
1982 // Defaults to false.
1983 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
1985 // Indicates that factory reset was requested from options page or reset screen.
1986 const char kFactoryResetRequested[] = "FactoryResetRequested";
1988 // Boolean recording whether we have showed a balloon that calls out the message
1989 // center for desktop notifications.
1990 const char kMessageCenterShowedFirstRunBalloon[] =
1991 "message_center.showed_first_run_balloon";
1993 // Boolean recording whether the user has disabled the notifications
1994 // menubar or systray icon.
1995 const char kMessageCenterShowIcon[] = "message_center.show_icon";
1997 const char kMessageCenterForcedOnTaskbar[] =
1998 "message_center.was_forced_on_taskbar";
2000 // *************** SERVICE PREFS ***************
2001 // These are attached to the service process.
2003 const char kCloudPrintRoot[] = "cloud_print";
2004 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
2005 // The unique id for this instance of the cloud print proxy.
2006 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
2007 // The GAIA auth token for Cloud Print
2008 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
2009 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
2010 // This should eventually go away because the above token should work for both.
2011 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
2012 // The email address of the account used to authenticate with the Cloud Print
2013 // server.
2014 const char kCloudPrintEmail[] = "cloud_print.email";
2015 // Settings specific to underlying print system.
2016 const char kCloudPrintPrintSystemSettings[] =
2017 "cloud_print.print_system_settings";
2018 // A boolean indicating whether we should poll for print jobs when don't have
2019 // an XMPP connection (false by default).
2020 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
2021 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
2022 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
2023 // A boolean indicating whether we should connect to cloud print new printers.
2024 const char kCloudPrintConnectNewPrinters[] =
2025 "cloud_print.user_settings.connectNewPrinters";
2026 // A boolean indicating whether we should ping XMPP connection.
2027 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
2028 // An int value indicating the average timeout between xmpp pings.
2029 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2030 // Dictionary with settings stored by connector setup page.
2031 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2032 // List of printers settings.
2033 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
2034 // A boolean indicating whether submitting jobs to Google Cloud Print is
2035 // blocked by policy.
2036 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2038 // Preference to store proxy settings.
2039 const char kProxy[] = "proxy";
2040 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2042 // Preferences that are exclusively used to store managed values for default
2043 // content settings.
2044 const char kManagedDefaultCookiesSetting[] =
2045 "profile.managed_default_content_settings.cookies";
2046 const char kManagedDefaultImagesSetting[] =
2047 "profile.managed_default_content_settings.images";
2048 const char kManagedDefaultJavaScriptSetting[] =
2049 "profile.managed_default_content_settings.javascript";
2050 const char kManagedDefaultPluginsSetting[] =
2051 "profile.managed_default_content_settings.plugins";
2052 const char kManagedDefaultPopupsSetting[] =
2053 "profile.managed_default_content_settings.popups";
2054 const char kManagedDefaultGeolocationSetting[] =
2055 "profile.managed_default_content_settings.geolocation";
2056 const char kManagedDefaultNotificationsSetting[] =
2057 "profile.managed_default_content_settings.notifications";
2058 const char kManagedDefaultMediaStreamSetting[] =
2059 "profile.managed_default_content_settings.media_stream";
2061 // Preferences that are exclusively used to store managed
2062 // content settings patterns.
2063 const char kManagedCookiesAllowedForUrls[] =
2064 "profile.managed_cookies_allowed_for_urls";
2065 const char kManagedCookiesBlockedForUrls[] =
2066 "profile.managed_cookies_blocked_for_urls";
2067 const char kManagedCookiesSessionOnlyForUrls[] =
2068 "profile.managed_cookies_sessiononly_for_urls";
2069 const char kManagedImagesAllowedForUrls[] =
2070 "profile.managed_images_allowed_for_urls";
2071 const char kManagedImagesBlockedForUrls[] =
2072 "profile.managed_images_blocked_for_urls";
2073 const char kManagedJavaScriptAllowedForUrls[] =
2074 "profile.managed_javascript_allowed_for_urls";
2075 const char kManagedJavaScriptBlockedForUrls[] =
2076 "profile.managed_javascript_blocked_for_urls";
2077 const char kManagedPluginsAllowedForUrls[] =
2078 "profile.managed_plugins_allowed_for_urls";
2079 const char kManagedPluginsBlockedForUrls[] =
2080 "profile.managed_plugins_blocked_for_urls";
2081 const char kManagedPopupsAllowedForUrls[] =
2082 "profile.managed_popups_allowed_for_urls";
2083 const char kManagedPopupsBlockedForUrls[] =
2084 "profile.managed_popups_blocked_for_urls";
2085 const char kManagedNotificationsAllowedForUrls[] =
2086 "profile.managed_notifications_allowed_for_urls";
2087 const char kManagedNotificationsBlockedForUrls[] =
2088 "profile.managed_notifications_blocked_for_urls";
2089 const char kManagedAutoSelectCertificateForUrls[] =
2090 "profile.managed_auto_select_certificate_for_urls";
2092 #if defined(OS_MACOSX)
2093 // Set to true if the user removed our login item so we should not create a new
2094 // one when uninstalling background apps.
2095 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2097 // Set to true if Chrome already created a login item, so there's no need to
2098 // create another one.
2099 const char kChromeCreatedLoginItem[] =
2100 "background_mode.chrome_created_login_item";
2102 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2103 // time.
2104 const char kMigratedLoginItemPref[] =
2105 "background_mode.migrated_login_item_pref";
2107 // A boolean that tracks whether to show a notification when trying to quit
2108 // while there are apps running.
2109 const char kNotifyWhenAppsKeepChromeAlive[] =
2110 "apps.notify-when-apps-keep-chrome-alive";
2111 #endif
2113 // Set to true if background mode is enabled on this browser.
2114 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2116 // Set to true if hardware acceleration mode is enabled on this browser.
2117 const char kHardwareAccelerationModeEnabled[] =
2118 "hardware_acceleration_mode.enabled";
2120 // Hardware acceleration mode from previous browser launch.
2121 const char kHardwareAccelerationModePrevious[] =
2122 "hardware_acceleration_mode_previous";
2124 // List of protocol handlers.
2125 const char kRegisteredProtocolHandlers[] =
2126 "custom_handlers.registered_protocol_handlers";
2128 // List of protocol handlers the user has requested not to be asked about again.
2129 const char kIgnoredProtocolHandlers[] =
2130 "custom_handlers.ignored_protocol_handlers";
2132 // List of protocol handlers registered by policy.
2133 const char kPolicyRegisteredProtocolHandlers[] =
2134 "custom_handlers.policy.registered_protocol_handlers";
2136 // List of protocol handlers the policy has requested to be ignored.
2137 const char kPolicyIgnoredProtocolHandlers[] =
2138 "custom_handlers.policy.ignored_protocol_handlers";
2140 // Whether user-specified handlers for protocols and content types can be
2141 // specified.
2142 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2144 // Integer that specifies the policy refresh rate for device-policy in
2145 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2146 // by the cloud policy subsystem.
2147 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2149 // A boolean where true means that the browser has previously attempted to
2150 // enable autoupdate and failed, so the next out-of-date browser start should
2151 // not prompt the user to enable autoupdate, it should offer to reinstall Chrome
2152 // instead.
2153 const char kAttemptedToEnableAutoupdate[] =
2154 "browser.attempted_to_enable_autoupdate";
2156 // The next media gallery ID to assign.
2157 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2159 // A list of dictionaries, where each dictionary represents a known media
2160 // gallery.
2161 const char kMediaGalleriesRememberedGalleries[] =
2162 "media_galleries.remembered_galleries";
2164 // The last time a media scan completed.
2165 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2167 #if defined(USE_ASH)
2168 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2169 // local variant is not synced and is used if set. If the local variant is not
2170 // set its value is set from the synced value (once prefs have been
2171 // synced). This gives a per-machine setting that is initialized from the last
2172 // set value.
2173 // These values are default on the machine but can be overridden by per-display
2174 // values in kShelfPreferences (unless overridden by managed policy).
2175 // String value corresponding to ash::Shell::ShelfAlignment.
2176 const char kShelfAlignment[] = "shelf_alignment";
2177 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2178 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2179 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2180 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2181 // This value stores chrome icon's index in the launcher. This should be handled
2182 // separately with app shortcut's index because of ShelfModel's backward
2183 // compatibility. If we add chrome icon index to |kPinnedLauncherApps|, its
2184 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2185 // creating two chrome icons.
2186 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2187 // Dictionary value that holds per-display preference of shelf alignment and
2188 // auto-hide behavior. Key of the dictionary is the id of the display, and
2189 // its value is a dictionary whose keys are kShelfAlignment and
2190 // kShelfAutoHideBehavior.
2191 const char kShelfPreferences[] = "shelf_preferences";
2193 // Integer value in milliseconds indicating the length of time for which a
2194 // confirmation dialog should be shown when the user presses the logout button.
2195 // A value of 0 indicates that logout should happen immediately, without showing
2196 // a confirmation dialog.
2197 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2198 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2199 // Boolean value indicating whether to show a logout button in the ash tray.
2200 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2201 #endif
2203 #if defined(USE_AURA)
2204 // Tuning settings for gestures.
2205 const char kMaxSeparationForGestureTouchesInPixels[] =
2206 "gesture.max_separation_for_gesture_touches_in_pixels";
2207 const char kSemiLongPressTimeInSeconds[] =
2208 "gesture.semi_long_press_time_in_seconds";
2209 const char kTabScrubActivationDelayInMS[] =
2210 "gesture.tab_scrub_activation_delay_in_ms";
2211 const char kFlingMaxCancelToDownTimeInMs[] =
2212 "gesture.fling_max_cancel_to_down_time_in_ms";
2213 const char kFlingMaxTapGapTimeInMs[] =
2214 "gesture.fling_max_tap_gap_time_in_ms";
2215 const char kOverscrollHorizontalThresholdComplete[] =
2216 "overscroll.horizontal_threshold_complete";
2217 const char kOverscrollVerticalThresholdComplete[] =
2218 "overscroll.vertical_threshold_complete";
2219 const char kOverscrollMinimumThresholdStart[] =
2220 "overscroll.minimum_threshold_start";
2221 const char kOverscrollMinimumThresholdStartTouchpad[] =
2222 "overscroll.minimum_threshold_start_touchpad";
2223 const char kOverscrollVerticalThresholdStart[] =
2224 "overscroll.vertical_threshold_start";
2225 const char kOverscrollHorizontalResistThreshold[] =
2226 "overscroll.horizontal_resist_threshold";
2227 const char kOverscrollVerticalResistThreshold[] =
2228 "overscroll.vertical_resist_threshold";
2229 #endif
2231 // Counts how many more times the 'profile on a network share' warning should be
2232 // shown to the user before the next silence period.
2233 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2234 // Tracks the time of the last shown warning. Used to reset
2235 // |network_profile.warnings_left| after a silence period.
2236 const char kNetworkProfileLastWarningTime[] =
2237 "network_profile.last_warning_time";
2239 #if defined(OS_CHROMEOS)
2240 // The RLZ brand code, if enabled.
2241 const char kRLZBrand[] = "rlz.brand";
2242 // Whether RLZ pings are disabled.
2243 const char kRLZDisabled[] = "rlz.disabled";
2244 #endif
2246 #if defined(ENABLE_APP_LIST)
2247 // The directory in user data dir that contains the profile to be used with the
2248 // app launcher.
2249 const char kAppListProfile[] = "app_list.profile";
2251 // The number of times the app launcher was launched since last ping and
2252 // the time of the last ping.
2253 const char kAppListLaunchCount[] = "app_list.launch_count";
2254 const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2256 // The number of times the an app was launched from the app launcher since last
2257 // ping and the time of the last ping.
2258 const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2259 const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2261 // A boolean that tracks whether the user has ever enabled the app launcher.
2262 const char kAppLauncherHasBeenEnabled[] =
2263 "apps.app_launcher.has_been_enabled";
2265 // An enum indicating how the app launcher was enabled. E.g., via webstore, app
2266 // install, command line, etc. For UMA.
2267 const char kAppListEnableMethod[] = "app_list.how_enabled";
2269 // The time that the app launcher was enabled. Cleared when UMA is recorded.
2270 const char kAppListEnableTime[] = "app_list.when_enabled";
2272 // TODO(calamity): remove this pref since app launcher will always be
2273 // installed.
2274 // Local state caching knowledge of whether the app launcher is installed.
2275 const char kAppLauncherIsEnabled[] =
2276 "apps.app_launcher.should_show_apps_page";
2278 // Integer representing the version of the app launcher shortcut installed on
2279 // the system. Incremented, e.g., when embedded icons change.
2280 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2282 // A boolean identifying if we should show the app launcher promo or not.
2283 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2285 // A dictionary that tracks the Drive app to Chrome app mapping. The key is
2286 // a Drive app id and the value is the corresponding Chrome app id. The pref
2287 // is unsynable and used to track local mappings only.
2288 const char kAppLauncherDriveAppMapping[] =
2289 "apps.app_launcher.drive_app_mapping";
2290 #endif
2292 // If set, the user requested to launch the app with this extension id while
2293 // in Metro mode, and then relaunched to Desktop mode to start it.
2294 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2296 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2297 // launch of the specified app when restarting Chrome in desktop mode.
2298 const char kAppLaunchForMetroRestartProfile[] =
2299 "apps.app_launch_for_metro_restart_profile";
2301 // An integer that is incremented whenever changes are made to app shortcuts.
2302 // Increasing this causes all app shortcuts to be recreated.
2303 const char kAppShortcutsVersion[] = "apps.shortcuts_version";
2305 // How often the bubble has been shown.
2306 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2308 // A string pref for storing the salt used to compute the pepper device ID.
2309 const char kDRMSalt[] = "settings.privacy.drm_salt";
2310 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2311 // enables the use of remote attestation for content protection.
2312 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2314 // An integer per-profile pref that signals if the watchdog extension is
2315 // installed and active. We need to know if the watchdog extension active for
2316 // ActivityLog initialization before the extension system is initialized.
2317 const char kWatchdogExtensionActive[] =
2318 "profile.extensions.activity_log.num_consumers_active";
2319 // The old version was a bool.
2320 const char kWatchdogExtensionActiveOld[] =
2321 "profile.extensions.activity_log.watchdog_extension_active";
2323 #if defined(OS_ANDROID)
2324 // A list of partner bookmark rename/remove mappings.
2325 // Each list item is a dictionary containing a "url", a "provider_title" and
2326 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2327 // given by the PartnerBookmarksProvider and either the user-visible renamed
2328 // title or an empty string if the bookmark node was removed.
2329 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2330 #endif
2332 // Whether DNS Quick Check is disabled in proxy resolution.
2333 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2335 // Whether Guest Mode is enabled within the browser.
2336 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2338 // Whether Adding a new Person is enabled within the user manager.
2339 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2341 } // namespace prefs