Media Galleries API Scanning: Give cached scan results if no user gesture.
[chromium-blink-merge.git] / chrome / common / pref_names.cc
blobaf9398cc678c752e4aad6e2d5a8c8bbabec57f6f
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 // A boolean specifying whether the New Tab page is the home page or not.
31 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
33 // This is the URL of the page to load when opening new tabs.
34 const char kHomePage[] = "homepage";
36 // Maps host names to whether the host is manually allowed or blocked.
37 const char kManagedModeManualHosts[] = "profile.managed.manual_hosts";
38 // Maps URLs to whether the URL is manually allowed or blocked.
39 const char kManagedModeManualURLs[] = "profile.managed.manual_urls";
41 // Stores the email address associated with the google account of the custodian
42 // of the managed user, set when the managed user is created.
43 const char kManagedUserCustodianEmail[] = "profile.managed.custodian_email";
45 // Stores the display name associated with the google account of the custodian
46 // of the managed user, updated (if possible) each time the managed user
47 // starts a session.
48 const char kManagedUserCustodianName[] = "profile.managed.custodian_name";
50 // Stores settings that can be modified both by a supervised user and their
51 // manager. See ManagedUserSharedSettingsService for a description of
52 // the format.
53 const char kManagedUserSharedSettings[] = "profile.managed.shared_settings";
55 // An integer that keeps track of the profile icon version. This allows us to
56 // determine the state of the profile icon for icon format changes.
57 const char kProfileIconVersion[] = "profile.icon_version";
59 // Used to determine if the last session exited cleanly. Set to false when
60 // first opened, and to true when closing. On startup if the value is false,
61 // it means the profile didn't exit cleanly.
62 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards
63 // compatability.
64 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
66 // A string pref whose values is one of the values defined by
67 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
68 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
69 // shutdown. Used to determine the exit type the last time the profile was open.
70 const char kSessionExitType[] = "profile.exit_type";
72 // An integer pref. Holds one of several values:
73 // 0: (deprecated) open the homepage on startup.
74 // 1: restore the last session.
75 // 2: this was used to indicate a specific session should be restored. It is
76 // no longer used, but saved to avoid conflict with old preferences.
77 // 3: unused, previously indicated the user wants to restore a saved session.
78 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
79 // 5: open the New Tab Page on startup.
80 const char kRestoreOnStartup[] = "session.restore_on_startup";
82 // A preference to keep track of whether we have already checked whether we
83 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
84 // We only need to do this check once, on upgrade from m18 or lower to m19 or
85 // higher.
86 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
88 // The URLs to restore on startup or when the home button is pressed. The URLs
89 // are only restored on startup if kRestoreOnStartup is 4.
90 const char kURLsToRestoreOnStartup[] = "session.startup_urls";
92 // Old startup url pref name for kURLsToRestoreOnStartup.
93 const char kURLsToRestoreOnStartupOld[] = "session.urls_to_restore_on_startup";
95 // Serialized migration time of kURLsToRestoreOnStartup (see
96 // base::Time::ToInternalValue for details on serialization format).
97 const char kRestoreStartupURLsMigrationTime[] =
98 "session.startup_urls_migration_time";
100 // If set to true profiles are created in ephemeral mode and do not store their
101 // data in the profile folder on disk but only in memory.
102 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
104 // The application locale.
105 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
106 // and user's profile. Global property determines locale of login screen,
107 // while user's profile determines his personal locale preference.
108 const char kApplicationLocale[] = "intl.app_locale";
109 #if defined(OS_CHROMEOS)
110 // Locale preference of device' owner. ChromeOS device appears in this locale
111 // after startup/wakeup/signout.
112 const char kOwnerLocale[] = "intl.owner_locale";
113 // Locale accepted by user. Non-syncable.
114 // Used to determine whether we need to show Locale Change notification.
115 const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
116 // Non-syncable item.
117 // It is used in two distinct ways.
118 // (1) Used for two-step initialization of locale in ChromeOS
119 // because synchronization of kApplicationLocale is not instant.
120 // (2) Used to detect locale change. Locale change is detected by
121 // LocaleChangeGuard in case values of kApplicationLocaleBackup and
122 // kApplicationLocale are both non-empty and differ.
123 // Following is a table showing how state of those prefs may change upon
124 // common real-life use cases:
125 // AppLocale Backup Accepted
126 // Initial login - A -
127 // Sync B A -
128 // Accept (B) B B B
129 // -----------------------------------------------------------
130 // Initial login - A -
131 // No sync and second login A A -
132 // Change options B B -
133 // -----------------------------------------------------------
134 // Initial login - A -
135 // Sync A A -
136 // Locale changed on login screen A C -
137 // Accept (A) A A A
138 // -----------------------------------------------------------
139 // Initial login - A -
140 // Sync B A -
141 // Revert A A -
142 const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
143 #endif
145 // The default character encoding to assume for a web page in the
146 // absence of MIME charset specification
147 const char kDefaultCharset[] = "intl.charset_default";
149 // The value to use for Accept-Languages HTTP header when making an HTTP
150 // request.
151 const char kAcceptLanguages[] = "intl.accept_languages";
153 // The value to use for showing locale-dependent encoding list for different
154 // locale, it's initialized from the corresponding string resource that is
155 // stored in non-translatable part of the resource bundle.
156 const char kStaticEncodings[] = "intl.static_encodings";
158 // If these change, the corresponding enums in the extension API
159 // experimental.fontSettings.json must also change.
160 const char* const kWebKitScriptsForFontFamilyMaps[] = {
161 #define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
162 #include "chrome/common/pref_font_script_names-inl.h"
163 ALL_FONT_SCRIPTS("unused param")
164 #undef EXPAND_SCRIPT_FONT
167 const size_t kWebKitScriptsForFontFamilyMapsLength =
168 arraysize(kWebKitScriptsForFontFamilyMaps);
170 // Strings for WebKit font family preferences. If these change, the pref prefix
171 // in pref_names_util.cc and the pref format in font_settings_api.cc must also
172 // change.
173 const char kWebKitStandardFontFamilyMap[] =
174 WEBKIT_WEBPREFS_FONTS_STANDARD;
175 const char kWebKitFixedFontFamilyMap[] =
176 WEBKIT_WEBPREFS_FONTS_FIXED;
177 const char kWebKitSerifFontFamilyMap[] =
178 WEBKIT_WEBPREFS_FONTS_SERIF;
179 const char kWebKitSansSerifFontFamilyMap[] =
180 WEBKIT_WEBPREFS_FONTS_SANSERIF;
181 const char kWebKitCursiveFontFamilyMap[] =
182 WEBKIT_WEBPREFS_FONTS_CURSIVE;
183 const char kWebKitFantasyFontFamilyMap[] =
184 WEBKIT_WEBPREFS_FONTS_FANTASY;
185 const char kWebKitPictographFontFamilyMap[] =
186 WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
187 const char kWebKitStandardFontFamilyArabic[] =
188 "webkit.webprefs.fonts.standard.Arab";
189 const char kWebKitFixedFontFamilyArabic[] =
190 "webkit.webprefs.fonts.fixed.Arab";
191 const char kWebKitSerifFontFamilyArabic[] =
192 "webkit.webprefs.fonts.serif.Arab";
193 const char kWebKitSansSerifFontFamilyArabic[] =
194 "webkit.webprefs.fonts.sansserif.Arab";
195 const char kWebKitStandardFontFamilyCyrillic[] =
196 "webkit.webprefs.fonts.standard.Cyrl";
197 const char kWebKitFixedFontFamilyCyrillic[] =
198 "webkit.webprefs.fonts.fixed.Cyrl";
199 const char kWebKitSerifFontFamilyCyrillic[] =
200 "webkit.webprefs.fonts.serif.Cyrl";
201 const char kWebKitSansSerifFontFamilyCyrillic[] =
202 "webkit.webprefs.fonts.sansserif.Cyrl";
203 const char kWebKitStandardFontFamilyGreek[] =
204 "webkit.webprefs.fonts.standard.Grek";
205 const char kWebKitFixedFontFamilyGreek[] =
206 "webkit.webprefs.fonts.fixed.Grek";
207 const char kWebKitSerifFontFamilyGreek[] =
208 "webkit.webprefs.fonts.serif.Grek";
209 const char kWebKitSansSerifFontFamilyGreek[] =
210 "webkit.webprefs.fonts.sansserif.Grek";
211 const char kWebKitStandardFontFamilyJapanese[] =
212 "webkit.webprefs.fonts.standard.Jpan";
213 const char kWebKitFixedFontFamilyJapanese[] =
214 "webkit.webprefs.fonts.fixed.Jpan";
215 const char kWebKitSerifFontFamilyJapanese[] =
216 "webkit.webprefs.fonts.serif.Jpan";
217 const char kWebKitSansSerifFontFamilyJapanese[] =
218 "webkit.webprefs.fonts.sansserif.Jpan";
219 const char kWebKitStandardFontFamilyKorean[] =
220 "webkit.webprefs.fonts.standard.Hang";
221 const char kWebKitFixedFontFamilyKorean[] =
222 "webkit.webprefs.fonts.fixed.Hang";
223 const char kWebKitSerifFontFamilyKorean[] =
224 "webkit.webprefs.fonts.serif.Hang";
225 const char kWebKitSansSerifFontFamilyKorean[] =
226 "webkit.webprefs.fonts.sansserif.Hang";
227 const char kWebKitCursiveFontFamilyKorean[] =
228 "webkit.webprefs.fonts.cursive.Hang";
229 const char kWebKitStandardFontFamilySimplifiedHan[] =
230 "webkit.webprefs.fonts.standard.Hans";
231 const char kWebKitFixedFontFamilySimplifiedHan[] =
232 "webkit.webprefs.fonts.fixed.Hans";
233 const char kWebKitSerifFontFamilySimplifiedHan[] =
234 "webkit.webprefs.fonts.serif.Hans";
235 const char kWebKitSansSerifFontFamilySimplifiedHan[] =
236 "webkit.webprefs.fonts.sansserif.Hans";
237 const char kWebKitStandardFontFamilyTraditionalHan[] =
238 "webkit.webprefs.fonts.standard.Hant";
239 const char kWebKitFixedFontFamilyTraditionalHan[] =
240 "webkit.webprefs.fonts.fixed.Hant";
241 const char kWebKitSerifFontFamilyTraditionalHan[] =
242 "webkit.webprefs.fonts.serif.Hant";
243 const char kWebKitSansSerifFontFamilyTraditionalHan[] =
244 "webkit.webprefs.fonts.sansserif.Hant";
246 // WebKit preferences.
247 const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
248 const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
249 const char kWebKitShrinksStandaloneImagesToFit[] =
250 "webkit.webprefs.shrinks_standalone_images_to_fit";
251 const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings";
252 const char kWebKitUsesUniversalDetector[] =
253 "webkit.webprefs.uses_universal_detector";
254 const char kWebKitTextAreasAreResizable[] =
255 "webkit.webprefs.text_areas_are_resizable";
256 const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
257 const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
258 const char kWebKitAllowDisplayingInsecureContent[] =
259 "webkit.webprefs.allow_displaying_insecure_content";
260 const char kWebKitAllowRunningInsecureContent[] =
261 "webkit.webprefs.allow_running_insecure_content";
262 #if defined(OS_ANDROID)
263 const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
264 const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
265 const char kWebKitPasswordEchoEnabled[] =
266 "webkit.webprefs.password_echo_enabled";
267 #endif
269 const char kWebKitCommonScript[] = "Zyyy";
270 const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
271 const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
272 const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
273 const char kWebKitSansSerifFontFamily[] =
274 "webkit.webprefs.fonts.sansserif.Zyyy";
275 const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
276 const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
277 const char kWebKitPictographFontFamily[] =
278 "webkit.webprefs.fonts.pictograph.Zyyy";
279 const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
280 const char kWebKitDefaultFixedFontSize[] =
281 "webkit.webprefs.default_fixed_font_size";
282 const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
283 const char kWebKitMinimumLogicalFontSize[] =
284 "webkit.webprefs.minimum_logical_font_size";
285 const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
286 const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
287 "webkit.webprefs.javascript_can_open_windows_automatically";
288 const char kWebKitLoadsImagesAutomatically[] =
289 "webkit.webprefs.loads_images_automatically";
290 const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
292 // Boolean which specifies whether the bookmark bar is visible on all tabs.
293 const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs";
295 // Boolean which specifies whether the apps shortcut is visible on the bookmark
296 // bar.
297 const char kShowAppsShortcutInBookmarkBar[] = "bookmark_bar.show_apps_shortcut";
299 // Boolean which specifies the ids of the bookmark nodes that are expanded in
300 // the bookmark editor.
301 const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes";
303 // Boolean that is true if the password manager is on (will record new
304 // passwords and fill in known passwords).
305 const char kPasswordManagerEnabled[] = "profile.password_manager_enabled";
307 // Boolean controlling whether the password manager allows to retrieve passwords
308 // in clear text.
309 const char kPasswordManagerAllowShowPasswords[] =
310 "profile.password_manager_allow_show_passwords";
312 // Booleans identifying whether normal and reverse auto-logins are enabled.
313 const char kAutologinEnabled[] = "autologin.enabled";
314 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
316 // List to keep track of emails for which the user has rejected one-click
317 // sign-in.
318 const char kReverseAutologinRejectedEmailList[] =
319 "reverse_autologin.rejected_email_list";
321 // Boolean that is true when SafeBrowsing is enabled.
322 const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
324 // Enum that tell us whether malicious download reporting is:
325 // 0 - Not enabled because the user has not been prompted
326 // 1 - Disabled because the user does not want to participate
327 // 2 - Enabled
328 const char kSafeBrowsingDownloadReportingEnabled[] =
329 "safebrowsing.download_reporting_enabled";
331 // Boolean that is true when SafeBrowsing Malware Report is enabled.
332 const char kSafeBrowsingReportingEnabled[] =
333 "safebrowsing.reporting_enabled";
335 // Boolean that is true when the SafeBrowsing interstitial should not allow
336 // users to proceed anyway.
337 const char kSafeBrowsingProceedAnywayDisabled[] =
338 "safebrowsing.proceed_anyway_disabled";
340 // Enum that specifies whether Incognito mode is:
341 // 0 - Enabled. Default behaviour. Default mode is available on demand.
342 // 1 - Disabled. Used cannot browse pages in Incognito mode.
343 // 2 - Forced. All pages/sessions are forced into Incognito.
344 const char kIncognitoModeAvailability[] = "incognito.mode_availability";
346 // Boolean that is true when Suggest support is enabled.
347 const char kSearchSuggestEnabled[] = "search.suggest_enabled";
349 // Boolean that indicates whether the browser should put up a confirmation
350 // window when the user is attempting to quit. Mac only.
351 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
353 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
354 // blocking policy. This has been superseded by kDefaultContentSettings +
355 // kBlockThirdPartyCookies.
356 // 0 - allow all cookies.
357 // 1 - block third-party cookies
358 // 2 - block all cookies
359 const char kCookieBehavior[] = "security.cookie_behavior";
361 // The GUID of the synced default search provider. Note that this acts like a
362 // pointer to which synced search engine should be the default, rather than the
363 // prefs below which describe the locally saved default search provider details
364 // (and are not synced). This is ignored in the case of the default search
365 // provider being managed by policy.
366 const char kSyncedDefaultSearchProviderGUID[] =
367 "default_search_provider.synced_guid";
369 // Whether having a default search provider is enabled.
370 const char kDefaultSearchProviderEnabled[] =
371 "default_search_provider.enabled";
373 // The URL (as understood by TemplateURLRef) the default search provider uses
374 // for searches.
375 const char kDefaultSearchProviderSearchURL[] =
376 "default_search_provider.search_url";
378 // The URL (as understood by TemplateURLRef) the default search provider uses
379 // for suggestions.
380 const char kDefaultSearchProviderSuggestURL[] =
381 "default_search_provider.suggest_url";
383 // The URL (as understood by TemplateURLRef) the default search provider uses
384 // for instant results.
385 const char kDefaultSearchProviderInstantURL[] =
386 "default_search_provider.instant_url";
388 // The URL (as understood by TemplateURLRef) the default search provider uses
389 // for image search results.
390 const char kDefaultSearchProviderImageURL[] =
391 "default_search_provider.image_url";
393 // The URL (as understood by TemplateURLRef) the default search provider uses
394 // for the new tab page.
395 const char kDefaultSearchProviderNewTabURL[] =
396 "default_search_provider.new_tab_url";
398 // The string of post parameters (as understood by TemplateURLRef) the default
399 // search provider uses for searches by using POST.
400 const char kDefaultSearchProviderSearchURLPostParams[] =
401 "default_search_provider.search_url_post_params";
403 // The string of post parameters (as understood by TemplateURLRef) the default
404 // search provider uses for suggestions by using POST.
405 const char kDefaultSearchProviderSuggestURLPostParams[] =
406 "default_search_provider.suggest_url_post_params";
408 // The string of post parameters (as understood by TemplateURLRef) the default
409 // search provider uses for instant results by using POST.
410 const char kDefaultSearchProviderInstantURLPostParams[] =
411 "default_search_provider.instant_url_post_params";
413 // The string of post parameters (as understood by TemplateURLRef) the default
414 // search provider uses for image search results by using POST.
415 const char kDefaultSearchProviderImageURLPostParams[] =
416 "default_search_provider.image_url_post_params";
418 // The Favicon URL (as understood by TemplateURLRef) of the default search
419 // provider.
420 const char kDefaultSearchProviderIconURL[] =
421 "default_search_provider.icon_url";
423 // The input encoding (as understood by TemplateURLRef) supported by the default
424 // search provider. The various encodings are separated by ';'
425 const char kDefaultSearchProviderEncodings[] =
426 "default_search_provider.encodings";
428 // The name of the default search provider.
429 const char kDefaultSearchProviderName[] = "default_search_provider.name";
431 // The keyword of the default search provider.
432 const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
434 // The id of the default search provider.
435 const char kDefaultSearchProviderID[] = "default_search_provider.id";
437 // The prepopulate id of the default search provider.
438 const char kDefaultSearchProviderPrepopulateID[] =
439 "default_search_provider.prepopulate_id";
441 // The alternate urls of the default search provider.
442 const char kDefaultSearchProviderAlternateURLs[] =
443 "default_search_provider.alternate_urls";
445 // Search term placement query parameter for the default search provider.
446 const char kDefaultSearchProviderSearchTermsReplacementKey[] =
447 "default_search_provider.search_terms_replacement_key";
449 // The dictionary key used when the default search providers are given
450 // in the preferences file. Normally they are copied from the master
451 // preferences file.
452 const char kSearchProviderOverrides[] = "search_provider_overrides";
453 // The format version for the dictionary above.
454 const char kSearchProviderOverridesVersion[] =
455 "search_provider_overrides_version";
457 // Boolean which specifies whether we should ask the user if we should download
458 // a file (true) or just download it automatically.
459 const char kPromptForDownload[] = "download.prompt_for_download";
461 // A boolean pref set to true if we're using Link Doctor error pages.
462 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
464 // OBSOLETE: new pref now stored with user prefs instead of profile, as
465 // kDnsPrefetchingStartupList.
466 const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
468 // An adaptively identified list of domain names to be pre-fetched during the
469 // next startup, based on what was actually needed during this startup.
470 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
472 // OBSOLETE: new pref now stored with user prefs instead of profile, as
473 // kDnsPrefetchingHostReferralList.
474 const char kDnsHostReferralList[] = "HostReferralList";
476 // A list of host names used to fetch web pages, and their commonly used
477 // sub-resource hostnames (and expected latency benefits from pre-resolving, or
478 // preconnecting to, such sub-resource hostnames).
479 // This list is adaptively grown and pruned.
480 const char kDnsPrefetchingHostReferralList[] =
481 "dns_prefetching.host_referral_list";
483 // Disables the SPDY protocol.
484 const char kDisableSpdy[] = "spdy.disabled";
486 // Prefs for persisting HttpServerProperties.
487 const char kHttpServerProperties[] = "net.http_server_properties";
489 // Prefs for server names that support SPDY protocol.
490 const char kSpdyServers[] = "spdy.servers";
492 // Prefs for servers that support Alternate-Protocol.
493 const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
495 // Disables the listed protocol schemes.
496 const char kDisabledSchemes[] = "protocol.disabled_schemes";
498 #if defined(OS_ANDROID)
499 // Last time that a check for cloud policy management was done. This time is
500 // recorded on Android so that retries aren't attempted on every startup.
501 // Instead the cloud policy registration is retried at least 1 or 3 days later.
502 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
504 // A list of bookmarks to include in a Managed Bookmarks root node. Each
505 // list item is a dictionary containing a "name" and an "url" entry, detailing
506 // the bookmark name and target URL respectively.
507 const char kManagedBookmarks[] = "policy.managed_bookmarks";
508 #endif
510 // Prefix URL for the experimental Instant ZeroSuggest provider.
511 const char kInstantUIZeroSuggestUrlPrefix[] =
512 "instant_ui.zero_suggest_url_prefix";
514 // Used to migrate preferences from local state to user preferences to
515 // enable multiple profiles.
516 // BITMASK with possible values (see browser_prefs.cc for enum):
517 // 0: No preferences migrated.
518 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
519 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
520 // kBrowserWindowPlacement
521 const char kMultipleProfilePrefMigration[] =
522 "local_state.multiple_profile_prefs_version";
524 // A boolean pref set to true if prediction of network actions is allowed.
525 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
526 // of web pages, and resource prefetching.
527 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
528 // preferences are not lost.
529 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
531 // An integer representing the state of the default apps installation process.
532 // This value is persisted in the profile's user preferences because the process
533 // is async, and the user may have stopped chrome in the middle. The next time
534 // the profile is opened, the process will continue from where it left off.
536 // See possible values in external_provider_impl.cc.
537 const char kDefaultAppsInstallState[] = "default_apps_install_state";
539 // A boolean pref set to true if the Chrome Web Store icons should be hidden
540 // from the New Tab Page and app launcher.
541 const char kHideWebStoreIcon[] = "hide_web_store_icon";
543 #if defined(OS_CHROMEOS)
544 // A dictionary pref to hold the mute setting for all the currently known
545 // audio devices.
546 const char kAudioDevicesMute[] = "settings.audio.devices.mute";
548 // A dictionary pref storing the volume settings for all the currently known
549 // audio devices.
550 const char kAudioDevicesVolumePercent[] =
551 "settings.audio.devices.volume_percent";
553 // An integer pref to initially mute volume if 1. This pref is ignored if
554 // |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
555 // when the policy is lifted the original mute state is restored. This setting
556 // is here only for migration purposes now. It is being replaced by the
557 // |kAudioDevicesMute| setting.
558 const char kAudioMute[] = "settings.audio.mute";
560 // A double pref storing the user-requested volume. This setting is here only
561 // for migration purposes now. It is being replaced by the
562 // |kAudioDevicesVolumePercent| setting.
563 const char kAudioVolumePercent[] = "settings.audio.volume_percent";
565 // An integer pref to record user's spring charger check result.
566 // 0 - unknown charger, not checked yet.
567 // 1 - confirmed safe charger.
568 // 2 - confirmed original charger and declined to order new charger.
569 // 3 - confirmed original charger and ordered new charger online.
570 // 4 - confirmed original charger and ordered new charger by phone.
571 // 5 - confirmed original charger, ordered a new one online, but continue to use
572 // the old one.
573 // 6 - confirmed original charger, ordered a new one by phone, but continue to
574 // use the old one.
575 const char kSpringChargerCheck[] = "settings.spring_charger.check_result";
577 // A boolean pref set to true if touchpad tap-to-click is enabled.
578 const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
580 // A boolean pref set to true if touchpad tap-dragging is enabled.
581 const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
583 // A boolean pref set to true if touchpad three-finger-click is enabled.
584 const char kEnableTouchpadThreeFingerClick[] =
585 "settings.touchpad.enable_three_finger_click";
587 // A boolean pref set to true if touchpad natural scrolling is enabled.
588 const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
590 // A boolean pref set to true if primary mouse button is the left button.
591 const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
593 // A integer pref for the touchpad sensitivity.
594 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
596 // A integer pref for the touchpad sensitivity.
597 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
599 // A boolean pref set to true if time should be displayed in 24-hour clock.
600 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
602 // A boolean pref to disable Google Drive integration.
603 // The pref prefix should remain as "gdata" for backward compatibility.
604 const char kDisableDrive[] = "gdata.disabled";
606 // A boolean pref to disable Drive over cellular connections.
607 // The pref prefix should remain as "gdata" for backward compatibility.
608 const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
610 // A boolean pref to disable hosted files on Drive.
611 // The pref prefix should remain as "gdata" for backward compatibility.
612 const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
614 // A string pref set to the current input method.
615 const char kLanguageCurrentInputMethod[] =
616 "settings.language.current_input_method";
618 // A string pref set to the previous input method.
619 const char kLanguagePreviousInputMethod[] =
620 "settings.language.previous_input_method";
622 // A string pref (comma-separated list) set to the "next engine in menu"
623 // hot-key lists.
624 const char kLanguageHotkeyNextEngineInMenu[] =
625 "settings.language.hotkey_next_engine_in_menu";
627 // A string pref (comma-separated list) set to the "previous engine"
628 // hot-key lists.
629 const char kLanguageHotkeyPreviousEngine[] =
630 "settings.language.hotkey_previous_engine";
632 // A string pref (comma-separated list) set to the preferred language IDs
633 // (ex. "en-US,fr,ko").
634 const char kLanguagePreferredLanguages[] =
635 "settings.language.preferred_languages";
637 // A string pref (comma-separated list) set to the preloaded (active) input
638 // method IDs (ex. "pinyin,mozc").
639 const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
641 // A List pref (comma-separated list) set to the extension IMEs to be enabled.
642 const char kLanguageEnabledExtensionImes[] =
643 "settings.language.enabled_extension_imes";
645 // Integer prefs which determine how we remap modifier keys (e.g. swap Alt and
646 // Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
647 // src/chrome/browser/chromeos/input_method/xkeyboard.h
648 const char kLanguageRemapSearchKeyTo[] =
649 // Note: we no longer use XKB for remapping these keys, but we can't change
650 // the pref names since the names are already synced with the cloud.
651 "settings.language.xkb_remap_search_key_to";
652 const char kLanguageRemapControlKeyTo[] =
653 "settings.language.xkb_remap_control_key_to";
654 const char kLanguageRemapAltKeyTo[] =
655 "settings.language.xkb_remap_alt_key_to";
656 const char kLanguageRemapCapsLockKeyTo[] =
657 "settings.language.remap_caps_lock_key_to";
658 const char kLanguageRemapDiamondKeyTo[] =
659 "settings.language.remap_diamond_key_to";
661 // A boolean pref that causes top-row keys to be interpreted as function keys
662 // instead of as media keys.
663 const char kLanguageSendFunctionKeys[] =
664 "settings.language.send_function_keys";
666 // A boolean pref which determines whether key repeat is enabled.
667 const char kLanguageXkbAutoRepeatEnabled[] =
668 "settings.language.xkb_auto_repeat_enabled_r2";
669 // A integer pref which determines key repeat delay (in ms).
670 const char kLanguageXkbAutoRepeatDelay[] =
671 "settings.language.xkb_auto_repeat_delay_r2";
672 // A integer pref which determines key repeat interval (in ms).
673 const char kLanguageXkbAutoRepeatInterval[] =
674 "settings.language.xkb_auto_repeat_interval_r2";
675 // "_r2" suffixes are added to the three prefs above when we change the
676 // preferences not user-configurable, not to sync them with cloud.
678 // A boolean pref which determines whether the large cursor feature is enabled.
679 const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled";
681 // A boolean pref which determines whether the sticky keys feature is enabled.
682 const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled";
683 // A boolean pref which determines whether spoken feedback is enabled.
684 const char kSpokenFeedbackEnabled[] = "settings.accessibility";
685 // A boolean pref which determines whether high conrast is enabled.
686 const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled";
687 // A boolean pref which determines whether screen magnifier is enabled.
688 const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier";
689 // A integer pref which determines what type of screen magnifier is enabled.
690 // Note that: 'screen_magnifier_type' had been used as string pref. Hence,
691 // we are using another name pref here.
692 const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2";
693 // A double pref which determines a zooming scale of the screen magnifier.
694 const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale";
695 // A boolean pref which determines whether the virtual keyboard is enabled for
696 // accessibility. This feature is separate from displaying an onscreen keyboard
697 // due to lack of a physical keyboard.
698 const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard";
699 // A boolean pref which determines whether autoclick is enabled.
700 const char kAutoclickEnabled[] = "settings.a11y.autoclick";
701 // An integer pref which determines time in ms between when the mouse cursor
702 // stops and when an autoclick is triggered.
703 const char kAutoclickDelayMs[] = "settings.a11y.autoclick_delay_ms";
704 // A boolean pref which determines whether the accessibility menu shows
705 // regardless of the state of a11y features.
706 const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
708 // A boolean pref which turns on Advanced Filesystem
709 // (USB support, SD card, etc).
710 const char kLabsAdvancedFilesystemEnabled[] =
711 "settings.labs.advanced_filesystem";
713 // A boolean pref which turns on the mediaplayer.
714 const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
716 // A boolean pref that turns on automatic screen locking.
717 const char kEnableAutoScreenLock[] = "settings.enable_screen_lock";
719 // A boolean pref of whether to show mobile plan notifications.
720 const char kShowPlanNotifications[] =
721 "settings.internet.mobile.show_plan_notifications";
723 // A boolean pref of whether to show 3G promo notification.
724 const char kShow3gPromoNotification[] =
725 "settings.internet.mobile.show_3g_promo_notification";
727 // A string pref that contains version where "What's new" promo was shown.
728 const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
730 // A boolean pref that controls whether proxy settings from shared network
731 // settings (accordingly from device policy) are applied or ignored.
732 const char kUseSharedProxies[] = "settings.use_shared_proxies";
734 // Power state of the current displays from the last run.
735 const char kDisplayPowerState[] = "settings.display.power_state";
736 // A dictionary pref that stores per display preferences.
737 const char kDisplayProperties[] = "settings.display.properties";
739 // A dictionary pref that specifies per-display layout/offset information.
740 // Its key is the ID of the display and its value is a dictionary for the
741 // layout/offset information.
742 const char kSecondaryDisplays[] = "settings.display.secondary_displays";
744 // A boolean pref indicating whether user activity has been observed in the
745 // current session already. The pref is used to restore information about user
746 // activity after browser crashes.
747 const char kSessionUserActivitySeen[] = "session.user_activity_seen";
749 // A preference to keep track of the session start time. If the session length
750 // limit is configured to start running after initial user activity has been
751 // observed, the pref is set after the first user activity in a session.
752 // Otherwise, it is set immediately after session start. The pref is used to
753 // restore the session start time after browser crashes. The time is expressed
754 // as the serialization obtained from base::TimeTicks::ToInternalValue().
755 const char kSessionStartTime[] = "session.start_time";
757 // Holds the maximum session time in milliseconds. If this pref is set, the
758 // user is logged out when the maximum session time is reached. The user is
759 // informed about the remaining time by a countdown timer shown in the ash
760 // system tray.
761 const char kSessionLengthLimit[] = "session.length_limit";
763 // Whether the session length limit should start running only after the first
764 // user activity has been observed in a session.
765 const char kSessionWaitForInitialUserActivity[] =
766 "session.wait_for_initial_user_activity";
768 // Inactivity time in milliseconds while the system is on AC power before
769 // the screen should be dimmed, turned off, or locked, before an
770 // IdleActionImminent D-Bus signal should be sent, or before
771 // kPowerAcIdleAction should be performed. 0 disables the delay (N/A for
772 // kPowerAcIdleDelayMs).
773 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
774 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
775 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
776 const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
777 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
779 // Similar delays while the system is on battery power.
780 const char kPowerBatteryScreenDimDelayMs[] =
781 "power.battery_screen_dim_delay_ms";
782 const char kPowerBatteryScreenOffDelayMs[] =
783 "power.battery_screen_off_delay_ms";
784 const char kPowerBatteryScreenLockDelayMs[] =
785 "power.battery_screen_lock_delay_ms";
786 const char kPowerBatteryIdleWarningDelayMs[] =
787 "power.battery_idle_warning_delay_ms";
788 const char kPowerBatteryIdleDelayMs[] =
789 "power.battery_idle_delay_ms";
791 // Action that should be performed when the idle delay is reached while the
792 // system is on AC power or battery power.
793 // Values are from the chromeos::PowerPolicyController::Action enum.
794 const char kPowerAcIdleAction[] = "power.ac_idle_action";
795 const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
797 // Action that should be performed when the lid is closed.
798 // Values are from the chromeos::PowerPolicyController::Action enum.
799 const char kPowerLidClosedAction[] = "power.lid_closed_action";
801 // Should audio and video activity be used to disable the above delays?
802 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
803 const char kPowerUseVideoActivity[] = "power.use_video_activity";
805 // Should extensions be able to use the chrome.power API to override
806 // screen-related power management (including locking)?
807 const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
809 // Amount by which the screen-dim delay should be scaled while the system
810 // is in presentation mode. Values are limited to a minimum of 1.0.
811 const char kPowerPresentationScreenDimDelayFactor[] =
812 "power.presentation_screen_dim_delay_factor";
814 // Amount by which the screen-dim delay should be scaled when user activity is
815 // observed while the screen is dimmed or soon after the screen has been turned
816 // off. Values are limited to a minimum of 1.0.
817 const char kPowerUserActivityScreenDimDelayFactor[] =
818 "power.user_activity_screen_dim_delay_factor";
820 // Whether the power management delays should start running only after the first
821 // user activity has been observed in a session.
822 const char kPowerWaitForInitialUserActivity[] =
823 "power.wait_for_initial_user_activity";
825 // The URL from which the Terms of Service can be downloaded. The value is only
826 // honored for public accounts.
827 const char kTermsOfServiceURL[] = "terms_of_service.url";
829 // Indicates that the Profile has made navigations that used a certificate
830 // installed by the system administrator. If that is true then the local cache
831 // of remote data is tainted (e.g. shared scripts), and future navigations
832 // show a warning indicating that the organization may track the browsing
833 // session.
834 const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
836 // Indicates whether the remote attestation is enabled for the user.
837 const char kAttestationEnabled[] = "attestation.enabled";
838 // The list of extensions allowed to use the platformKeysPrivate API for
839 // remote attestation.
840 const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
842 // A boolean pref indicating whether the projection touch HUD is enabled or not.
843 const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
845 // A pref to configure networks. Its value must be a list of
846 // NetworkConfigurations according to the OpenNetworkConfiguration
847 // specification.
848 // Currently, this pref is only used to store the policy. The user's
849 // configuration is still stored in Shill.
850 const char kOpenNetworkConfiguration[] = "onc";
852 // A boolean pref that tracks whether the user has already given consent for
853 // enabling remote attestation for content protection.
854 const char kRAConsentFirstTime[] = "settings.privacy.ra_consent";
856 // A boolean pref recording whether user has dismissed the multiprofile
857 // itroduction dialog show.
858 const char kMultiProfileNeverShowIntro[] =
859 "settings.multi_profile_never_show_intro";
861 // A boolean pref recording whether user has dismissed the multiprofile
862 // teleport warning dialog show.
863 const char kMultiProfileWarningShowDismissed[] =
864 "settings.multi_profile_warning_show_dismissed";
866 // A boolean pref recording whether user has dismissed the multiprofile
867 // notification.
868 const char kMultiProfileNotificationDismissed[] =
869 "settings.multi_profile_notification_dismissed";
871 // A string pref that holds string enum values of how the user should behave
872 // in a multiprofile session. See ChromeOsMultiProfileUserBehavior policy
873 // for more details of the valid values.
874 const char kMultiProfileUserBehavior[] = "settings.multiprofile_user_behavior";
876 // A boolean preference indicating whether user has seen first-run tutorial
877 // already.
878 const char kFirstRunTutorialShown[] = "settings.first_run_tutorial_shown";
880 // Indicates the amount of time for which a user authenticated via SAML can use
881 // offline authentication against a cached password before being forced to go
882 // through online authentication against GAIA again. The time is expressed in
883 // seconds. A value of -1 indicates no limit, allowing the user to use offline
884 // authentication indefinitely. The limit is in effect only if GAIA redirected
885 // the user to a SAML IdP during the last online authentication.
886 const char kSAMLOfflineSigninTimeLimit[] = "saml.offline_signin_time_limit";
888 // A preference to keep track of the last time the user authenticated against
889 // GAIA using SAML. The preference is updated whenever the user authenticates
890 // against GAIA: If GAIA redirects to a SAML IdP, the preference is set to the
891 // current time. If GAIA performs the authentication itself, the preference is
892 // cleared. The time is expressed as the serialization obtained from
893 // base::Time::ToInternalValue().
894 const char kSAMLLastGAIASignInTime[] = "saml.last_gaia_sign_in_time";
895 #endif // defined(OS_CHROMEOS)
897 // The disabled messages in IPC logging.
898 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
900 // A boolean pref set to true if a Home button to open the Home pages should be
901 // visible on the toolbar.
902 const char kShowHomeButton[] = "browser.show_home_button";
904 // A string value which saves short list of recently user selected encodings
905 // separated with comma punctuation mark.
906 const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
908 // Clear Browsing Data dialog preferences.
909 const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
910 const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
911 const char kDeleteCache[] = "browser.clear_data.cache";
912 const char kDeleteCookies[] = "browser.clear_data.cookies";
913 const char kDeletePasswords[] = "browser.clear_data.passwords";
914 const char kDeleteFormData[] = "browser.clear_data.form_data";
915 const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
916 const char kDeauthorizeContentLicenses[] =
917 "browser.clear_data.content_licenses";
918 const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
919 const char kLastClearBrowsingDataTime[] =
920 "browser.last_clear_browsing_data_time";
922 // Boolean pref to define the default values for using spellchecker.
923 const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
925 // List of names of the enabled labs experiments (see chrome/browser/labs.cc).
926 const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
928 // Boolean pref to define the default values for using auto spell correct.
929 const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
931 // Boolean pref to define the default setting for "block offensive words".
932 // The old key value is kept to avoid unnecessary migration code.
933 const char kSpeechRecognitionFilterProfanities[] =
934 "browser.speechinput_censor_results";
936 // List of speech recognition context names (extensions or websites) for which
937 // the tray notification balloon has already been shown.
938 const char kSpeechRecognitionTrayNotificationShownContexts[] =
939 "browser.speechinput_tray_notification_shown_contexts";
941 // Boolean controlling whether history saving is disabled.
942 const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
944 // Boolean controlling whether deleting browsing and download history is
945 // permitted.
946 const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
948 // Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
949 const char kForceSafeSearch[] = "settings.force_safesearch";
951 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
952 // Linux specific preference on whether we should match the system theme.
953 const char kUsesSystemTheme[] = "extensions.theme.use_system";
954 #endif
955 const char kCurrentThemePackFilename[] = "extensions.theme.pack";
956 const char kCurrentThemeID[] = "extensions.theme.id";
957 const char kCurrentThemeImages[] = "extensions.theme.images";
958 const char kCurrentThemeColors[] = "extensions.theme.colors";
959 const char kCurrentThemeTints[] = "extensions.theme.tints";
960 const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
962 // Boolean pref which persists whether the extensions_ui is in developer mode
963 // (showing developer packing tools and extensions details)
964 const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
966 // Dictionary pref that tracks which command belongs to which
967 // extension + named command pair.
968 const char kExtensionCommands[] = "extensions.commands";
970 // Pref containing the directory for internal plugins as written to the plugins
971 // list (below).
972 const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
974 // List pref containing information (dictionaries) on plugins.
975 const char kPluginsPluginsList[] = "plugins.plugins_list";
977 // List pref containing names of plugins that are disabled by policy.
978 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
980 // List pref containing exceptions to the list of plugins disabled by policy.
981 const char kPluginsDisabledPluginsExceptions[] =
982 "plugins.plugins_disabled_exceptions";
984 // List pref containing names of plugins that are enabled by policy.
985 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
987 // When bundled NPAPI Flash is removed, if at that point it is enabled while
988 // Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
989 // want to do so only once.
990 const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
992 // In the early stage of component-updated PPAPI Flash, we did field trials in
993 // which it was set to disabled by default. The corresponding settings item may
994 // remain in some users' profiles. Currently it affects both the bundled and
995 // component-updated PPAPI Flash (since the two share the same enable/disable
996 // state). We want to remove this item to get those users to use PPAPI Flash.
997 // We will want to do so only once.
998 const char kPluginsRemovedOldComponentPepperFlashSettings[] =
999 "plugins.removed_old_component_pepper_flash_settings";
1001 #if !defined(OS_ANDROID)
1002 // Whether about:plugins is shown in the details mode or not.
1003 const char kPluginsShowDetails[] = "plugins.show_details";
1004 #endif
1006 // Boolean that indicates whether outdated plugins are allowed or not.
1007 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
1009 // Boolean that indicates whether plugins that require authorization should
1010 // be always allowed or not.
1011 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
1013 #if defined(ENABLE_PLUGIN_INSTALLATION)
1014 // Dictionary holding plug-ins metadata.
1015 const char kPluginsMetadata[] = "plugins.metadata";
1017 // Last update time of plug-ins resource cache.
1018 const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
1019 #endif
1021 // Boolean that indicates whether we should check if we are the default browser
1022 // on start-up.
1023 const char kCheckDefaultBrowser[] = "browser.check_default_browser";
1025 #if defined(OS_WIN)
1026 // By default, setting Chrome as default during first run on Windows 8 will
1027 // trigger shutting down the current instance and spawning a new (Metro)
1028 // Chrome. This boolean preference suppresses this behaviour.
1029 const char kSuppressSwitchToMetroModeOnSetDefault[] =
1030 "browser.suppress_switch_to_metro_mode_on_set_default";
1031 #endif
1033 // Policy setting whether default browser check should be disabled and default
1034 // browser registration should take place.
1035 const char kDefaultBrowserSettingEnabled[] =
1036 "browser.default_browser_setting_enabled";
1038 #if defined(OS_MACOSX)
1039 // Boolean that indicates whether the application should show the info bar
1040 // asking the user to set up automatic updates when Keystone promotion is
1041 // required.
1042 const char kShowUpdatePromotionInfoBar[] =
1043 "browser.show_update_promotion_info_bar";
1044 #endif
1046 // Boolean that is false if we should show window manager decorations. If
1047 // true, we draw a custom chrome frame (thicker title bar and blue border).
1048 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
1050 // The preferred position (which corner of screen) for desktop notifications.
1051 const char kDesktopNotificationPosition[] =
1052 "browser.desktop_notification_position";
1054 // Dictionary of content settings applied to all hosts by default.
1055 const char kDefaultContentSettings[] = "profile.default_content_settings";
1057 // Boolean indicating whether the clear on exit pref was migrated to content
1058 // settings yet.
1059 const char kContentSettingsClearOnExitMigrated[] =
1060 "profile.content_settings.clear_on_exit_migrated";
1062 // Version of the pattern format used to define content settings.
1063 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
1065 // Patterns for mapping origins to origin related settings. Default settings
1066 // will be applied to origins that don't match any of the patterns. The pattern
1067 // format used is defined by kContentSettingsVersion.
1068 const char kContentSettingsPatternPairs[] =
1069 "profile.content_settings.pattern_pairs";
1071 // Version of the content settings whitelist.
1072 const char kContentSettingsDefaultWhitelistVersion[] =
1073 "profile.content_settings.whitelist_version";
1075 #if !defined(OS_ANDROID)
1076 // Which plugins have been whitelisted manually by the user.
1077 const char kContentSettingsPluginWhitelist[] =
1078 "profile.content_settings.plugin_whitelist";
1079 #endif
1081 // Boolean that is true if we should unconditionally block third-party cookies,
1082 // regardless of other content settings.
1083 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
1085 // Boolean that is true when all locally stored site data (e.g. cookies, local
1086 // storage, etc..) should be deleted on exit.
1087 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
1089 // Double that indicates the default zoom level.
1090 const char kDefaultZoomLevel[] = "profile.default_zoom_level";
1092 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will
1093 // be displayed at the default zoom level.
1094 const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
1096 // A dictionary that tracks the default data model to use for each section of
1097 // the dialog.
1098 const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1100 // Whether a user opted out of making purchases with Google Wallet; changed via
1101 // the autofill dialog's account chooser and set explicitly on dialog submission
1102 // (but not cancel). If this isn't set, the dialog assumes it's the first run.
1103 const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1105 // Which GAIA users have accepted that use of Google Wallet implies their
1106 // location will be shared with fraud protection services.
1107 const char kAutofillDialogWalletLocationAcceptance[] =
1108 "autofill.wallet_location_disclosure";
1110 // Whether a user wants to save data locally in Autofill.
1111 const char kAutofillDialogSaveData[] = "autofill.save_data";
1113 // Whether the user has selected "Same as billing" for the shipping address when
1114 // using Google Wallet.
1115 const char kAutofillDialogWalletShippingSameAsBilling[] =
1116 "autofill.wallet_shipping_same_as_billing";
1118 // The number of times the generated credit card bubble has been shown.
1119 const char kAutofillGeneratedCardBubbleTimesShown[] =
1120 "autofill.generated_card_bubble_times_shown";
1122 // A dictionary that tracks the defaults to be set on the next invocation
1123 // of the requestAutocomplete dialog.
1124 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults";
1126 // Modifying bookmarks is completely disabled when this is set to false.
1127 const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled";
1129 #if !defined(OS_ANDROID)
1130 const char kPinnedTabs[] = "pinned_tabs";
1131 #endif
1133 #if defined(OS_ANDROID)
1134 // Boolean that controls the enabled-state of Geolocation in content.
1135 const char kGeolocationEnabled[] = "geolocation.enabled";
1136 #endif
1138 #if defined(ENABLE_GOOGLE_NOW)
1139 // Boolean that is true when Google services can use the user's location.
1140 const char kGoogleGeolocationAccessEnabled[] =
1141 "googlegeolocationaccess.enabled";
1142 #endif
1144 // The default audio capture device used by the Media content setting.
1145 const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1147 // The default video capture device used by the Media content setting.
1148 const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1150 // The salt used for creating random MediaSource IDs.
1151 const char kMediaDeviceIdSalt[] = "media.device_id_salt";
1153 // Preference to disable 3D APIs (WebGL, Pepper 3D).
1154 const char kDisable3DAPIs[] = "disable_3d_apis";
1156 // Whether to enable hyperlink auditing ("<a ping>").
1157 const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1159 // Whether to enable sending referrers.
1160 const char kEnableReferrers[] = "enable_referrers";
1162 // Whether to send the DNT header.
1163 const char kEnableDoNotTrack[] = "enable_do_not_track";
1165 // Boolean to enable reporting memory info to page.
1166 const char kEnableMemoryInfo[] = "enable_memory_info";
1168 // GL_VENDOR string.
1169 const char kGLVendorString[] = "gl_vendor_string";
1171 // GL_RENDERER string.
1172 const char kGLRendererString[] = "gl_renderer_string";
1174 // GL_VERSION string.
1175 const char kGLVersionString[] = "gl_version_string";
1177 // Boolean that specifies whether to import bookmarks from the default browser
1178 // on first run.
1179 const char kImportBookmarks[] = "import_bookmarks";
1181 // Boolean that specifies whether to import the browsing history from the
1182 // default browser on first run.
1183 const char kImportHistory[] = "import_history";
1185 // Boolean that specifies whether to import the homepage from the default
1186 // browser on first run.
1187 const char kImportHomepage[] = "import_home_page";
1189 // Boolean that specifies whether to import the search engine from the default
1190 // browser on first run.
1191 const char kImportSearchEngine[] = "import_search_engine";
1193 // Boolean that specifies whether to import the saved passwords from the default
1194 // browser on first run.
1195 const char kImportSavedPasswords[] = "import_saved_passwords";
1197 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
1198 // The local profile id for this profile.
1199 const char kLocalProfileId[] = "profile.local_profile_id";
1201 // Whether passwords in external services (e.g. GNOME Keyring) have been tagged
1202 // with the local profile id yet. (Used for migrating to tagged passwords.)
1203 const char kPasswordsUseLocalProfileId[] =
1204 "profile.passwords_use_local_profile_id";
1205 #endif
1207 // Profile avatar and name
1208 const char kProfileAvatarIndex[] = "profile.avatar_index";
1209 const char kProfileName[] = "profile.name";
1211 // Whether the profile is managed.
1212 const char kProfileIsManaged[] = "profile.is_managed";
1214 // The managed user ID.
1215 const char kManagedUserId[] = "profile.managed_user_id";
1217 // Indicates if we've already shown a notification that high contrast
1218 // mode is on, recommending high-contrast extensions and themes.
1219 const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1221 // Boolean controlling whether printing is enabled.
1222 const char kPrintingEnabled[] = "printing.enabled";
1224 // Boolean controlling whether print preview is disabled.
1225 const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1227 // An integer pref specifying the fallback behavior for sites outside of content
1228 // packs. One of:
1229 // 0: Allow (does nothing)
1230 // 1: Warn.
1231 // 2: Block.
1232 const char kDefaultManagedModeFilteringBehavior[] =
1233 "profile.managed.default_filtering_behavior";
1235 // Whether this user is permitted to create managed users.
1236 const char kManagedUserCreationAllowed[] =
1237 "profile.managed_user_creation_allowed";
1239 // List pref containing the users managed by this user.
1240 const char kManagedUsers[] = "profile.managed_users";
1242 // List pref containing the extension ids which are not allowed to send
1243 // notifications to the message center.
1244 const char kMessageCenterDisabledExtensionIds[] =
1245 "message_center.disabled_extension_ids";
1247 // List pref containing the system component ids which are not allowed to send
1248 // notifications to the message center.
1249 const char kMessageCenterDisabledSystemComponentIds[] =
1250 "message_center.disabled_system_component_ids";
1252 // List pref containing the system component ids which are allowed to send
1253 // notifications to the message center.
1254 extern const char kMessageCenterEnabledSyncNotifierIds[] =
1255 "message_center.enabled_sync_notifier_ids";
1257 // List pref containing synced notification sending services that are currently
1258 // enabled.
1259 extern const char kEnabledSyncedNotificationSendingServices[] =
1260 "synced_notification.enabled_remote_services";
1262 // List pref containing which synced notification sending services have already
1263 // been turned on once for the user (so we don't turn them on again).
1264 extern const char kInitializedSyncedNotificationSendingServices[] =
1265 "synced_notification.initialized_remote_services";
1267 // Boolean pref containing whether this is the first run of the Synced
1268 // Notification feature.
1269 extern const char kSyncedNotificationFirstRun[] =
1270 "synced_notification.first_run";
1272 // Boolean pref indicating the welcome notification was dismissed by the user.
1273 extern const char kWelcomeNotificationDismissed[] =
1274 "message_center.welcome_notification_dismissed";
1276 // Boolean pref indicating the welcome notification was previously popped up.
1277 extern const char kWelcomeNotificationPreviouslyPoppedUp[] =
1278 "message_center.welcome_notification_previously_popped_up";
1280 // Integer pref containing the expiration timestamp of the welcome notification.
1281 extern const char kWelcomeNotificationExpirationTimestamp[] =
1282 "message_center.welcome_notification_expiration_timestamp";
1284 // Boolean pref that determines whether the user can enter fullscreen mode.
1285 // Disabling fullscreen mode also makes kiosk mode unavailable on desktop
1286 // platforms.
1287 extern const char kFullscreenAllowed[] = "fullscreen.allowed";
1289 // Enable notifications for new devices on the local network that can be
1290 // registered to the user's account, e.g. Google Cloud Print printers.
1291 const char kLocalDiscoveryNotificationsEnabled[] =
1292 "local_discovery.notifications_enabled";
1294 // String that indicates if the Profile Reset prompt has already been shown to
1295 // the user. Used both in user preferences and local state, in the latter, it is
1296 // actually a dictionary that maps profile keys to before-mentioned strings.
1297 const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento";
1299 // The GCM channel's enabled state.
1300 const char kGCMChannelEnabled[] = "gcm.channel_enabled";
1302 // Stores the check-in info retrieved from the GCM server.
1303 const char kGCMUserAccountID[] = "gcm.user.account_id";
1304 const char kGCMUserToken[] = "gcm.user.token";
1306 // *************** LOCAL STATE ***************
1307 // These are attached to the machine/installation
1309 // A pref to configure networks device-wide. Its value must be a list of
1310 // NetworkConfigurations according to the OpenNetworkConfiguration
1311 // specification.
1312 // Currently, this pref is only used to store the policy. The user's
1313 // configuration is still stored in Shill.
1314 const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1316 // Directory of the last profile used.
1317 const char kProfileLastUsed[] = "profile.last_used";
1319 // List of directories of the profiles last active.
1320 const char kProfilesLastActive[] = "profile.last_active_profiles";
1322 // Total number of profiles created for this Chrome build. Used to tag profile
1323 // directories.
1324 const char kProfilesNumCreated[] = "profile.profiles_created";
1326 // String containing the version of Chrome that the profile was created by.
1327 // If profile was created before this feature was added, this pref will default
1328 // to "1.0.0.0".
1329 const char kProfileCreatedByVersion[] = "profile.created_by_version";
1331 // A map of profile data directory to cached information. This cache can be
1332 // used to display information about profiles without actually having to load
1333 // them.
1334 const char kProfileInfoCache[] = "profile.info_cache";
1336 // Prefs for SSLConfigServicePref.
1337 const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1338 const char kCertRevocationCheckingRequiredLocalAnchors[] =
1339 "ssl.rev_checking.required_for_local_anchors";
1340 const char kSSLVersionMin[] = "ssl.version_min";
1341 const char kSSLVersionMax[] = "ssl.version_max";
1342 const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1343 const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled";
1344 const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1345 const char kEnableUnrestrictedSSL3Fallback[] =
1346 "ssl.unrestricted_ssl3_fallback.enabled";
1348 // A boolean pref of the EULA accepted flag.
1349 const char kEulaAccepted[] = "EulaAccepted";
1351 // The metrics client GUID, entropy source and session ID.
1352 const char kMetricsClientID[] = "user_experience_metrics.client_id";
1353 const char kMetricsSessionID[] = "user_experience_metrics.session_id";
1354 const char kMetricsLowEntropySource[] =
1355 "user_experience_metrics.low_entropy_source";
1356 const char kMetricsPermutedEntropyCache[] =
1357 "user_experience_metrics.permuted_entropy_cache";
1359 // Date/time when the current metrics profile ID was created
1360 // (which hopefully corresponds to first run).
1361 const char kMetricsClientIDTimestamp[] =
1362 "user_experience_metrics.client_id_timestamp";
1364 // Boolean that specifies whether or not crash reporting and metrics reporting
1365 // are sent over the network for analysis.
1366 const char kMetricsReportingEnabled[] =
1367 "user_experience_metrics.reporting_enabled";
1369 // Boolean that specifies whether or not crash reports are sent
1370 // over the network for analysis.
1371 #if defined(OS_ANDROID)
1372 const char kCrashReportingEnabled[] =
1373 "user_experience_metrics_crash.reporting_enabled";
1374 #endif
1376 // Array of strings that are each UMA logs that were supposed to be sent in the
1377 // first minute of a browser session. These logs include things like crash count
1378 // info, etc.
1379 const char kMetricsInitialLogs[] =
1380 "user_experience_metrics.initial_logs_as_protobufs";
1382 // Array of strings that are each UMA logs that were not sent because the
1383 // browser terminated before these accumulated metrics could be sent. These
1384 // logs typically include histograms and memory reports, as well as ongoing
1385 // user activities.
1386 const char kMetricsOngoingLogs[] =
1387 "user_experience_metrics.ongoing_logs_as_protobufs";
1389 // Boolean that is true when bookmark prompt is enabled.
1390 const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled";
1392 // Number of times bookmark prompt displayed.
1393 const char kBookmarkPromptImpressionCount[] =
1394 "bookmark_prompt_impression_count";
1396 // 64-bit integer serialization of the base::Time from the last successful seed
1397 // fetch (i.e. when the Variations server responds with 200 or 304).
1398 const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1400 // String for the restrict parameter to be appended to the variations URL.
1401 const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1403 // String serialized form of variations seed protobuf.
1404 const char kVariationsSeed[] = "variations_seed";
1406 // 64-bit integer serialization of the base::Time from the last seed received.
1407 const char kVariationsSeedDate[] = "variations_seed_date";
1409 // SHA-1 hash of the serialized variations seed data (hex encoded).
1410 const char kVariationsSeedHash[] = "variations_seed_hash";
1412 // Digital signature of the binary variations seed data, base64-encoded.
1413 const char kVariationsSeedSignature[] = "variations_seed_signature";
1415 // An enum value to indicate the execution phase the browser was in.
1416 const char kStabilityExecutionPhase[] =
1417 "user_experience_metrics.stability.execution_phase";
1419 // True if the previous run of the program exited cleanly.
1420 const char kStabilityExitedCleanly[] =
1421 "user_experience_metrics.stability.exited_cleanly";
1423 // Version string of previous run, which is used to assure that stability
1424 // metrics reported under current version reflect stability of the same version.
1425 const char kStabilityStatsVersion[] =
1426 "user_experience_metrics.stability.stats_version";
1428 // Build time, in seconds since an epoch, which is used to assure that stability
1429 // metrics reported reflect stability of the same build.
1430 const char kStabilityStatsBuildTime[] =
1431 "user_experience_metrics.stability.stats_buildtime";
1433 // False if we received a session end and either we crashed during processing
1434 // the session end or ran out of time and windows terminated us.
1435 const char kStabilitySessionEndCompleted[] =
1436 "user_experience_metrics.stability.session_end_completed";
1438 // Number of times the application was launched since last report.
1439 const char kStabilityLaunchCount[] =
1440 "user_experience_metrics.stability.launch_count";
1442 // Number of times the application exited uncleanly since the last report.
1443 const char kStabilityCrashCount[] =
1444 "user_experience_metrics.stability.crash_count";
1446 // Number of times the session end did not complete.
1447 const char kStabilityIncompleteSessionEndCount[] =
1448 "user_experience_metrics.stability.incomplete_session_end_count";
1450 // Number of times a page load event occurred since the last report.
1451 const char kStabilityPageLoadCount[] =
1452 "user_experience_metrics.stability.page_load_count";
1454 // Base64 encoded serialized UMA system profile proto from the previous session.
1455 const char kStabilitySavedSystemProfile[] =
1456 "user_experience_metrics.stability.saved_system_profile";
1458 // SHA-1 hash of the serialized UMA system profile proto (hex encoded).
1459 const char kStabilitySavedSystemProfileHash[] =
1460 "user_experience_metrics.stability.saved_system_profile_hash";
1462 // Number of times a renderer process crashed since the last report.
1463 const char kStabilityRendererCrashCount[] =
1464 "user_experience_metrics.stability.renderer_crash_count";
1466 // Number of times an extension renderer process crashed since the last report.
1467 const char kStabilityExtensionRendererCrashCount[] =
1468 "user_experience_metrics.stability.extension_renderer_crash_count";
1470 // Time when the app was last launched, in seconds since the epoch.
1471 const char kStabilityLaunchTimeSec[] =
1472 "user_experience_metrics.stability.launch_time_sec";
1474 // Time when the app was last known to be running, in seconds since
1475 // the epoch.
1476 const char kStabilityLastTimestampSec[] =
1477 "user_experience_metrics.stability.last_timestamp_sec";
1479 // This is the location of a list of dictionaries of plugin stability stats.
1480 const char kStabilityPluginStats[] =
1481 "user_experience_metrics.stability.plugin_stats2";
1483 // Number of times the renderer has become non-responsive since the last
1484 // report.
1485 const char kStabilityRendererHangCount[] =
1486 "user_experience_metrics.stability.renderer_hang_count";
1488 // Total number of child process crashes (other than renderer / extension
1489 // renderer ones, and plugin children, which are counted separately) since the
1490 // last report.
1491 const char kStabilityChildProcessCrashCount[] =
1492 "user_experience_metrics.stability.child_process_crash_count";
1494 // On Chrome OS, total number of non-Chrome user process crashes
1495 // since the last report.
1496 const char kStabilityOtherUserCrashCount[] =
1497 "user_experience_metrics.stability.other_user_crash_count";
1499 // On Chrome OS, total number of kernel crashes since the last report.
1500 const char kStabilityKernelCrashCount[] =
1501 "user_experience_metrics.stability.kernel_crash_count";
1503 // On Chrome OS, total number of unclean system shutdowns since the
1504 // last report.
1505 const char kStabilitySystemUncleanShutdownCount[] =
1506 "user_experience_metrics.stability.system_unclean_shutdowns";
1508 #if defined(OS_ANDROID)
1509 // Activity type that is currently in the foreground for the UMA session.
1510 // Uses the ActivityTypeIds::Type enum.
1511 const char kStabilityForegroundActivityType[] =
1512 "user_experience_metrics.stability.current_foreground_activity_type";
1514 // Tracks which Activities were launched during the last session.
1515 // See |metrics_service_android.cc| for its usage.
1516 const char kStabilityLaunchedActivityFlags[] =
1517 "user_experience_metrics.stability.launched_activity_flags";
1519 // List pref: Counts how many times each Activity was launched.
1520 // Indexed into by ActivityTypeIds::Type.
1521 const char kStabilityLaunchedActivityCounts[] =
1522 "user_experience_metrics.stability.launched_activity_counts";
1524 // List pref: Counts how many times each Activity type was in the foreground
1525 // when a UMA session failed to be shut down properly.
1526 // Indexed into by ActivityTypeIds::Type.
1527 const char kStabilityCrashedActivityCounts[] =
1528 "user_experience_metrics.stability.crashed_activity_counts";
1529 #endif
1531 // Number of times the browser has been able to register crash reporting.
1532 const char kStabilityBreakpadRegistrationSuccess[] =
1533 "user_experience_metrics.stability.breakpad_registration_ok";
1535 // Number of times the browser has failed to register crash reporting.
1536 const char kStabilityBreakpadRegistrationFail[] =
1537 "user_experience_metrics.stability.breakpad_registration_fail";
1539 // Number of times the browser has been run under a debugger.
1540 const char kStabilityDebuggerPresent[] =
1541 "user_experience_metrics.stability.debugger_present";
1543 // Number of times the browser has not been run under a debugger.
1544 const char kStabilityDebuggerNotPresent[] =
1545 "user_experience_metrics.stability.debugger_not_present";
1547 // The keys below are used for the dictionaries in the
1548 // kStabilityPluginStats list.
1549 const char kStabilityPluginName[] = "name";
1550 const char kStabilityPluginLaunches[] = "launches";
1551 const char kStabilityPluginInstances[] = "instances";
1552 const char kStabilityPluginCrashes[] = "crashes";
1553 const char kStabilityPluginLoadingErrors[] = "loading_errors";
1555 // The keys below are strictly increasing counters over the lifetime of
1556 // a chrome installation. They are (optionally) sent up to the uninstall
1557 // survey in the event of uninstallation. The installation date is used by some
1558 // opt-in services such as Wallet and UMA.
1559 const char kInstallDate[] = "uninstall_metrics.installation_date2";
1560 const char kUninstallMetricsPageLoadCount[] =
1561 "uninstall_metrics.page_load_count";
1562 const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
1563 const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
1564 const char kUninstallLastLaunchTimeSec[] =
1565 "uninstall_metrics.last_launch_time_sec";
1566 const char kUninstallLastObservedRunTimeSec[] =
1567 "uninstall_metrics.last_observed_running_time_sec";
1569 // String containing the version of Chrome for which Chrome will not prompt the
1570 // user about setting Chrome as the default browser.
1571 const char kBrowserSuppressDefaultBrowserPrompt[] =
1572 "browser.suppress_default_browser_prompt_for_version";
1574 // A collection of position, size, and other data relating to the browser
1575 // window to restore on startup.
1576 const char kBrowserWindowPlacement[] = "browser.window_placement";
1578 // A collection of position, size, and other data relating to the task
1579 // manager window to restore on startup.
1580 const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1582 // A collection of position, size, and other data relating to the keyword
1583 // editor window to restore on startup.
1584 const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
1586 // A collection of position, size, and other data relating to the preferences
1587 // window to restore on startup.
1588 const char kPreferencesWindowPlacement[] = "preferences.window_placement";
1590 // An integer specifying the total number of bytes to be used by the
1591 // renderer's in-memory cache of objects.
1592 const char kMemoryCacheSize[] = "renderer.memory_cache.size";
1594 // String which specifies where to download files to by default.
1595 const char kDownloadDefaultDirectory[] = "download.default_directory";
1597 // Boolean that records if the download directory was changed by an
1598 // upgrade a unsafe location to a safe location.
1599 const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1601 // String which specifies where to save html files to by default.
1602 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1604 // The type used to save the page. See the enum SavePackage::SavePackageType in
1605 // the chrome/browser/download/save_package.h for the possible values.
1606 const char kSaveFileType[] = "savefile.type";
1608 // String which specifies the last directory that was chosen for uploading
1609 // or opening a file.
1610 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1612 // Boolean that specifies if file selection dialogs are shown.
1613 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1615 // Map of default tasks, associated by MIME type.
1616 const char kDefaultTasksByMimeType[] =
1617 "filebrowser.tasks.default_by_mime_type";
1619 // Map of default tasks, associated by file suffix.
1620 const char kDefaultTasksBySuffix[] =
1621 "filebrowser.tasks.default_by_suffix";
1623 // Extensions which should be opened upon completion.
1624 const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1626 // Integer which specifies the frequency in milliseconds for detecting whether
1627 // plugin windows are hung.
1628 const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1630 // Integer which specifies the timeout value to be used for SendMessageTimeout
1631 // to detect a hung plugin window.
1632 const char kPluginMessageResponseTimeout[] =
1633 "browser.plugin_message_response_timeout";
1635 // String which represents the dictionary name for our spell-checker.
1636 const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1638 // String which represents whether we use the spelling service.
1639 const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1641 // Dictionary of schemes used by the external protocol handler.
1642 // The value is true if the scheme must be ignored.
1643 const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1645 // Keys used for MAC handling of SafeBrowsing requests.
1646 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1647 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1649 // Integer that specifies the index of the tab the user was on when they
1650 // last visited the options window.
1651 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1653 // Integer that specifies the index of the tab the user was on when they
1654 // last visited the content settings window.
1655 const char kContentSettingsWindowLastTabIndex[] =
1656 "content_settings_window.last_tab_index";
1658 // Integer that specifies the index of the tab the user was on when they
1659 // last visited the Certificate Manager window.
1660 const char kCertificateManagerWindowLastTabIndex[] =
1661 "certificate_manager_window.last_tab_index";
1663 // Integer that specifies if the first run bubble should be shown.
1664 // This preference is only registered by the first-run procedure.
1665 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1667 // String containing the last known Google URL. We re-detect this on startup in
1668 // most cases, and use it to send traffic to the correct Google host or with the
1669 // correct Google domain/country code for whatever location the user is in.
1670 const char kLastKnownGoogleURL[] = "browser.last_known_google_url";
1672 // String containing the last prompted Google URL to the user.
1673 // If the user is using .x TLD for Google URL and gets prompted about .y TLD
1674 // for Google URL, and says "no", we should leave the search engine set to .x
1675 // but not prompt again until the domain changes away from .y.
1676 const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url";
1678 // String containing the last known intranet redirect URL, if any. See
1679 // intranet_redirect_detector.h for more information.
1680 const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1682 // Integer containing the system Country ID the first time we checked the
1683 // template URL prepopulate data. This is used to avoid adding a whole bunch of
1684 // new search engine choices if prepopulation runs when the user's Country ID
1685 // differs from their previous Country ID. This pref does not exist until
1686 // prepopulation has been run at least once.
1687 const char kCountryIDAtInstall[] = "countryid_at_install";
1688 // OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
1689 // Updated if found to the above key.
1690 const char kGeoIDAtInstall[] = "geoid_at_install";
1692 // An enum value of how the browser was shut down (see browser_shutdown.h).
1693 const char kShutdownType[] = "shutdown.type";
1694 // Number of processes that were open when the user shut down.
1695 const char kShutdownNumProcesses[] = "shutdown.num_processes";
1696 // Number of processes that were shut down using the slow path.
1697 const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1699 // Whether to restart the current Chrome session automatically as the last thing
1700 // before shutting everything down.
1701 const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1703 // Set before autorestarting Chrome, cleared on clean exit.
1704 const char kWasRestarted[] = "was.restarted";
1706 #if defined(OS_WIN)
1707 // Preference to be used while relaunching Chrome. This preference dictates if
1708 // Chrome should be launched in Metro or Desktop mode.
1709 // For more info take a look at ChromeRelaunchMode enum.
1710 const char kRelaunchMode[] = "relaunch.mode";
1711 #endif
1713 // Placeholder preference for disabling voice / video chat if it is ever added.
1714 // Currently, this does not change any behavior.
1715 const char kDisableVideoAndChat[] = "disable_video_chat";
1717 // Whether Extensions are enabled.
1718 const char kDisableExtensions[] = "extensions.disabled";
1720 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1721 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1723 // Customized app page names that appear on the New Tab Page.
1724 const char kNtpAppPageNames[] = "ntp.app_page_names";
1726 // Keeps track of which sessions are collapsed in the Other Devices menu.
1727 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1729 // Keeps track of recently closed tabs collapsed state in the Other Devices
1730 // menu.
1731 const char kNtpCollapsedRecentlyClosedTabs[] =
1732 "ntp.collapsed_recently_closed_tabs";
1734 // Keeps track of snapshot documents collapsed state in the Other Devices menu.
1735 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document";
1737 // Keeps track of sync promo collapsed state in the Other Devices menu.
1738 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo";
1740 // Serves dates to determine display of elements on the NTP.
1741 const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1743 // New Tab Page URLs that should not be shown as most visited thumbnails.
1744 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1746 // True if a desktop sync session was found for this user.
1747 const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1749 // Last time of update of promo_resource_cache.
1750 const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1752 // Which bookmarks folder should be visible on the new tab page v4.
1753 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1755 // Which page should be visible on the new tab page v4
1756 const char kNtpShownPage[] = "ntp.shown_page";
1758 // Serves tips for the NTP.
1759 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1761 // Boolean indicating whether the web store is active for the current locale.
1762 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1764 // A private RSA key for ADB handshake.
1765 const char kDevToolsAdbKey[] = "devtools.adb_key";
1767 const char kDevToolsDisabled[] = "devtools.disabled";
1769 // Determines whether devtools should be discovering usb devices for
1770 // remote debugging at chrome://inspect.
1771 const char kDevToolsDiscoverUsbDevicesEnabled[] =
1772 "devtools.discover_usb_devices";
1774 // Maps of files edited locally using DevTools.
1775 const char kDevToolsEditedFiles[] = "devtools.edited_files";
1777 // List of file system paths added in DevTools.
1778 const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1780 // A boolean specifying whether dev tools window should be opened docked.
1781 const char kDevToolsOpenDocked[] = "devtools.open_docked";
1783 // A boolean specifying whether port forwarding should be enabled.
1784 const char kDevToolsPortForwardingEnabled[] =
1785 "devtools.port_forwarding_enabled";
1787 // A boolean specifying whether default port forwarding configuration has been
1788 // set.
1789 const char kDevToolsPortForwardingDefaultSet[] =
1790 "devtools.port_forwarding_default_set";
1792 // A dictionary of port->location pairs for port forwarding.
1793 const char kDevToolsPortForwardingConfig[] = "devtools.port_forwarding_config";
1795 #if defined(OS_ANDROID)
1796 // A boolean specifying whether remote dev tools debugging is enabled.
1797 const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1798 #endif
1800 #if defined(OS_ANDROID) || defined(OS_IOS)
1801 // A boolean specifying whether a SPDY proxy is enabled.
1802 const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled";
1803 const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before";
1804 #endif // defined(OS_ANDROID) || defined(OS_IOS)
1806 // Boolean which stores if the user is allowed to signin to chrome.
1807 const char kSigninAllowed[] = "signin.allowed";
1809 // 64-bit integer serialization of the base::Time when the last sync occurred.
1810 const char kSyncLastSyncedTime[] = "sync.last_synced_time";
1812 // Boolean specifying whether the user finished setting up sync.
1813 const char kSyncHasSetupCompleted[] = "sync.has_setup_completed";
1815 // Boolean specifying whether sync has an auth error.
1816 const char kSyncHasAuthError[] = "sync.has_auth_error";
1818 // Boolean specifying whether to automatically sync all data types (including
1819 // future ones, as they're added). If this is true, the following preferences
1820 // (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
1821 const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
1823 // Booleans specifying whether the user has selected to sync the following
1824 // datatypes.
1825 const char kSyncAppList[] = "sync.app_list";
1826 const char kSyncAppNotifications[] = "sync.app_notifications";
1827 const char kSyncAppSettings[] = "sync.app_settings";
1828 const char kSyncApps[] = "sync.apps";
1829 const char kSyncAutofillProfile[] = "sync.autofill_profile";
1830 const char kSyncAutofill[] = "sync.autofill";
1831 const char kSyncBookmarks[] = "sync.bookmarks";
1832 const char kSyncDictionary[] = "sync.dictionary";
1833 const char kSyncExtensionSettings[] = "sync.extension_settings";
1834 const char kSyncExtensions[] = "sync.extensions";
1835 const char kSyncFaviconImages[] = "sync.favicon_images";
1836 const char kSyncFaviconTracking[] = "sync.favicon_tracking";
1837 const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives";
1838 const char kSyncManagedUserSettings[] = "sync.managed_user_settings";
1839 const char kSyncManagedUserSharedSettings[] =
1840 "sync.managed_user_shared_settings";
1841 const char kSyncManagedUsers[] = "sync.managed_users";
1842 const char kSyncArticles[] = "sync.articles";
1843 const char kSyncPasswords[] = "sync.passwords";
1844 const char kSyncPreferences[] = "sync.preferences";
1845 const char kSyncPriorityPreferences[] = "sync.priority_preferences";
1846 const char kSyncSearchEngines[] = "sync.search_engines";
1847 const char kSyncSessions[] = "sync.sessions";
1848 const char kSyncSyncedNotificationAppInfo[] =
1849 "sync.synced_notification_app_info";
1850 const char kSyncSyncedNotifications[] = "sync.synced_notifications";
1851 const char kSyncTabs[] = "sync.tabs";
1852 const char kSyncThemes[] = "sync.themes";
1853 const char kSyncTypedUrls[] = "sync.typed_urls";
1855 // Boolean used by enterprise configuration management in order to lock down
1856 // sync.
1857 const char kSyncManaged[] = "sync.managed";
1859 // Boolean to prevent sync from automatically starting up. This is
1860 // used when sync is disabled by the user via the privacy dashboard.
1861 const char kSyncSuppressStart[] = "sync.suppress_start";
1863 // List of the currently acknowledged set of sync types, used to figure out
1864 // if a new sync type has rolled out so we can notify the user.
1865 const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types";
1867 // The GUID session sync will use to identify this client, even across sync
1868 // disable/enable events.
1869 const char kSyncSessionsGUID[] = "sync.session_sync_guid";
1871 // An ID to uniquely identify this client to the invalidator service.
1872 const char kInvalidatorClientId[] = "invalidator.client_id";
1874 // Opaque state from the invalidation subsystem that is persisted via prefs.
1875 // The value is base 64 encoded.
1876 const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state";
1878 // List of received invalidations that have not been acted on by any clients
1879 // yet. Used to keep invalidation clients in sync in case of a restart.
1880 const char kInvalidatorSavedInvalidations[] = "invalidator.saved_invalidations";
1882 // A string that can be used to restore sync encryption infrastructure on
1883 // startup so that the user doesn't need to provide credentials on each start.
1884 const char kSyncEncryptionBootstrapToken[] =
1885 "sync.encryption_bootstrap_token";
1887 // Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
1888 // so we don't have to do a GetKey command at restart.
1889 const char kSyncKeystoreEncryptionBootstrapToken[] =
1890 "sync.keystore_encryption_bootstrap_token";
1892 // Boolean tracking whether the user chose to specify a secondary encryption
1893 // passphrase.
1894 const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase";
1896 // String the identifies the last user that logged into sync and other
1897 // google services. As opposed to kGoogleServicesUsername, this value is not
1898 // cleared on signout, but while the user is signed in the two values will
1899 // be the same.
1900 const char kGoogleServicesLastUsername[] = "google.services.last_username";
1902 // Obfuscated account ID that identifies the current user logged into sync and
1903 // other google services.
1904 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id";
1906 // String that identifies the current user logged into sync and other google
1907 // services.
1908 const char kGoogleServicesUsername[] = "google.services.username";
1910 // Local state pref containing a string regex that restricts which accounts
1911 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
1912 // all accounts are allowed (no restrictions).
1913 const char kGoogleServicesUsernamePattern[] =
1914 "google.services.username_pattern";
1916 // Local hash of authentication password, used for off-line authentication
1917 // when on-line authentication is not available.
1918 const char kGoogleServicesPasswordHash[] = "google.services.password_hash";
1920 #if !defined(OS_ANDROID)
1921 // Tracks the number of times that we have shown the sign in promo at startup.
1922 const char kSignInPromoStartupCount[] = "sync_promo.startup_count";
1924 // Boolean tracking whether the user chose to skip the sign in promo.
1925 const char kSignInPromoUserSkipped[] = "sync_promo.user_skipped";
1927 // Boolean that specifies if the sign in promo is allowed to show on first run.
1928 // This preference is specified in the master preference file to suppress the
1929 // sign in promo for some installations.
1930 const char kSignInPromoShowOnFirstRunAllowed[] =
1931 "sync_promo.show_on_first_run_allowed";
1933 // Boolean that specifies if we should show a bubble in the new tab page.
1934 // The bubble is used to confirm that the user is signed into sync.
1935 const char kSignInPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1936 #endif
1938 // Time when the user's GAIA info was last updated (represented as an int64).
1939 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1941 // The URL from which the GAIA profile picture was downloaded. This is cached to
1942 // prevent the same picture from being downloaded multiple times.
1943 const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1945 // Create web application shortcut dialog preferences.
1946 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1947 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1948 const char kWebAppCreateInQuickLaunchBar[] =
1949 "browser.web_app.create_in_quick_launch_bar";
1951 // Dictionary that maps Geolocation network provider server URLs to
1952 // corresponding access token.
1953 const char kGeolocationAccessToken[] = "geolocation.access_token";
1955 // Boolean that indicates whether to allow firewall traversal while trying to
1956 // establish the initial connection from the client or host.
1957 const char kRemoteAccessHostFirewallTraversal[] =
1958 "remote_access.host_firewall_traversal";
1960 // Boolean controlling whether 2-factor auth should be required when connecting
1961 // to a host (instead of a PIN).
1962 const char kRemoteAccessHostRequireTwoFactor[] =
1963 "remote_access.host_require_two_factor";
1965 // String containing the domain name that hosts must belong to. If blank, then
1966 // hosts can belong to any domain.
1967 const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
1969 // String containing the domain name of the Chromoting Directory.
1970 // Used by Chromoting host and client.
1971 const char kRemoteAccessHostTalkGadgetPrefix[] =
1972 "remote_access.host_talkgadget_prefix";
1974 // Boolean controlling whether curtaining is required when connecting to a host.
1975 const char kRemoteAccessHostRequireCurtain[] =
1976 "remote_access.host_require_curtain";
1978 // Boolean controlling whether curtaining is required when connecting to a host.
1979 const char kRemoteAccessHostAllowClientPairing[] =
1980 "remote_access.host_allow_client_pairing";
1982 // The last used printer and its settings.
1983 const char kPrintPreviewStickySettings[] =
1984 "printing.print_preview_sticky_settings";
1985 // The root URL of the cloud print service.
1986 const char kCloudPrintServiceURL[] = "cloud_print.service_url";
1988 // The URL to use to sign in to cloud print.
1989 const char kCloudPrintSigninURL[] = "cloud_print.signin_url";
1991 // The last requested size of the dialog as it was closed.
1992 const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1993 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1994 const char kCloudPrintSigninDialogWidth[] =
1995 "cloud_print.signin_dialog_size.width";
1996 const char kCloudPrintSigninDialogHeight[] =
1997 "cloud_print.signin_dialog_size.height";
1999 // The list of BackgroundContents that should be loaded when the browser
2000 // launches.
2001 const char kRegisteredBackgroundContents[] = "background_contents.registered";
2003 #if !defined(OS_ANDROID)
2004 // An int that stores how often we've shown the "Chrome is configured to
2005 // auto-launch" infobar.
2006 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
2007 #endif
2009 // String that lists supported HTTP authentication schemes.
2010 const char kAuthSchemes[] = "auth.schemes";
2012 // Boolean that specifies whether to disable CNAME lookups when generating
2013 // Kerberos SPN.
2014 const char kDisableAuthNegotiateCnameLookup[] =
2015 "auth.disable_negotiate_cname_lookup";
2017 // Boolean that specifies whether to include the port in a generated Kerberos
2018 // SPN.
2019 const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
2021 // Whitelist containing servers for which Integrated Authentication is enabled.
2022 const char kAuthServerWhitelist[] = "auth.server_whitelist";
2024 // Whitelist containing servers Chrome is allowed to do Kerberos delegation
2025 // with.
2026 const char kAuthNegotiateDelegateWhitelist[] =
2027 "auth.negotiate_delegate_whitelist";
2029 // String that specifies the name of a custom GSSAPI library to load.
2030 const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
2032 // String that specifies the origin allowed to use SpdyProxy
2033 // authentication, if any.
2034 const char kSpdyProxyAuthOrigin[] = "auth.spdyproxy.origin";
2036 // Boolean that specifies whether to allow basic auth prompting on cross-
2037 // domain sub-content requests.
2038 const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
2040 // Boolean that specifies whether the built-in asynchronous DNS client is used.
2041 const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
2043 // An int64 pref that contains the total size of all HTTP content that has been
2044 // received from the network.
2045 const char kHttpReceivedContentLength[] = "http_received_content_length";
2047 // An int64 pref that contains the total original size of all HTTP content that
2048 // was received over the network.
2049 const char kHttpOriginalContentLength[] = "http_original_content_length";
2051 #if defined(OS_ANDROID) || defined(OS_IOS)
2052 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
2053 // that was received from the network.
2054 const char kDailyHttpOriginalContentLength[] =
2055 "data_reduction.daily_original_length";
2057 // A List pref that contains daily totals of the size of all HTTP/HTTPS content
2058 // that was received from the network.
2059 const char kDailyHttpReceivedContentLength[] =
2060 "data_reduction.daily_received_length";
2062 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
2063 // that was received while the data reduction proxy is enabled.
2064 const char kDailyOriginalContentLengthWithDataReductionProxyEnabled[] =
2065 "data_reduction.daily_original_length_with_data_reduction_proxy_enabled";
2067 // A List pref that contains daily totals of the size of all HTTP/HTTPS
2068 // that was received while the data reduction proxy is enabled.
2069 const char kDailyContentLengthWithDataReductionProxyEnabled[] =
2070 "data_reduction.daily_received_length_with_data_reduction_proxy_enabled";
2072 const char kDailyContentLengthHttpsWithDataReductionProxyEnabled[] =
2073 "data_reduction.daily_received_length_https_with_"
2074 "data_reduction_proxy_enabled";
2075 const char kDailyContentLengthShortBypassWithDataReductionProxyEnabled[] =
2076 "data_reduction.daily_received_length_short_bypass_with_"
2077 "data_reduction_proxy_enabled";
2078 const char kDailyContentLengthLongBypassWithDataReductionProxyEnabled[] =
2079 "data_reduction.daily_received_length_long_bypass_with_"
2080 "data_reduction_proxy_enabled";
2081 const char kDailyContentLengthUnknownWithDataReductionProxyEnabled[] =
2082 "data_reduction.daily_received_length_unknown_with_"
2083 "data_reduction_proxy_enabled";
2085 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
2086 // that was received via the data reduction proxy.
2087 const char kDailyOriginalContentLengthViaDataReductionProxy[] =
2088 "data_reduction.daily_original_length_via_data_reduction_proxy";
2090 // A List pref that contains daily totals of the size of all HTTP/HTTPS
2091 // that was received via the data reduction proxy.
2092 const char kDailyContentLengthViaDataReductionProxy[] =
2093 "data_reduction.daily_received_length_via_data_reduction_proxy";
2095 // An int64 pref that contains an internal representation of midnight on the
2096 // date of the last update to |kDailyHttp{Original,Received}ContentLength|.
2097 const char kDailyHttpContentLengthLastUpdateDate[] =
2098 "data_reduction.last_update_date";
2099 #endif // defined(OS_ANDROID) || defined(OS_IOS)
2101 // A pref holding the value of the policy used to explicitly allow or deny
2102 // access to audio capture devices. When enabled or not set, the user is
2103 // prompted for device access. When disabled, access to audio capture devices
2104 // is not allowed and no prompt will be shown.
2105 // See also kAudioCaptureAllowedUrls.
2106 const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
2107 // Holds URL patterns that specify URLs that will be granted access to audio
2108 // capture devices without prompt. NOTE: This whitelist is currently only
2109 // supported when running in kiosk mode.
2110 // TODO(tommi): Update comment when this is supported for all modes.
2111 const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
2113 // A pref holding the value of the policy used to explicitly allow or deny
2114 // access to video capture devices. When enabled or not set, the user is
2115 // prompted for device access. When disabled, access to video capture devices
2116 // is not allowed and no prompt will be shown.
2117 const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
2118 // Holds URL patterns that specify URLs that will be granted access to video
2119 // capture devices without prompt. NOTE: This whitelist is currently only
2120 // supported when running in kiosk mode.
2121 // TODO(tommi): Update comment when this is supported for all modes.
2122 const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
2124 // A boolean pref that controls the enabled-state of hotword search voice
2125 // trigger.
2126 const char kHotwordSearchEnabled[] = "hotword.search_enabled";
2128 // An integer pref that keeps track of how many times the opt in popup for
2129 // hotword void search has been shown to the user. After this pref has reached
2130 // the maximum number of times as defined by the HotwordService, the popup is no
2131 // longer shown.
2132 const char kHotwordOptInPopupTimesShown[] = "hotword.opt_in_popup_times_shown";
2134 #if defined(OS_ANDROID)
2135 // Boolean that controls the global enabled-state of protected media identifier.
2136 const char kProtectedMediaIdentifierEnabled[] =
2137 "protected_media_identifier.enabled";
2138 #endif
2140 #if defined(OS_CHROMEOS)
2141 // Dictionary for transient storage of settings that should go into device
2142 // settings storage before owner has been assigned.
2143 const char kDeviceSettingsCache[] = "signed_settings_cache";
2145 // The hardware keyboard layout of the device. This should look like
2146 // "xkb:us::eng".
2147 const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
2149 // An integer pref which shows number of times carrier deal promo
2150 // notification has been shown to user.
2151 const char kCarrierDealPromoShown[] =
2152 "settings.internet.mobile.carrier_deal_promo_shown";
2154 // A boolean pref of the auto-enrollment decision. Its value is only valid if
2155 // it's not the default value; otherwise, no auto-enrollment decision has been
2156 // made yet.
2157 const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
2159 // An integer pref with the maximum number of bits used by the client in a
2160 // previous auto-enrollment request. If the client goes through an auto update
2161 // during OOBE and reboots into a version of the OS with a larger maximum
2162 // modulus, then it will retry auto-enrollment using the updated value.
2163 const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
2165 // The local state pref that stores device activity times before reporting
2166 // them to the policy server.
2167 const char kDeviceActivityTimes[] = "device_status.activity_times";
2169 // A pref holding the last known location when device location reporting is
2170 // enabled.
2171 const char kDeviceLocation[] = "device_status.location";
2173 // A string that is used to store first-time sync startup after once sync is
2174 // disabled. This will be refreshed every sign-in.
2175 const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token";
2177 // A pref holding the value of the policy used to disable mounting of external
2178 // storage for the user.
2179 const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
2181 // A pref holding the value of the policy used to disable playing audio on
2182 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
2183 // it, therefore when the policy is lifted the original mute state is restored.
2184 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
2186 // A dictionary that maps usernames to wallpaper properties.
2187 const char kUsersWallpaperInfo[] = "user_wallpaper_info";
2189 // Copy of owner swap mouse buttons option to use on login screen.
2190 const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
2192 // Copy of owner tap-to-click option to use on login screen.
2193 const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
2195 // The length of device uptime after which an automatic reboot is scheduled,
2196 // expressed in seconds.
2197 const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
2199 // Whether an automatic reboot should be scheduled when an update has been
2200 // applied and a reboot is required to complete the update process.
2201 const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
2203 // An any-api scoped refresh token for enterprise-enrolled devices. Allows
2204 // for connection to Google APIs when the user isn't logged in. Currently used
2205 // for for getting a cloudprint scoped token to allow printing in Guest mode,
2206 // Public Accounts and kiosks.
2207 const char kDeviceRobotAnyApiRefreshToken[] =
2208 "device_robot_refresh_token.any-api";
2210 // Device requisition for enterprise enrollment.
2211 const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
2213 // Whether to automatically start the enterprise enrollment step during OOBE.
2214 const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
2216 // Whether the user may exit enrollment.
2217 const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
2219 // Dictionary of per-user Least Recently Used input method (used at login
2220 // screen).
2221 extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
2223 // A dictionary pref of the echo offer check flag. It sets offer info when
2224 // an offer is checked.
2225 extern const char kEchoCheckedOffers[] = "EchoCheckedOffers";
2227 // Key name of a dictionary in local state to store cached multiprofle user
2228 // behavior policy value.
2229 const char kCachedMultiProfileUserBehavior[] = "CachedMultiProfileUserBehavior";
2231 // A string pref with initial locale set in VPD or manifest.
2232 const char kInitialLocale[] = "intl.initial_locale";
2234 // A boolean pref of the OOBE complete flag (first OOBE part before login).
2235 const char kOobeComplete[] = "OobeComplete";
2237 // A boolean pref of the device registered flag (second part after first login).
2238 const char kDeviceRegistered[] = "DeviceRegistered";
2240 // List of usernames that used certificates pushed by policy before.
2241 // This is used to prevent these users from joining multiprofile sessions.
2242 const char kUsedPolicyCertificates[] = "policy.used_policy_certificates";
2244 #endif
2246 // Whether there is a Flash version installed that supports clearing LSO data.
2247 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
2249 // Whether we should show Pepper Flash-specific settings.
2250 const char kPepperFlashSettingsEnabled[] =
2251 "browser.pepper_flash_settings_enabled";
2253 // String which specifies where to store the disk cache.
2254 const char kDiskCacheDir[] = "browser.disk_cache_dir";
2255 // Pref name for the policy specifying the maximal cache size.
2256 const char kDiskCacheSize[] = "browser.disk_cache_size";
2257 // Pref name for the policy specifying the maximal media cache size.
2258 const char kMediaCacheSize[] = "browser.media_cache_size";
2260 // Specifies the release channel that the device should be locked to.
2261 // Possible values: "stable-channel", "beta-channel", "dev-channel", or an
2262 // empty string, in which case the value will be ignored.
2263 // TODO(dubroy): This preference may not be necessary once
2264 // http://crosbug.com/17015 is implemented and the update engine can just
2265 // fetch the correct value from the policy.
2266 const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
2268 const char kPerformanceTracingEnabled[] =
2269 "feedback.performance_tracing_enabled";
2271 // Value of the enums in TabStrip::LayoutType as an int.
2272 const char kTabStripLayoutType[] = "tab_strip_layout_type";
2274 // Indicates that factory reset was requested from options page.
2275 const char kFactoryResetRequested[] = "FactoryResetRequested";
2277 // Boolean recording whether we have showed a balloon that calls out the message
2278 // center for desktop notifications.
2279 const char kMessageCenterShowedFirstRunBalloon[] =
2280 "message_center.showed_first_run_balloon";
2282 // *************** SERVICE PREFS ***************
2283 // These are attached to the service process.
2285 const char kCloudPrintRoot[] = "cloud_print";
2286 const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
2287 // The unique id for this instance of the cloud print proxy.
2288 const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
2289 // The GAIA auth token for Cloud Print
2290 const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
2291 // The GAIA auth token used by Cloud Print to authenticate with the XMPP server
2292 // This should eventually go away because the above token should work for both.
2293 const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
2294 // The email address of the account used to authenticate with the Cloud Print
2295 // server.
2296 const char kCloudPrintEmail[] = "cloud_print.email";
2297 // Settings specific to underlying print system.
2298 const char kCloudPrintPrintSystemSettings[] =
2299 "cloud_print.print_system_settings";
2300 // A boolean indicating whether we should poll for print jobs when don't have
2301 // an XMPP connection (false by default).
2302 const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
2303 const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
2304 const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
2305 // A boolean indicating whether we should connect to cloud print new printers.
2306 const char kCloudPrintConnectNewPrinters[] =
2307 "cloud_print.user_settings.connectNewPrinters";
2308 // A boolean indicating whether we should ping XMPP connection.
2309 const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
2310 // An int value indicating the average timeout between xmpp pings.
2311 const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2312 // Dictionary with settings stored by connector setup page.
2313 const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2314 // List of printers settings.
2315 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
2316 // A boolean indicating whether submitting jobs to Google Cloud Print is
2317 // blocked by policy.
2318 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2320 // Preference to store proxy settings.
2321 const char kProxy[] = "proxy";
2322 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2324 // Preferences that are exclusively used to store managed values for default
2325 // content settings.
2326 const char kManagedDefaultCookiesSetting[] =
2327 "profile.managed_default_content_settings.cookies";
2328 const char kManagedDefaultImagesSetting[] =
2329 "profile.managed_default_content_settings.images";
2330 const char kManagedDefaultJavaScriptSetting[] =
2331 "profile.managed_default_content_settings.javascript";
2332 const char kManagedDefaultPluginsSetting[] =
2333 "profile.managed_default_content_settings.plugins";
2334 const char kManagedDefaultPopupsSetting[] =
2335 "profile.managed_default_content_settings.popups";
2336 const char kManagedDefaultGeolocationSetting[] =
2337 "profile.managed_default_content_settings.geolocation";
2338 const char kManagedDefaultNotificationsSetting[] =
2339 "profile.managed_default_content_settings.notifications";
2340 const char kManagedDefaultMediaStreamSetting[] =
2341 "profile.managed_default_content_settings.media_stream";
2343 // Preferences that are exclusively used to store managed
2344 // content settings patterns.
2345 const char kManagedCookiesAllowedForUrls[] =
2346 "profile.managed_cookies_allowed_for_urls";
2347 const char kManagedCookiesBlockedForUrls[] =
2348 "profile.managed_cookies_blocked_for_urls";
2349 const char kManagedCookiesSessionOnlyForUrls[] =
2350 "profile.managed_cookies_sessiononly_for_urls";
2351 const char kManagedImagesAllowedForUrls[] =
2352 "profile.managed_images_allowed_for_urls";
2353 const char kManagedImagesBlockedForUrls[] =
2354 "profile.managed_images_blocked_for_urls";
2355 const char kManagedJavaScriptAllowedForUrls[] =
2356 "profile.managed_javascript_allowed_for_urls";
2357 const char kManagedJavaScriptBlockedForUrls[] =
2358 "profile.managed_javascript_blocked_for_urls";
2359 const char kManagedPluginsAllowedForUrls[] =
2360 "profile.managed_plugins_allowed_for_urls";
2361 const char kManagedPluginsBlockedForUrls[] =
2362 "profile.managed_plugins_blocked_for_urls";
2363 const char kManagedPopupsAllowedForUrls[] =
2364 "profile.managed_popups_allowed_for_urls";
2365 const char kManagedPopupsBlockedForUrls[] =
2366 "profile.managed_popups_blocked_for_urls";
2367 const char kManagedNotificationsAllowedForUrls[] =
2368 "profile.managed_notifications_allowed_for_urls";
2369 const char kManagedNotificationsBlockedForUrls[] =
2370 "profile.managed_notifications_blocked_for_urls";
2371 const char kManagedAutoSelectCertificateForUrls[] =
2372 "profile.managed_auto_select_certificate_for_urls";
2374 #if defined(OS_MACOSX)
2375 // Set to true if the user removed our login item so we should not create a new
2376 // one when uninstalling background apps.
2377 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2379 // Set to true if Chrome already created a login item, so there's no need to
2380 // create another one.
2381 const char kChromeCreatedLoginItem[] =
2382 "background_mode.chrome_created_login_item";
2384 // Set to true once we've initialized kChromeCreatedLoginItem for the first
2385 // time.
2386 const char kMigratedLoginItemPref[] =
2387 "background_mode.migrated_login_item_pref";
2388 #endif
2390 // Set to true if background mode is enabled on this browser.
2391 const char kBackgroundModeEnabled[] = "background_mode.enabled";
2393 // Set to true if hardware acceleration mode is enabled on this browser.
2394 const char kHardwareAccelerationModeEnabled[] =
2395 "hardware_acceleration_mode.enabled";
2397 // Hardware acceleration mode from previous browser launch.
2398 const char kHardwareAccelerationModePrevious[] =
2399 "hardware_acceleration_mode_previous";
2401 // List of protocol handlers.
2402 const char kRegisteredProtocolHandlers[] =
2403 "custom_handlers.registered_protocol_handlers";
2405 // List of protocol handlers the user has requested not to be asked about again.
2406 const char kIgnoredProtocolHandlers[] =
2407 "custom_handlers.ignored_protocol_handlers";
2409 // Whether user-specified handlers for protocols and content types can be
2410 // specified.
2411 const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2413 // Integer that specifies the policy refresh rate for device-policy in
2414 // milliseconds. Not all values are meaningful, so it is clamped to a sane range
2415 // by the cloud policy subsystem.
2416 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2418 // String that represents the recovery component last downloaded version. This
2419 // takes the usual 'a.b.c.d' notation.
2420 const char kRecoveryComponentVersion[] = "recovery_component.version";
2422 // String that stores the component updater last known state. This is used for
2423 // troubleshooting.
2424 const char kComponentUpdaterState[] = "component_updater.state";
2426 // The next media gallery ID to assign.
2427 const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2429 // A list of dictionaries, where each dictionary represents a known media
2430 // gallery.
2431 const char kMediaGalleriesRememberedGalleries[] =
2432 "media_galleries.remembered_galleries";
2434 // The last time a media scan completed.
2435 const char kMediaGalleriesLastScanTime[] = "media_galleries.last_scan_time";
2437 #if defined(USE_ASH)
2438 // |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2439 // local variant is not synced and is used if set. If the local variant is not
2440 // set its value is set from the synced value (once prefs have been
2441 // synced). This gives a per-machine setting that is initialized from the last
2442 // set value.
2443 // These values are default on the machine but can be overridden by per-display
2444 // values in kShelfPreferences (unless overridden by managed policy).
2445 // String value corresponding to ash::Shell::ShelfAlignment.
2446 const char kShelfAlignment[] = "shelf_alignment";
2447 const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2448 // String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2449 const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2450 const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2451 // This value stores chrome icon's index in the launcher. This should be handled
2452 // separately with app shortcut's index because of ShelfModel's backward
2453 // compatability. If we add chrome icon index to |kPinnedLauncherApps|, its
2454 // index is also stored in the |kPinnedLauncherApp| pref. It may causes
2455 // creating two chrome icons.
2456 const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2457 // Dictionary value that holds per-display preference of shelf alignment and
2458 // auto-hide behavior. Key of the dictionary is the id of the display, and
2459 // its value is a dictionary whose keys are kShelfAlignment and
2460 // kShelfAutoHideBehavior.
2461 const char kShelfPreferences[] = "shelf_preferences";
2463 // Integer value in milliseconds indicating the length of time for which a
2464 // confirmation dialog should be shown when the user presses the logout button.
2465 // A value of 0 indicates that logout should happen immediately, without showing
2466 // a confirmation dialog.
2467 const char kLogoutDialogDurationMs[] = "logout_dialog_duration_ms";
2468 const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2469 // Boolean value indicating whether to show a logout button in the ash tray.
2470 const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2471 #endif
2473 #if defined(USE_AURA)
2474 // Tuning settings for gestures.
2475 const char kFlingVelocityCap[] = "gesture.fling_velocity_cap";
2476 const char kLongPressTimeInSeconds[] =
2477 "gesture.long_press_time_in_seconds";
2478 const char kMaxDistanceBetweenTapsForDoubleTap[] =
2479 "gesture.max_distance_between_taps_for_double_tap";
2480 const char kMaxDistanceForTwoFingerTapInPixels[] =
2481 "gesture.max_distance_for_two_finger_tap_in_pixels";
2482 const char kMaxSecondsBetweenDoubleClick[] =
2483 "gesture.max_seconds_between_double_click";
2484 const char kMaxSeparationForGestureTouchesInPixels[] =
2485 "gesture.max_separation_for_gesture_touches_in_pixels";
2486 const char kMaxSwipeDeviationRatio[] =
2487 "gesture.max_swipe_deviation_ratio";
2488 const char kMaxTouchDownDurationInSecondsForClick[] =
2489 "gesture.max_touch_down_duration_in_seconds_for_click";
2490 const char kMaxTouchMoveInPixelsForClick[] =
2491 "gesture.max_touch_move_in_pixels_for_click";
2492 const char kMinDistanceForPinchScrollInPixels[] =
2493 "gesture.min_distance_for_pinch_scroll_in_pixels";
2494 const char kMinFlickSpeedSquared[] =
2495 "gesture.min_flick_speed_squared";
2496 const char kMinPinchUpdateDistanceInPixels[] =
2497 "gesture.min_pinch_update_distance_in_pixels";
2498 const char kMinRailBreakVelocity[] =
2499 "gesture.min_rail_break_velocity";
2500 const char kMinScrollDeltaSquared[] =
2501 "gesture.min_scroll_delta_squared";
2502 const char kMinSwipeSpeed[] =
2503 "gesture.min_swipe_speed";
2504 const char kMinTouchDownDurationInSecondsForClick[] =
2505 "gesture.min_touch_down_duration_in_seconds_for_click";
2506 const char kPointsBufferedForVelocity[] =
2507 "gesture.points_buffered_for_velocity";
2508 const char kRailBreakProportion[] =
2509 "gesture.rail_break_proportion";
2510 const char kRailStartProportion[] =
2511 "gesture.rail_start_proportion";
2512 const char kScrollPredictionSeconds[] =
2513 "gesture.scroll_prediction_seconds";
2514 const char kSemiLongPressTimeInSeconds[] =
2515 "gesture.semi_long_press_time_in_seconds";
2516 const char kShowPressDelayInMS[] =
2517 "gesture.show_press_delay_in_ms";
2518 const char kTabScrubActivationDelayInMS[] =
2519 "gesture.tab_scrub_activation_delay_in_ms";
2520 const char kFlingAccelerationCurveCoefficient0[] =
2521 "gesture.fling_acceleration_curve_coefficient_0";
2522 const char kFlingAccelerationCurveCoefficient1[] =
2523 "gesture.fling_acceleration_curve_coefficient_1";
2524 const char kFlingAccelerationCurveCoefficient2[] =
2525 "gesture.fling_acceleration_curve_coefficient_2";
2526 const char kFlingAccelerationCurveCoefficient3[] =
2527 "gesture.fling_acceleration_curve_coefficient_3";
2528 const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha";
2529 const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta";
2530 const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma";
2531 const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha";
2532 const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta";
2533 const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma";
2534 const char kFlingMaxCancelToDownTimeInMs[] =
2535 "gesture.fling_max_cancel_to_down_time_in_ms";
2536 const char kFlingMaxTapGapTimeInMs[] =
2537 "gesture.fling_max_tap_gap_time_in_ms";
2538 const char kOverscrollHorizontalThresholdComplete[] =
2539 "overscroll.horizontal_threshold_complete";
2540 const char kOverscrollVerticalThresholdComplete[] =
2541 "overscroll.vertical_threshold_complete";
2542 const char kOverscrollMinimumThresholdStart[] =
2543 "overscroll.minimum_threshold_start";
2544 const char kOverscrollMinimumThresholdStartTouchpad[] =
2545 "overscroll.minimum_threshold_start_touchpad";
2546 const char kOverscrollVerticalThresholdStart[] =
2547 "overscroll.vertical_threshold_start";
2548 const char kOverscrollHorizontalResistThreshold[] =
2549 "overscroll.horizontal_resist_threshold";
2550 const char kOverscrollVerticalResistThreshold[] =
2551 "overscroll.vertical_resist_threshold";
2552 // TODO(mohsen): Remove following pref in M33. By then, it will have been
2553 // cleared from preferences file for majority of users and it will be ready to
2554 // be removed: crbug.com/269292.
2555 // A temporary pref to do a one-time wipe of gesture preferences.
2556 const char kGestureConfigIsTrustworthy[] = "gesture.config_is_trustworthy";
2557 #endif
2559 // Counts how many more times the 'profile on a network share' warning should be
2560 // shown to the user before the next silence period.
2561 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2562 // Tracks the time of the last shown warning. Used to reset
2563 // |network_profile.warnings_left| after a silence period.
2564 const char kNetworkProfileLastWarningTime[] =
2565 "network_profile.last_warning_time";
2567 #if defined(OS_CHROMEOS)
2568 // The RLZ brand code, if enabled.
2569 const char kRLZBrand[] = "rlz.brand";
2570 // Whether RLZ pings are disabled.
2571 const char kRLZDisabled[] = "rlz.disabled";
2572 #endif
2574 #if defined(ENABLE_APP_LIST)
2575 // The directory in user data dir that contains the profile to be used with the
2576 // app launcher.
2577 extern const char kAppListProfile[] = "app_list.profile";
2579 // Whether to show the app list on a browser relaunch. Used when switching out
2580 // of metro mode after a user gesture requests showing the app list.
2581 const char kRestartWithAppList[] = "app_list.show_on_relaunch";
2583 // The number of times the app launcher was launched since last ping and
2584 // the time of the last ping.
2585 extern const char kAppListLaunchCount[] = "app_list.launch_count";
2586 extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2588 // The number of times the an app was launched from the app launcher since last
2589 // ping and the time of the last ping.
2590 extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2591 extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2593 // A boolean that tracks whether the user has ever enabled the app launcher.
2594 const char kAppLauncherHasBeenEnabled[] =
2595 "apps.app_launcher.has_been_enabled";
2597 // TODO(calamity): remove this pref since app launcher will always be
2598 // installed.
2599 // Local state caching knowledge of whether the app launcher is installed.
2600 const char kAppLauncherIsEnabled[] =
2601 "apps.app_launcher.should_show_apps_page";
2603 // Integer representing the version of the app launcher shortcut installed on
2604 // the system. Incremented, e.g., when embedded icons change.
2605 const char kAppLauncherShortcutVersion[] = "apps.app_launcher.shortcut_version";
2607 // A boolean identifying if we should show the app launcher promo or not.
2608 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
2609 #endif
2611 // If set, the user requested to launch the app with this extension id while
2612 // in Metro mode, and then relaunched to Desktop mode to start it.
2613 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
2615 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
2616 // launch of the specified app when restarting Chrome in desktop mode.
2617 const char kAppLaunchForMetroRestartProfile[] =
2618 "apps.app_launch_for_metro_restart_profile";
2620 // A boolean that indicates whether app shortcuts have been created.
2621 // On a transition from false to true, shortcuts are created for all apps.
2622 const char kAppShortcutsHaveBeenCreated[] = "apps.shortcuts_have_been_created";
2624 // How often the bubble has been shown.
2625 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2627 // A string pref for storing the salt used to compute the pepper device ID.
2628 const char kDRMSalt[] = "settings.privacy.drm_salt";
2629 // A boolean pref that enables the (private) pepper GetDeviceID() call and
2630 // enables the use of remote attestation for content protection.
2631 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2633 // An integer per-profile pref that signals if the watchdog extension is
2634 // installed and active. We need to know if the watchdog extension active for
2635 // ActivityLog initialization before the extension system is initialized.
2636 const char kWatchdogExtensionActive[] =
2637 "profile.extensions.activity_log.num_consumers_active";
2638 // The old version was a bool.
2639 const char kWatchdogExtensionActiveOld[] =
2640 "profile.extensions.activity_log.watchdog_extension_active";
2642 // A dictionary pref which maps profile names to dictionary values which hold
2643 // hashes of profile prefs that we track to detect changes that happen outside
2644 // of Chrome.
2645 const char kProfilePreferenceHashes[] = "profile.preference_hashes";
2647 // A timestamp (stored in base::Time::ToInternalValue format) of the last time
2648 // a preference was reset.
2649 const char kProfilePreferenceResetTime[] = "profile.preference_reset_time";
2651 // Stores a pair of local time and corresponding network time to bootstrap
2652 // network time tracker when browser starts.
2653 const char kNetworkTimeMapping[] = "profile.network_time_mapping";
2655 #if defined(OS_ANDROID)
2656 // A list of partner bookmark rename/remove mappings.
2657 // Each list item is a dictionary containing a "url", a "provider_title" and
2658 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2659 // given by the PartnerBookmarksProvider and either the user-visible renamed
2660 // title or an empty string if the bookmark node was removed.
2661 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2662 #endif
2664 #if defined(OS_WIN)
2665 // Whether the password was blank, only valid if OS password was last changed
2666 // on or before the value contained in kOsPasswordLastChanged.
2667 const char kOsPasswordBlank[] = "password_manager.os_password_blank";
2669 // The number of seconds since epoch that the OS password was last changed.
2670 const char kOsPasswordLastChanged[] =
2671 "password_manager.os_password_last_changed";
2672 #endif
2674 // Whether DNS Quick Check is disabled in proxy resolution.
2675 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2677 } // namespace prefs