pref_names.cc revision d3868032626d59662ff73b372b5d584c1d144c53
13c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Copyright (c) 2012 The Chromium Authors. All rights reserved.
23c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Use of this source code is governed by a BSD-style license that can be
33c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// found in the LICENSE file.
43c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
53c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "chrome/common/pref_names.h"
63c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
73c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "base/basictypes.h"
83c827367444ee418f129b2c238299f49d3264554Jarkko Poyry#include "chrome/common/pref_font_webkit_names.h"
93c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
103c827367444ee418f129b2c238299f49d3264554Jarkko Poyrynamespace prefs {
113c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
123c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// *************** PROFILE PREFS ***************
133c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// These are attached to the user profile
143c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
153c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// A string property indicating whether default apps should be installed
163c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// in this profile.  Use the value "install" to enable defaults apps, or
173c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// "noinstall" to disable them.  This property is usually set in the
183c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// master_preferences and copied into the profile preferences on first run.
193c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Defaults apps are installed only when creating a new profile.
203c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kDefaultApps[] = "default_apps";
213c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
223c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Whether we have installed default apps yet in this profile.
233c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kDefaultAppsInstalled[] = "default_apps_installed";
243c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
253c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Disables screenshot accelerators and extension APIs.
263c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// This setting resides both in profile prefs and local state. Accelerator
273c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// handling code reads local state, while extension APIs use profile pref.
283c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kDisableScreenshots[] = "disable_screenshots";
293c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
303c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// A boolean specifying whether the New Tab page is the home page or not.
313c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
323c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
333c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// This is the URL of the page to load when opening new tabs.
343c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kHomePage[] = "homepage";
353c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
363c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Maps host names to whether the host is manually allowed or blocked.
373c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kManagedModeManualHosts[] = "profile.managed.manual_hosts";
383c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Maps URLs to whether the URL is manually allowed or blocked.
393c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kManagedModeManualURLs[] = "profile.managed.manual_urls";
403c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
413c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Stores the email address associated with the google account of the custodian
423c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// of the managed user, set when the managed user is created.
433c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kManagedUserCustodianEmail[] = "profile.managed.custodian_email";
443c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
453c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Stores the display name associated with the google account of the custodian
463c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// of the managed user, updated (if possible) each time the managed user
473c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// starts a session.
483c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kManagedUserCustodianName[] = "profile.managed.custodian_name";
493c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
503c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// An integer that keeps track of the profile icon version. This allows us to
513c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// determine the state of the profile icon for icon format changes.
523c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kProfileIconVersion[] = "profile.icon_version";
533c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
543c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// Used to determine if the last session exited cleanly. Set to false when
553c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// first opened, and to true when closing. On startup if the value is false,
563c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// it means the profile didn't exit cleanly.
573c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// DEPRECATED: this is replaced by kSessionExitType and exists for backwards
583c827367444ee418f129b2c238299f49d3264554Jarkko Poyry// compatability.
593c827367444ee418f129b2c238299f49d3264554Jarkko Poyryconst char kSessionExitedCleanly[] = "profile.exited_cleanly";
603c827367444ee418f129b2c238299f49d3264554Jarkko Poyry
61// A string pref whose values is one of the values defined by
62// |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
63// one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
64// shutdown. Used to determine the exit type the last time the profile was open.
65const char kSessionExitType[] = "profile.exit_type";
66
67// An integer pref. Holds one of several values:
68// 0: (deprecated) open the homepage on startup.
69// 1: restore the last session.
70// 2: this was used to indicate a specific session should be restored. It is
71//    no longer used, but saved to avoid conflict with old preferences.
72// 3: unused, previously indicated the user wants to restore a saved session.
73// 4: restore the URLs defined in kURLsToRestoreOnStartup.
74// 5: open the New Tab Page on startup.
75const char kRestoreOnStartup[] = "session.restore_on_startup";
76
77// A preference to keep track of whether we have already checked whether we
78// need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
79// We only need to do this check once, on upgrade from m18 or lower to m19 or
80// higher.
81const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
82
83// The URLs to restore on startup or when the home button is pressed. The URLs
84// are only restored on startup if kRestoreOnStartup is 4.
85const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
86
87// The application locale.
88// For OS_CHROMEOS we maintain kApplicationLocale property in both local state
89// and user's profile.  Global property determines locale of login screen,
90// while user's profile determines his personal locale preference.
91const char kApplicationLocale[] = "intl.app_locale";
92#if defined(OS_CHROMEOS)
93// Locale preference of device' owner.  ChromeOS device appears in this locale
94// after startup/wakeup/signout.
95const char kOwnerLocale[] = "intl.owner_locale";
96// Locale accepted by user.  Non-syncable.
97// Used to determine whether we need to show Locale Change notification.
98const char kApplicationLocaleAccepted[] = "intl.app_locale_accepted";
99// Non-syncable item.
100// It is used in two distinct ways.
101// (1) Used for two-step initialization of locale in ChromeOS
102//     because synchronization of kApplicationLocale is not instant.
103// (2) Used to detect locale change.  Locale change is detected by
104//     LocaleChangeGuard in case values of kApplicationLocaleBackup and
105//     kApplicationLocale are both non-empty and differ.
106// Following is a table showing how state of those prefs may change upon
107// common real-life use cases:
108//                                  AppLocale Backup Accepted
109// Initial login                       -        A       -
110// Sync                                B        A       -
111// Accept (B)                          B        B       B
112// -----------------------------------------------------------
113// Initial login                       -        A       -
114// No sync and second login            A        A       -
115// Change options                      B        B       -
116// -----------------------------------------------------------
117// Initial login                       -        A       -
118// Sync                                A        A       -
119// Locale changed on login screen      A        C       -
120// Accept (A)                          A        A       A
121// -----------------------------------------------------------
122// Initial login                       -        A       -
123// Sync                                B        A       -
124// Revert                              A        A       -
125const char kApplicationLocaleBackup[] = "intl.app_locale_backup";
126#endif
127
128// The default character encoding to assume for a web page in the
129// absence of MIME charset specification
130const char kDefaultCharset[] = "intl.charset_default";
131
132// The value to use for Accept-Languages HTTP header when making an HTTP
133// request.
134const char kAcceptLanguages[] = "intl.accept_languages";
135
136// The value to use for showing locale-dependent encoding list for different
137// locale, it's initialized from the corresponding string resource that is
138// stored in non-translatable part of the resource bundle.
139const char kStaticEncodings[] = "intl.static_encodings";
140
141// Obselete WebKit prefs for migration.
142const char kGlobalDefaultCharset[] = "intl.global.charset_default";
143const char kWebKitGlobalDefaultFontSize[] =
144    "webkit.webprefs.global.default_font_size";
145const char kWebKitGlobalDefaultFixedFontSize[] =
146    "webkit.webprefs.global.default_fixed_font_size";
147const char kWebKitGlobalMinimumFontSize[] =
148    "webkit.webprefs.global.minimum_font_size";
149const char kWebKitGlobalMinimumLogicalFontSize[] =
150    "webkit.webprefs.global.minimum_logical_font_size";
151const char kWebKitGlobalJavascriptCanOpenWindowsAutomatically[] =
152    "webkit.webprefs.global.javascript_can_open_windows_automatically";
153const char kWebKitGlobalJavascriptEnabled[] =
154    "webkit.webprefs.global.javascript_enabled";
155const char kWebKitGlobalLoadsImagesAutomatically[] =
156    "webkit.webprefs.global.loads_images_automatically";
157const char kWebKitGlobalPluginsEnabled[] =
158    "webkit.webprefs.global.plugins_enabled";
159const char kWebKitGlobalStandardFontFamily[] =
160    "webkit.webprefs.global.standard_font_family";
161const char kWebKitGlobalFixedFontFamily[] =
162    "webkit.webprefs.global.fixed_font_family";
163const char kWebKitGlobalSerifFontFamily[] =
164    "webkit.webprefs.global.serif_font_family";
165const char kWebKitGlobalSansSerifFontFamily[] =
166    "webkit.webprefs.global.sansserif_font_family";
167const char kWebKitGlobalCursiveFontFamily[] =
168    "webkit.webprefs.global.cursive_font_family";
169const char kWebKitGlobalFantasyFontFamily[] =
170    "webkit.webprefs.global.fantasy_font_family";
171const char kWebKitOldStandardFontFamily[] =
172    "webkit.webprefs.standard_font_family";
173const char kWebKitOldFixedFontFamily[] = "webkit.webprefs.fixed_font_family";
174const char kWebKitOldSerifFontFamily[] = "webkit.webprefs.serif_font_family";
175const char kWebKitOldSansSerifFontFamily[] =
176    "webkit.webprefs.sansserif_font_family";
177const char kWebKitOldCursiveFontFamily[] =
178    "webkit.webprefs.cursive_font_family";
179const char kWebKitOldFantasyFontFamily[] =
180    "webkit.webprefs.fantasy_font_family";
181
182// If these change, the corresponding enums in the extension API
183// experimental.fontSettings.json must also change.
184const char* const kWebKitScriptsForFontFamilyMaps[] = {
185#define EXPAND_SCRIPT_FONT(x, script_name) script_name ,
186#include "chrome/common/pref_font_script_names-inl.h"
187ALL_FONT_SCRIPTS("unused param")
188#undef EXPAND_SCRIPT_FONT
189};
190
191const size_t kWebKitScriptsForFontFamilyMapsLength =
192    arraysize(kWebKitScriptsForFontFamilyMaps);
193
194// Strings for WebKit font family preferences. If these change, the pref prefix
195// in pref_names_util.cc and the pref format in font_settings_api.cc must also
196// change.
197const char kWebKitStandardFontFamilyMap[] =
198    WEBKIT_WEBPREFS_FONTS_STANDARD;
199const char kWebKitFixedFontFamilyMap[] =
200    WEBKIT_WEBPREFS_FONTS_FIXED;
201const char kWebKitSerifFontFamilyMap[] =
202    WEBKIT_WEBPREFS_FONTS_SERIF;
203const char kWebKitSansSerifFontFamilyMap[] =
204    WEBKIT_WEBPREFS_FONTS_SANSERIF;
205const char kWebKitCursiveFontFamilyMap[] =
206    WEBKIT_WEBPREFS_FONTS_CURSIVE;
207const char kWebKitFantasyFontFamilyMap[] =
208    WEBKIT_WEBPREFS_FONTS_FANTASY;
209const char kWebKitPictographFontFamilyMap[] =
210    WEBKIT_WEBPREFS_FONTS_PICTOGRAPH;
211const char kWebKitStandardFontFamilyArabic[] =
212    "webkit.webprefs.fonts.standard.Arab";
213const char kWebKitFixedFontFamilyArabic[] =
214    "webkit.webprefs.fonts.fixed.Arab";
215const char kWebKitSerifFontFamilyArabic[] =
216    "webkit.webprefs.fonts.serif.Arab";
217const char kWebKitSansSerifFontFamilyArabic[] =
218    "webkit.webprefs.fonts.sansserif.Arab";
219const char kWebKitStandardFontFamilyCyrillic[] =
220    "webkit.webprefs.fonts.standard.Cyrl";
221const char kWebKitFixedFontFamilyCyrillic[] =
222    "webkit.webprefs.fonts.fixed.Cyrl";
223const char kWebKitSerifFontFamilyCyrillic[] =
224    "webkit.webprefs.fonts.serif.Cyrl";
225const char kWebKitSansSerifFontFamilyCyrillic[] =
226    "webkit.webprefs.fonts.sansserif.Cyrl";
227const char kWebKitStandardFontFamilyGreek[] =
228    "webkit.webprefs.fonts.standard.Grek";
229const char kWebKitFixedFontFamilyGreek[] =
230    "webkit.webprefs.fonts.fixed.Grek";
231const char kWebKitSerifFontFamilyGreek[] =
232    "webkit.webprefs.fonts.serif.Grek";
233const char kWebKitSansSerifFontFamilyGreek[] =
234    "webkit.webprefs.fonts.sansserif.Grek";
235const char kWebKitStandardFontFamilyJapanese[] =
236    "webkit.webprefs.fonts.standard.Jpan";
237const char kWebKitFixedFontFamilyJapanese[] =
238    "webkit.webprefs.fonts.fixed.Jpan";
239const char kWebKitSerifFontFamilyJapanese[] =
240    "webkit.webprefs.fonts.serif.Jpan";
241const char kWebKitSansSerifFontFamilyJapanese[] =
242    "webkit.webprefs.fonts.sansserif.Jpan";
243const char kWebKitStandardFontFamilyKorean[] =
244    "webkit.webprefs.fonts.standard.Hang";
245const char kWebKitFixedFontFamilyKorean[] =
246    "webkit.webprefs.fonts.fixed.Hang";
247const char kWebKitSerifFontFamilyKorean[] =
248    "webkit.webprefs.fonts.serif.Hang";
249const char kWebKitSansSerifFontFamilyKorean[] =
250    "webkit.webprefs.fonts.sansserif.Hang";
251const char kWebKitCursiveFontFamilyKorean[] =
252    "webkit.webprefs.fonts.cursive.Hang";
253const char kWebKitStandardFontFamilySimplifiedHan[] =
254    "webkit.webprefs.fonts.standard.Hans";
255const char kWebKitFixedFontFamilySimplifiedHan[] =
256    "webkit.webprefs.fonts.fixed.Hans";
257const char kWebKitSerifFontFamilySimplifiedHan[] =
258    "webkit.webprefs.fonts.serif.Hans";
259const char kWebKitSansSerifFontFamilySimplifiedHan[] =
260    "webkit.webprefs.fonts.sansserif.Hans";
261const char kWebKitStandardFontFamilyTraditionalHan[] =
262    "webkit.webprefs.fonts.standard.Hant";
263const char kWebKitFixedFontFamilyTraditionalHan[] =
264    "webkit.webprefs.fonts.fixed.Hant";
265const char kWebKitSerifFontFamilyTraditionalHan[] =
266    "webkit.webprefs.fonts.serif.Hant";
267const char kWebKitSansSerifFontFamilyTraditionalHan[] =
268    "webkit.webprefs.fonts.sansserif.Hant";
269
270// WebKit preferences.
271const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
272const char kWebKitDomPasteEnabled[] = "webkit.webprefs.dom_paste_enabled";
273const char kWebKitShrinksStandaloneImagesToFit[] =
274    "webkit.webprefs.shrinks_standalone_images_to_fit";
275const char kWebKitInspectorSettings[] = "webkit.webprefs.inspector_settings";
276const char kWebKitUsesUniversalDetector[] =
277    "webkit.webprefs.uses_universal_detector";
278const char kWebKitTextAreasAreResizable[] =
279    "webkit.webprefs.text_areas_are_resizable";
280const char kWebKitJavaEnabled[] = "webkit.webprefs.java_enabled";
281const char kWebkitTabsToLinks[] = "webkit.webprefs.tabs_to_links";
282const char kWebKitAllowDisplayingInsecureContent[] =
283    "webkit.webprefs.allow_displaying_insecure_content";
284const char kWebKitAllowRunningInsecureContent[] =
285    "webkit.webprefs.allow_running_insecure_content";
286#if defined(OS_ANDROID)
287const char kWebKitFontScaleFactor[] = "webkit.webprefs.font_scale_factor";
288const char kWebKitForceEnableZoom[] = "webkit.webprefs.force_enable_zoom";
289const char kWebKitPasswordEchoEnabled[] =
290    "webkit.webprefs.password_echo_enabled";
291#endif
292
293const char kWebKitCommonScript[] = "Zyyy";
294const char kWebKitStandardFontFamily[] = "webkit.webprefs.fonts.standard.Zyyy";
295const char kWebKitFixedFontFamily[] = "webkit.webprefs.fonts.fixed.Zyyy";
296const char kWebKitSerifFontFamily[] = "webkit.webprefs.fonts.serif.Zyyy";
297const char kWebKitSansSerifFontFamily[] =
298    "webkit.webprefs.fonts.sansserif.Zyyy";
299const char kWebKitCursiveFontFamily[] = "webkit.webprefs.fonts.cursive.Zyyy";
300const char kWebKitFantasyFontFamily[] = "webkit.webprefs.fonts.fantasy.Zyyy";
301const char kWebKitPictographFontFamily[] =
302    "webkit.webprefs.fonts.pictograph.Zyyy";
303const char kWebKitDefaultFontSize[] = "webkit.webprefs.default_font_size";
304const char kWebKitDefaultFixedFontSize[] =
305    "webkit.webprefs.default_fixed_font_size";
306const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
307const char kWebKitMinimumLogicalFontSize[] =
308    "webkit.webprefs.minimum_logical_font_size";
309const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
310const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
311    "webkit.webprefs.javascript_can_open_windows_automatically";
312const char kWebKitLoadsImagesAutomatically[] =
313    "webkit.webprefs.loads_images_automatically";
314const char kWebKitPluginsEnabled[] = "webkit.webprefs.plugins_enabled";
315
316// Boolean which specifies whether the bookmark bar is visible on all tabs.
317const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs";
318
319// Boolean which specifies whether the apps shortcut is visible on the bookmark
320// bar.
321const char kShowAppsShortcutInBookmarkBar[] = "bookmark_bar.show_apps_shortcut";
322
323// Boolean which specifies the ids of the bookmark nodes that are expanded in
324// the bookmark editor.
325const char kBookmarkEditorExpandedNodes[] = "bookmark_editor.expanded_nodes";
326
327// Boolean controlling whether password generation is enabled (will allow users
328// to generated passwords on account creation pages).
329const char kPasswordGenerationEnabled[] = "password_generation.enabled";
330
331// Boolean that is true if the password manager is on (will record new
332// passwords and fill in known passwords).
333const char kPasswordManagerEnabled[] = "profile.password_manager_enabled";
334
335// Boolean controlling whether the password manager allows to retrieve passwords
336// in clear text.
337const char kPasswordManagerAllowShowPasswords[] =
338    "profile.password_manager_allow_show_passwords";
339
340// Booleans identifying whether normal and reverse auto-logins are enabled.
341const char kAutologinEnabled[] = "autologin.enabled";
342const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
343
344// List to keep track of emails for which the user has rejected one-click
345// sign-in.
346const char kReverseAutologinRejectedEmailList[] =
347    "reverse_autologin.rejected_email_list";
348
349// Boolean that is true when SafeBrowsing is enabled.
350const char kSafeBrowsingEnabled[] = "safebrowsing.enabled";
351
352// Boolean that is true when SafeBrowsing Malware Report is enabled.
353const char kSafeBrowsingReportingEnabled[] =
354    "safebrowsing.reporting_enabled";
355
356// Boolean that is true when the SafeBrowsing interstitial should not allow
357// users to proceed anyway.
358const char kSafeBrowsingProceedAnywayDisabled[] =
359    "safebrowsing.proceed_anyway_disabled";
360
361// Enum that specifies whether Incognito mode is:
362// 0 - Enabled. Default behaviour. Default mode is available on demand.
363// 1 - Disabled. Used cannot browse pages in Incognito mode.
364// 2 - Forced. All pages/sessions are forced into Incognito.
365const char kIncognitoModeAvailability[] = "incognito.mode_availability";
366
367// Boolean that is true when Suggest support is enabled.
368const char kSearchSuggestEnabled[] = "search.suggest_enabled";
369
370// Boolean that indicates whether the browser should put up a confirmation
371// window when the user is attempting to quit. Mac only.
372const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
373
374// OBSOLETE.  Enum that specifies whether to enforce a third-party cookie
375// blocking policy.  This has been superseded by kDefaultContentSettings +
376// kBlockThirdPartyCookies.
377// 0 - allow all cookies.
378// 1 - block third-party cookies
379// 2 - block all cookies
380const char kCookieBehavior[] = "security.cookie_behavior";
381
382// The GUID of the synced default search provider. Note that this acts like a
383// pointer to which synced search engine should be the default, rather than the
384// prefs below which describe the locally saved default search provider details
385// (and are not synced). This is ignored in the case of the default search
386// provider being managed by policy.
387const char kSyncedDefaultSearchProviderGUID[] =
388    "default_search_provider.synced_guid";
389
390// Whether having a default search provider is enabled.
391const char kDefaultSearchProviderEnabled[] =
392    "default_search_provider.enabled";
393
394// The URL (as understood by TemplateURLRef) the default search provider uses
395// for searches.
396const char kDefaultSearchProviderSearchURL[] =
397    "default_search_provider.search_url";
398
399// The URL (as understood by TemplateURLRef) the default search provider uses
400// for suggestions.
401const char kDefaultSearchProviderSuggestURL[] =
402    "default_search_provider.suggest_url";
403
404// The URL (as understood by TemplateURLRef) the default search provider uses
405// for instant results.
406const char kDefaultSearchProviderInstantURL[] =
407    "default_search_provider.instant_url";
408
409// The Favicon URL (as understood by TemplateURLRef) of the default search
410// provider.
411const char kDefaultSearchProviderIconURL[] =
412    "default_search_provider.icon_url";
413
414// The input encoding (as understood by TemplateURLRef) supported by the default
415// search provider.  The various encodings are separated by ';'
416const char kDefaultSearchProviderEncodings[] =
417    "default_search_provider.encodings";
418
419// The name of the default search provider.
420const char kDefaultSearchProviderName[] = "default_search_provider.name";
421
422// The keyword of the default search provider.
423const char kDefaultSearchProviderKeyword[] = "default_search_provider.keyword";
424
425// The id of the default search provider.
426const char kDefaultSearchProviderID[] = "default_search_provider.id";
427
428// The prepopulate id of the default search provider.
429const char kDefaultSearchProviderPrepopulateID[] =
430    "default_search_provider.prepopulate_id";
431
432// The alternate urls of the default search provider.
433const char kDefaultSearchProviderAlternateURLs[] =
434    "default_search_provider.alternate_urls";
435
436// Search term placement query parameter for the default search provider.
437const char kDefaultSearchProviderSearchTermsReplacementKey[] =
438    "default_search_provider.search_terms_replacement_key";
439
440// The dictionary key used when the default search providers are given
441// in the preferences file. Normally they are copied from the master
442// preferences file.
443const char kSearchProviderOverrides[] = "search_provider_overrides";
444// The format version for the dictionary above.
445const char kSearchProviderOverridesVersion[] =
446    "search_provider_overrides_version";
447
448// Boolean which specifies whether we should ask the user if we should download
449// a file (true) or just download it automatically.
450const char kPromptForDownload[] = "download.prompt_for_download";
451
452// A boolean pref set to true if we're using Link Doctor error pages.
453const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled";
454
455// OBSOLETE: new pref now stored with user prefs instead of profile, as
456// kDnsPrefetchingStartupList.
457const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList";
458
459// An adaptively identified list of domain names to be pre-fetched during the
460// next startup, based on what was actually needed during this startup.
461const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list";
462
463// OBSOLETE: new pref now stored with user prefs instead of profile, as
464// kDnsPrefetchingHostReferralList.
465const char kDnsHostReferralList[] = "HostReferralList";
466
467// A list of host names used to fetch web pages, and their commonly used
468// sub-resource hostnames (and expected latency benefits from pre-resolving, or
469// preconnecting to, such sub-resource hostnames).
470// This list is adaptively grown and pruned.
471const char kDnsPrefetchingHostReferralList[] =
472    "dns_prefetching.host_referral_list";
473
474// Disables the SPDY protocol.
475const char kDisableSpdy[] = "spdy.disabled";
476
477// Prefs for persisting HttpServerProperties.
478const char kHttpServerProperties[] = "net.http_server_properties";
479
480// Prefs for server names that support SPDY protocol.
481const char kSpdyServers[] = "spdy.servers";
482
483// Prefs for servers that support Alternate-Protocol.
484const char kAlternateProtocolServers[] = "spdy.alternate_protocol";
485
486// Disables the listed protocol schemes.
487const char kDisabledSchemes[] = "protocol.disabled_schemes";
488
489// Blocks access to the listed host patterns.
490const char kUrlBlacklist[] = "policy.url_blacklist";
491
492// Allows access to the listed host patterns, as exceptions to the blacklist.
493const char kUrlWhitelist[] = "policy.url_whitelist";
494
495#if defined(OS_ANDROID)
496// Last time that a check for cloud policy management was done. This time is
497// recorded on Android so that retries aren't attempted on every startup.
498// Instead the cloud policy registration is retried at least 1 or 3 days later.
499const char kLastPolicyCheckTime[] = "policy.last_policy_check_time";
500
501// A list of bookmarks to include in a Managed Bookmarks root node. Each
502// list item is a dictionary containig a "name" and an "url" entry, detailing
503// the bookmark name and target URL respectively.
504const char kManagedBookmarks[] = "policy.managed_bookmarks";
505#endif
506
507// Prefix URL for the experimental Instant ZeroSuggest provider.
508const char kInstantUIZeroSuggestUrlPrefix[] =
509    "instant_ui.zero_suggest_url_prefix";
510
511// Used to migrate preferences from local state to user preferences to
512// enable multiple profiles.
513// BITMASK with possible values (see browser_prefs.cc for enum):
514// 0: No preferences migrated.
515// 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList
516// 2: Browser window preferences migrated: kDevToolsSplitLocation and
517//    kBrowserWindowPlacement
518const char kMultipleProfilePrefMigration[] =
519    "local_state.multiple_profile_prefs_version";
520
521// A boolean pref set to true if prediction of network actions is allowed.
522// Actions include DNS prefetching, TCP and SSL preconnection, and prerendering
523// of web pages.
524// NOTE: The "dns_prefetching.enabled" value is used so that historical user
525// preferences are not lost.
526const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
527
528// An integer representing the state of the default apps installation process.
529// This value is persisted in the profile's user preferences because the process
530// is async, and the user may have stopped chrome in the middle.  The next time
531// the profile is opened, the process will continue from where it left off.
532//
533// See possible values in external_provider_impl.cc.
534const char kDefaultAppsInstallState[] = "default_apps_install_state";
535
536// A boolean pref set to true if the Chrome Web Store icons should be hidden
537// from the New Tab Page and app launcher.
538const char kHideWebStoreIcon[] = "hide_web_store_icon";
539
540#if defined(OS_CHROMEOS)
541// A dictionary pref to hold the mute setting for all the currently known
542// audio devices.
543const char kAudioDevicesMute[] = "settings.audio.devices.mute";
544
545// A dictionary pref storing the volume settings for all the currently known
546// audio devices.
547const char kAudioDevicesVolumePercent[] =
548    "settings.audio.devices.volume_percent";
549
550// An integer pref to initially mute volume if 1. This pref is ignored if
551// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
552// when the policy is lifted the original mute state is restored.  This setting
553// is here only for migration purposes now. It is being replaced by the
554// |kAudioDevicesMute| setting.
555const char kAudioMute[] = "settings.audio.mute";
556
557// A double pref storing the user-requested volume. This setting is here only
558// for migration purposes now. It is being replaced by the
559// |kAudioDevicesVolumePercent| setting.
560const char kAudioVolumePercent[] = "settings.audio.volume_percent";
561
562// A boolean pref set to true if touchpad tap-to-click is enabled.
563const char kTapToClickEnabled[] = "settings.touchpad.enable_tap_to_click";
564
565// A boolean pref set to true if touchpad tap-dragging is enabled.
566const char kTapDraggingEnabled[] = "settings.touchpad.enable_tap_dragging";
567
568// A boolean pref set to true if touchpad three-finger-click is enabled.
569const char kEnableTouchpadThreeFingerClick[] =
570    "settings.touchpad.enable_three_finger_click";
571
572// A boolean pref set to true if touchpad natural scrolling is enabled.
573const char kNaturalScroll[] = "settings.touchpad.natural_scroll";
574
575// A boolean pref set to true if primary mouse button is the left button.
576const char kPrimaryMouseButtonRight[] = "settings.mouse.primary_right";
577
578// A integer pref for the touchpad sensitivity.
579const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
580
581// A integer pref for the touchpad sensitivity.
582const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
583
584// A boolean pref set to true if time should be displayed in 24-hour clock.
585const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
586
587// A boolean pref to disable Google Drive integration.
588// The pref prefix should remain as "gdata" for backward compatibility.
589const char kDisableDrive[] = "gdata.disabled";
590
591// A boolean pref to disable Drive over cellular connections.
592// The pref prefix should remain as "gdata" for backward compatibility.
593const char kDisableDriveOverCellular[] = "gdata.cellular.disabled";
594
595// A boolean pref to disable hosted files on Drive.
596// The pref prefix should remain as "gdata" for backward compatibility.
597const char kDisableDriveHostedFiles[] = "gdata.hosted_files.disabled";
598
599// A string pref set to the current input method.
600const char kLanguageCurrentInputMethod[] =
601    "settings.language.current_input_method";
602
603// A string pref set to the previous input method.
604const char kLanguagePreviousInputMethod[] =
605    "settings.language.previous_input_method";
606
607// A string pref (comma-separated list) set to the "next engine in menu"
608// hot-key lists.
609const char kLanguageHotkeyNextEngineInMenu[] =
610    "settings.language.hotkey_next_engine_in_menu";
611
612// A string pref (comma-separated list) set to the "previous engine"
613// hot-key lists.
614const char kLanguageHotkeyPreviousEngine[] =
615    "settings.language.hotkey_previous_engine";
616
617// A string pref (comma-separated list) set to the preferred language IDs
618// (ex. "en-US,fr,ko").
619const char kLanguagePreferredLanguages[] =
620    "settings.language.preferred_languages";
621
622// A string pref (comma-separated list) set to the preloaded (active) input
623// method IDs (ex. "pinyin,mozc").
624const char kLanguagePreloadEngines[] = "settings.language.preload_engines";
625
626// A List pref (comma-separated list) set to the extension IMEs to be enabled.
627const char kLanguageEnabledExtensionImes[] =
628    "settings.language.enabled_extension_imes";
629
630// Boolean prefs for ibus-chewing Chinese input method.
631const char kLanguageChewingAutoShiftCur[] =
632    "settings.language.chewing_auto_shift_cur";
633const char kLanguageChewingAddPhraseDirection[] =
634    "settings.language.chewing_add_phrase_direction";
635const char kLanguageChewingEasySymbolInput[] =
636    "settings.language.chewing_easy_symbol_input";
637const char kLanguageChewingEscCleanAllBuf[] =
638    "settings.language.chewing_esc_clean_all_buf";
639const char kLanguageChewingForceLowercaseEnglish[] =
640    "settings.language.chewing_force_lowercase_english";
641const char kLanguageChewingPlainZhuyin[] =
642    "settings.language.chewing_plain_zhuyin";
643const char kLanguageChewingPhraseChoiceRearward[] =
644    "settings.language.chewing_phrase_choice_rearward";
645const char kLanguageChewingSpaceAsSelection[] =
646    "settings.language.chewing_space_as_selection";
647
648// Integer prefs for ibus-chewing Chinese input method.
649const char kLanguageChewingMaxChiSymbolLen[] =
650    "settings.language.chewing_max_chi_symbol_len";
651const char kLanguageChewingCandPerPage[] =
652    "settings.language.chewing_cand_per_page";
653
654// String prefs for ibus-chewing Chinese input method.
655const char kLanguageChewingKeyboardType[] =
656    "settings.language.chewing_keyboard_type";
657const char kLanguageChewingSelKeys[] =
658    "settings.language.chewing_sel_keys";
659
660const char kLanguageChewingHsuSelKeyType[] =
661    "settings.language.chewing_hsu_sel_key_type";
662
663// A string pref which determines the keyboard layout for Hangul input method.
664const char kLanguageHangulKeyboard[] = "settings.language.hangul_keyboard";
665const char kLanguageHangulHanjaBindingKeys[] =
666    "settings.language.hangul_hanja_binding_keys";
667
668// A boolean prefs for ibus-pinyin Chinese input method.
669const char kLanguagePinyinCorrectPinyin[] =
670    "settings.language.pinyin_correct_pinyin";
671const char kLanguagePinyinFuzzyPinyin[] =
672    "settings.language.pinyin_fuzzy_pinyin";
673const char kLanguagePinyinShiftSelectCandidate[] =
674    "settings.language.pinyin_shift_select_candidate";
675const char kLanguagePinyinMinusEqualPage[] =
676    "settings.language.pinyin_minus_equal_page";
677const char kLanguagePinyinCommaPeriodPage[] =
678    "settings.language.pinyin_comma_period_page";
679const char kLanguagePinyinAutoCommit[] =
680    "settings.language.pinyin_auto_commit";
681const char kLanguagePinyinDoublePinyin[] =
682    "settings.language.pinyin_double_pinyin";
683const char kLanguagePinyinInitChinese[] =
684    "settings.language.pinyin_init_chinese";
685const char kLanguagePinyinInitFull[] =
686    "settings.language.pinyin_init_full";
687const char kLanguagePinyinInitFullPunct[] =
688    "settings.language.pinyin_init_full_punct";
689const char kLanguagePinyinInitSimplifiedChinese[] =
690    "settings.language.pinyin_init_simplified_chinese";
691const char kLanguagePinyinTradCandidate[] =
692    "settings.language.pinyin_trad_candidate";
693
694// A integer prefs for ibus-pinyin Chinese input method.
695const char kLanguagePinyinDoublePinyinSchema[] =
696    "settings.language.pinyin_double_pinyin_schema";
697const char kLanguagePinyinLookupTablePageSize[] =
698    "settings.language.pinyin_lookup_table_page_size";
699
700// A string prefs for ibus-mozc Japanese input method.
701// ibus-mozc converts the string values to protobuf enum values defined in
702// third_party/ibus-mozc/files/src/session/config.proto.
703const char kLanguageMozcPreeditMethod[] =
704    "settings.language.mozc_preedit_method";
705const char kLanguageMozcSessionKeymap[] =
706    "settings.language.mozc_session_keymap";
707const char kLanguageMozcPunctuationMethod[] =
708    "settings.language.mozc_punctuation_method";
709const char kLanguageMozcSymbolMethod[] =
710    "settings.language.mozc_symbol_method";
711const char kLanguageMozcSpaceCharacterForm[] =
712    "settings.language.mozc_space_character_form";
713const char kLanguageMozcHistoryLearningLevel[] =
714    "settings.language.mozc_history_learning_level";
715const char kLanguageMozcSelectionShortcut[] =
716    "settings.language.mozc_selection_shortcut";
717const char kLanguageMozcShiftKeyModeSwitch[] =
718    "settings.language.mozc_shift_key_mode_switch";
719const char kLanguageMozcNumpadCharacterForm[] =
720    "settings.language.mozc_numpad_character_form";
721const char kLanguageMozcIncognitoMode[] =
722    "settings.language.mozc_incognito_mode";
723const char kLanguageMozcUseAutoImeTurnOff[] =
724    "settings.language.mozc_use_auto_ime_turn_off";
725const char kLanguageMozcUseHistorySuggest[] =
726    "settings.language.mozc_use_history_suggest";
727const char kLanguageMozcUseDictionarySuggest[] =
728    "settings.language.mozc_use_dictionary_suggest";
729const char kLanguageMozcSuggestionsSize[] =
730    "settings.language.mozc_suggestions_size";
731
732// A integer prefs which determine how we remap modifier keys (e.g. swap Alt and
733// Control.) Possible values for these prefs are 0-4. See ModifierKey enum in
734// src/chrome/browser/chromeos/input_method/xkeyboard.h
735const char kLanguageRemapSearchKeyTo[] =
736    // Note: we no longer use XKB for remapping these keys, but we can't change
737    // the pref names since the names are already synced with the cloud.
738    "settings.language.xkb_remap_search_key_to";
739const char kLanguageRemapControlKeyTo[] =
740    "settings.language.xkb_remap_control_key_to";
741const char kLanguageRemapAltKeyTo[] =
742    "settings.language.xkb_remap_alt_key_to";
743const char kLanguageRemapCapsLockKeyTo[] =
744    "settings.language.remap_caps_lock_key_to";
745const char kLanguageRemapDiamondKeyTo[] =
746    "settings.language.remap_diamond_key_to";
747
748// A boolean pref which determines whether key repeat is enabled.
749const char kLanguageXkbAutoRepeatEnabled[] =
750    "settings.language.xkb_auto_repeat_enabled_r2";
751// A integer pref which determines key repeat delay (in ms).
752const char kLanguageXkbAutoRepeatDelay[] =
753    "settings.language.xkb_auto_repeat_delay_r2";
754// A integer pref which determines key repeat interval (in ms).
755const char kLanguageXkbAutoRepeatInterval[] =
756    "settings.language.xkb_auto_repeat_interval_r2";
757// "_r2" suffixes are added to the three prefs above when we change the
758// preferences not user-configurable, not to sync them with cloud.
759
760// A boolean pref which determines whether the large cursor feature is enabled.
761const char kLargeCursorEnabled[] = "settings.a11y.large_cursor_enabled";
762// A boolean pref which determines whether the sticky keys feature is enabled.
763const char kStickyKeysEnabled[] = "settings.a11y.sticky_keys_enabled";
764// A boolean pref which determines whether spoken feedback is enabled.
765const char kSpokenFeedbackEnabled[] = "settings.accessibility";
766// A boolean pref which determines whether high conrast is enabled.
767const char kHighContrastEnabled[] = "settings.a11y.high_contrast_enabled";
768// A boolean pref which determines whether screen magnifier is enabled.
769const char kScreenMagnifierEnabled[] = "settings.a11y.screen_magnifier";
770// A integer pref which determines what type of screen magnifier is enabled.
771// Note that: 'screen_magnifier_type' had been used as string pref. Hence,
772// we are using another name pref here.
773const char kScreenMagnifierType[] = "settings.a11y.screen_magnifier_type2";
774// A double pref which determines a zooming scale of the screen magnifier.
775const char kScreenMagnifierScale[] = "settings.a11y.screen_magnifier_scale";
776// A boolean pref which determines whether virtual keyboard is enabled.
777// TODO(hashimoto): Remove this pref.
778const char kVirtualKeyboardEnabled[] = "settings.a11y.virtual_keyboard";
779// A boolean pref which determines whether the accessibility menu shows
780// regardless of the state of a11y features.
781const char kShouldAlwaysShowAccessibilityMenu[] = "settings.a11y.enable_menu";
782
783// A boolean pref which turns on Advanced Filesystem
784// (USB support, SD card, etc).
785const char kLabsAdvancedFilesystemEnabled[] =
786    "settings.labs.advanced_filesystem";
787
788// A boolean pref which turns on the mediaplayer.
789const char kLabsMediaplayerEnabled[] = "settings.labs.mediaplayer";
790
791// A boolean pref that turns on screen locker.
792const char kEnableScreenLock[] = "settings.enable_screen_lock";
793
794// A boolean pref of whether to show mobile plan notifications.
795const char kShowPlanNotifications[] =
796    "settings.internet.mobile.show_plan_notifications";
797
798// A boolean pref of whether to show 3G promo notification.
799const char kShow3gPromoNotification[] =
800    "settings.internet.mobile.show_3g_promo_notification";
801
802// A string pref that contains version where "What's new" promo was shown.
803const char kChromeOSReleaseNotesVersion[] = "settings.release_notes.version";
804
805// A boolean pref that controls whether proxy settings from shared network
806// settings (accordingly from device policy) are applied or ignored.
807const char kUseSharedProxies[] = "settings.use_shared_proxies";
808
809// Power state of the current displays from the last run.
810const char kDisplayPowerState[] = "settings.display.power_state";
811// A dictionary pref that stores per display preferences.
812const char kDisplayProperties[] = "settings.display.properties";
813
814// A dictionary pref that specifies per-display layout/offset information.
815// Its key is the ID of the display and its value is a dictionary for the
816// layout/offset information.
817const char kSecondaryDisplays[] = "settings.display.secondary_displays";
818
819// A preference to keep track of the session start time. The value is set
820// after login. When the browser restarts after a crash, the pref value is not
821// changed unless it appears corrupted (value unset, value lying in the future,
822// zero value).
823const char kSessionStartTime[] = "session.start_time";
824
825// Holds the maximum session time in milliseconds. If this pref is set, the
826// user is logged out when the maximum session time is reached. The user is
827// informed about the remaining time by a countdown timer shown in the ash
828// system tray.
829const char kSessionLengthLimit[] = "session.length_limit";
830
831// Inactivity time in milliseconds while the system is on AC power before
832// the screen should be dimmed, turned off, or locked, before an
833// IdleActionImminent D-Bus signal should be sent, or before
834// kPowerAcIdleAction should be performed.  0 disables the delay (N/A for
835// kPowerAcIdleDelayMs).
836const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
837const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
838const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
839const char kPowerAcIdleWarningDelayMs[] = "power.ac_idle_warning_delay_ms";
840const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
841
842// Similar delays while the system is on battery power.
843const char kPowerBatteryScreenDimDelayMs[] =
844    "power.battery_screen_dim_delay_ms";
845const char kPowerBatteryScreenOffDelayMs[] =
846    "power.battery_screen_off_delay_ms";
847const char kPowerBatteryScreenLockDelayMs[] =
848    "power.battery_screen_lock_delay_ms";
849const char kPowerBatteryIdleWarningDelayMs[] =
850    "power.battery_idle_warning_delay_ms";
851const char kPowerBatteryIdleDelayMs[] =
852    "power.battery_idle_delay_ms";
853
854// Action that should be performed when the idle delay is reached while the
855// system is on AC power or battery power.
856// Values are from the chromeos::PowerPolicyController::Action enum.
857const char kPowerAcIdleAction[] = "power.ac_idle_action";
858const char kPowerBatteryIdleAction[] = "power.battery_idle_action";
859
860// Action that should be performed when the lid is closed.
861// Values are from the chromeos::PowerPolicyController::Action enum.
862const char kPowerLidClosedAction[] = "power.lid_closed_action";
863
864// Should audio and video activity be used to disable the above delays?
865const char kPowerUseAudioActivity[] = "power.use_audio_activity";
866const char kPowerUseVideoActivity[] = "power.use_video_activity";
867
868// Should extensions be able to use the chrome.power API to override
869// screen-related power management (including locking)?
870const char kPowerAllowScreenWakeLocks[] = "power.allow_screen_wake_locks";
871
872// Amount by which the screen-dim delay should be scaled while the system
873// is in presentation mode. Values are limited to a minimum of 1.0.
874const char kPowerPresentationScreenDimDelayFactor[] =
875    "power.presentation_screen_dim_delay_factor";
876
877// Amount by which the screen-dim delay should be scaled when user activity is
878// observed while the screen is dimmed or soon after the screen has been turned
879// off.  Values are limited to a minimum of 1.0.
880const char kPowerUserActivityScreenDimDelayFactor[] =
881    "power.user_activity_screen_dim_delay_factor";
882
883// The URL from which the Terms of Service can be downloaded. The value is only
884// honored for public accounts.
885const char kTermsOfServiceURL[] = "terms_of_service.url";
886
887// Indicates that the Profile has made navigations that used a certificate
888// installed by the system administrator. If that is true then the local cache
889// of remote data is tainted (e.g. shared scripts), and future navigations
890// show a warning indicating that the organization may track the browsing
891// session.
892const char kUsedPolicyCertificatesOnce[] = "used_policy_certificates_once";
893
894// Indicates whether the remote attestation is enabled for the user.
895const char kAttestationEnabled[] = "attestation.enabled";
896// The list of extensions allowed to use the platformKeysPrivate API for
897// remote attestation.
898const char kAttestationExtensionWhitelist[] = "attestation.extension_whitelist";
899
900// A boolean pref indicating whether the projection touch HUD is enabled or not.
901const char kTouchHudProjectionEnabled[] = "touch_hud.projection_enabled";
902
903// A pref to configure networks. Its value must be a list of
904// NetworkConfigurations according to the OpenNetworkConfiguration
905// specification.
906const char kOpenNetworkConfiguration[] = "onc";
907#endif  // defined(OS_CHROMEOS)
908
909// The disabled messages in IPC logging.
910const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
911
912// A boolean pref set to true if a Home button to open the Home pages should be
913// visible on the toolbar.
914const char kShowHomeButton[] = "browser.show_home_button";
915
916// A string value which saves short list of recently user selected encodings
917// separated with comma punctuation mark.
918const char kRecentlySelectedEncoding[] = "profile.recently_selected_encodings";
919
920// Clear Browsing Data dialog preferences.
921const char kDeleteBrowsingHistory[] = "browser.clear_data.browsing_history";
922const char kDeleteDownloadHistory[] = "browser.clear_data.download_history";
923const char kDeleteCache[] = "browser.clear_data.cache";
924const char kDeleteCookies[] = "browser.clear_data.cookies";
925const char kDeletePasswords[] = "browser.clear_data.passwords";
926const char kDeleteFormData[] = "browser.clear_data.form_data";
927const char kDeleteHostedAppsData[] = "browser.clear_data.hosted_apps_data";
928const char kDeauthorizeContentLicenses[] =
929    "browser.clear_data.content_licenses";
930const char kDeleteTimePeriod[] = "browser.clear_data.time_period";
931const char kLastClearBrowsingDataTime[] =
932    "browser.last_clear_browsing_data_time";
933
934// Boolean pref to define the default values for using spellchecker.
935const char kEnableContinuousSpellcheck[] = "browser.enable_spellchecking";
936
937// List of names of the enabled labs experiments (see chrome/browser/labs.cc).
938const char kEnabledLabsExperiments[] = "browser.enabled_labs_experiments";
939
940// Boolean pref to define the default values for using auto spell correct.
941const char kEnableAutoSpellCorrect[] = "browser.enable_autospellcorrect";
942
943// Boolean pref to define the default setting for "block offensive words".
944// The old key value is kept to avoid unnecessary migration code.
945const char kSpeechRecognitionFilterProfanities[] =
946    "browser.speechinput_censor_results";
947
948// List of speech recognition context names (extensions or websites) for which
949// the tray notification balloon has already been shown.
950const char kSpeechRecognitionTrayNotificationShownContexts[] =
951    "browser.speechinput_tray_notification_shown_contexts";
952
953// Boolean controlling whether history saving is disabled.
954const char kSavingBrowserHistoryDisabled[] = "history.saving_disabled";
955
956// Boolean controlling whether deleting browsing and download history is
957// permitted.
958const char kAllowDeletingBrowserHistory[] = "history.deleting_enabled";
959
960// Boolean controlling whether SafeSearch is mandatory for Google Web Searches.
961const char kForceSafeSearch[] = "settings.force_safesearch";
962
963#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
964// Linux specific preference on whether we should match the system theme.
965const char kUsesSystemTheme[] = "extensions.theme.use_system";
966#endif
967const char kCurrentThemePackFilename[] = "extensions.theme.pack";
968const char kCurrentThemeID[] = "extensions.theme.id";
969const char kCurrentThemeImages[] = "extensions.theme.images";
970const char kCurrentThemeColors[] = "extensions.theme.colors";
971const char kCurrentThemeTints[] = "extensions.theme.tints";
972const char kCurrentThemeDisplayProperties[] = "extensions.theme.properties";
973
974// Boolean pref which persists whether the extensions_ui is in developer mode
975// (showing developer packing tools and extensions details)
976const char kExtensionsUIDeveloperMode[] = "extensions.ui.developer_mode";
977
978// Integer pref that tracks the number of browser actions visible in the browser
979// actions toolbar.
980const char kExtensionToolbarSize[] = "extensions.toolbarsize";
981
982// A preference that tracks browser action toolbar configuration. This is a list
983// object stored in the Preferences file. The extensions are stored by ID.
984const char kExtensionToolbar[] = "extensions.toolbar";
985
986// Dictionary pref that tracks which command belongs to which
987// extension + named command pair.
988const char kExtensionCommands[] = "extensions.commands";
989
990// Pref containing the directory for internal plugins as written to the plugins
991// list (below).
992const char kPluginsLastInternalDirectory[] = "plugins.last_internal_directory";
993
994// List pref containing information (dictionaries) on plugins.
995const char kPluginsPluginsList[] = "plugins.plugins_list";
996
997// List pref containing names of plugins that are disabled by policy.
998const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
999
1000// List pref containing exceptions to the list of plugins disabled by policy.
1001const char kPluginsDisabledPluginsExceptions[] =
1002    "plugins.plugins_disabled_exceptions";
1003
1004// List pref containing names of plugins that are enabled by policy.
1005const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
1006
1007// When bundled NPAPI Flash is removed, if at that point it is enabled while
1008// Pepper Flash is disabled, we would like to turn on Pepper Flash. And we will
1009// want to do so only once.
1010const char kPluginsMigratedToPepperFlash[] = "plugins.migrated_to_pepper_flash";
1011
1012// In the early stage of component-updated PPAPI Flash, we did field trials in
1013// which it was set to disabled by default. The corresponding settings item may
1014// remain in some users' profiles. Currently it affects both the bundled and
1015// component-updated PPAPI Flash (since the two share the same enable/disable
1016// state). We want to remove this item to get those users to use PPAPI Flash.
1017// We will want to do so only once.
1018const char kPluginsRemovedOldComponentPepperFlashSettings[] =
1019    "plugins.removed_old_component_pepper_flash_settings";
1020
1021#if !defined(OS_ANDROID)
1022// Whether about:plugins is shown in the details mode or not.
1023const char kPluginsShowDetails[] = "plugins.show_details";
1024#endif
1025
1026// Boolean that indicates whether outdated plugins are allowed or not.
1027const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
1028
1029// Boolean that indicates whether plugins that require authorization should
1030// be always allowed or not.
1031const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize";
1032
1033#if defined(ENABLE_PLUGIN_INSTALLATION)
1034// Dictionary holding plug-ins metadata.
1035const char kPluginsMetadata[] = "plugins.metadata";
1036
1037// Last update time of plug-ins resource cache.
1038const char kPluginsResourceCacheUpdate[] = "plugins.resource_cache_update";
1039#endif
1040
1041// Boolean that indicates whether we should check if we are the default browser
1042// on start-up.
1043const char kCheckDefaultBrowser[] = "browser.check_default_browser";
1044
1045#if defined(OS_WIN)
1046// By default, setting Chrome as default during first run on Windows 8 will
1047// trigger shutting down the current instance and spawning a new (Metro)
1048// Chrome. This boolean preference supresses this behaviour.
1049const char kSuppressSwitchToMetroModeOnSetDefault[] =
1050    "browser.suppress_switch_to_metro_mode_on_set_default";
1051#endif
1052
1053// Policy setting whether default browser check should be disabled and default
1054// browser registration should take place.
1055const char kDefaultBrowserSettingEnabled[] =
1056    "browser.default_browser_setting_enabled";
1057
1058#if defined(OS_MACOSX)
1059// Boolean that indicates whether the application should show the info bar
1060// asking the user to set up automatic updates when Keystone promotion is
1061// required.
1062const char kShowUpdatePromotionInfoBar[] =
1063    "browser.show_update_promotion_info_bar";
1064#endif
1065
1066// Boolean that is false if we should show window manager decorations.  If
1067// true, we draw a custom chrome frame (thicker title bar and blue border).
1068const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
1069
1070// The preferred position (which corner of screen) for desktop notifications.
1071const char kDesktopNotificationPosition[] =
1072    "browser.desktop_notification_position";
1073
1074// Dictionary of content settings applied to all hosts by default.
1075const char kDefaultContentSettings[] = "profile.default_content_settings";
1076
1077// Boolean indicating whether the clear on exit pref was migrated to content
1078// settings yet.
1079const char kContentSettingsClearOnExitMigrated[] =
1080    "profile.content_settings.clear_on_exit_migrated";
1081
1082// Version of the pattern format used to define content settings.
1083const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
1084
1085// Patterns for mapping origins to origin related settings. Default settings
1086// will be applied to origins that don't match any of the patterns. The pattern
1087// format used is defined by kContentSettingsVersion.
1088const char kContentSettingsPatternPairs[] =
1089    "profile.content_settings.pattern_pairs";
1090
1091// Version of the content settings whitelist.
1092const char kContentSettingsDefaultWhitelistVersion[] =
1093    "profile.content_settings.whitelist_version";
1094
1095#if !defined(OS_ANDROID)
1096// Which plugins have been whitelisted manually by the user.
1097const char kContentSettingsPluginWhitelist[] =
1098    "profile.content_settings.plugin_whitelist";
1099#endif
1100
1101// Boolean that is true if we should unconditionally block third-party cookies,
1102// regardless of other content settings.
1103const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
1104
1105// Boolean that is true when all locally stored site data (e.g. cookies, local
1106// storage, etc..) should be deleted on exit.
1107const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit";
1108
1109// Double that indicates the default zoom level.
1110const char kDefaultZoomLevel[] = "profile.default_zoom_level";
1111
1112// Dictionary that maps hostnames to zoom levels.  Hosts not in this pref will
1113// be displayed at the default zoom level.
1114const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels";
1115
1116// A dictionary that tracks the default data model to use for each section of
1117// the dialog.
1118const char kAutofillDialogAutofillDefault[] = "autofill.data_model_default";
1119
1120// Whether a user has ever paid with Wallet via the autofill dialog.
1121const char kAutofillDialogHasPaidWithWallet[] = "autofill.has_paid_with_wallet";
1122
1123// Whether a user opted out of making purchases with Google Wallet; changed via
1124// the autofill dialog's account chooser and set explicitly on dialog submission
1125// (but not cancel). If this isn't set, the dialog assumes it's the first run.
1126const char kAutofillDialogPayWithoutWallet[] = "autofill.pay_without_wallet";
1127
1128// The number of times the dialog has been shown (all time).
1129const char kAutofillDialogShowCount[] = "autofill.show_count";
1130
1131// The number of times the generated credit card bubble has been shown.
1132const char kAutofillGeneratedCardBubbleTimesShown[] =
1133    "autofill.generated_card_bubble_times_shown";
1134
1135// Modifying bookmarks is completely disabled when this is set to false.
1136const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled";
1137
1138// Boolean that is true when the translate feature is enabled.
1139const char kEnableTranslate[] = "translate.enabled";
1140
1141#if !defined(OS_ANDROID)
1142const char kPinnedTabs[] = "pinned_tabs";
1143#endif
1144
1145#if defined(OS_ANDROID)
1146// Boolean that controls the enabled-state of Geolocation in content.
1147const char kGeolocationEnabled[] = "geolocation.enabled";
1148#endif
1149
1150#if defined(ENABLE_GOOGLE_NOW)
1151// Boolean that is true when Google services can use the user's location.
1152const char kGoogleGeolocationAccessEnabled[] =
1153    "googlegeolocationaccess.enabled";
1154#endif
1155
1156// The default audio capture device used by the Media content setting.
1157const char kDefaultAudioCaptureDevice[] = "media.default_audio_capture_device";
1158
1159// The default video capture device used by the Media content setting.
1160const char kDefaultVideoCaptureDevice[] = "media.default_video_capture_Device";
1161
1162// Preference to disable 3D APIs (WebGL, Pepper 3D).
1163const char kDisable3DAPIs[] = "disable_3d_apis";
1164
1165// Whether to enable hyperlink auditing ("<a ping>").
1166const char kEnableHyperlinkAuditing[] = "enable_a_ping";
1167
1168// Whether to enable sending referrers.
1169const char kEnableReferrers[] = "enable_referrers";
1170
1171// Whether to send the DNT header.
1172const char kEnableDoNotTrack[] = "enable_do_not_track";
1173
1174// Boolean to enable reporting memory info to page.
1175const char kEnableMemoryInfo[] = "enable_memory_info";
1176
1177// GL_VENDOR string.
1178const char kGLVendorString[] = "gl_vendor_string";
1179
1180// GL_RENDERER string.
1181const char kGLRendererString[] = "gl_renderer_string";
1182
1183// GL_VERSION string.
1184const char kGLVersionString[] = "gl_version_string";
1185
1186// Boolean that specifies whether to import bookmarks from the default browser
1187// on first run.
1188const char kImportBookmarks[] = "import_bookmarks";
1189
1190// Boolean that specifies whether to import the browsing history from the
1191// default browser on first run.
1192const char kImportHistory[] = "import_history";
1193
1194// Boolean that specifies whether to import the homepage from the default
1195// browser on first run.
1196const char kImportHomepage[] = "import_home_page";
1197
1198// Boolean that specifies whether to import the search engine from the default
1199// browser on first run.
1200const char kImportSearchEngine[] = "import_search_engine";
1201
1202// Boolean that specifies whether to import the saved passwords from the default
1203// browser on first run.
1204const char kImportSavedPasswords[] = "import_saved_passwords";
1205
1206#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
1207// The local profile id for this profile.
1208const char kLocalProfileId[] = "profile.local_profile_id";
1209
1210// Whether passwords in external services (e.g. GNOME Keyring) have been tagged
1211// with the local profile id yet. (Used for migrating to tagged passwords.)
1212const char kPasswordsUseLocalProfileId[] =
1213    "profile.passwords_use_local_profile_id";
1214#endif
1215
1216// Profile avatar and name
1217const char kProfileAvatarIndex[] = "profile.avatar_index";
1218const char kProfileName[] = "profile.name";
1219
1220// Whether the profile is managed.
1221const char kProfileIsManaged[] = "profile.is_managed";
1222
1223// Indicates if we've already shown a notification that high contrast
1224// mode is on, recommending high-contrast extensions and themes.
1225const char kInvertNotificationShown[] = "invert_notification_version_2_shown";
1226
1227// Boolean controlling whether printing is enabled.
1228const char kPrintingEnabled[] = "printing.enabled";
1229
1230// Boolean controlling whether print preview is disabled.
1231const char kPrintPreviewDisabled[] = "printing.print_preview_disabled";
1232
1233// An integer pref specifying the fallback behavior for sites outside of content
1234// packs. One of:
1235// 0: Allow (does nothing)
1236// 1: Warn.
1237// 2: Block.
1238const char kDefaultManagedModeFilteringBehavior[] =
1239    "profile.managed.default_filtering_behavior";
1240
1241// Whether this user is permitted to create managed users.
1242const char kManagedUserCreationAllowed[] =
1243    "profile.managed_user_creation_allowed";
1244
1245// List pref containing the users managed by this user.
1246const char kManagedUsers[] = "profile.managed_users";
1247
1248// List pref containing the extension ids which are not allowed to send
1249// notifications to the message center.
1250const char kMessageCenterDisabledExtensionIds[] =
1251    "message_center.disabled_extension_ids";
1252
1253// List pref containing the system component ids which are not allowed to send
1254// notifications to the message center.
1255const char kMessageCenterDisabledSystemComponentIds[] =
1256    "message_center.disabled_system_component_ids";
1257
1258// List pref containing the system component ids which are allowed to send
1259// notifications to the message center.
1260extern const char kMessageCenterEnabledSyncNotifierIds[] =
1261    "message_center.enabled_sync_notifier_ids";
1262
1263// *************** LOCAL STATE ***************
1264// These are attached to the machine/installation
1265
1266// A pref to configure networks device-wide. Its value must be a list of
1267// NetworkConfigurations according to the OpenNetworkConfiguration
1268// specification.
1269const char kDeviceOpenNetworkConfiguration[] = "device_onc";
1270
1271// Directory of the last profile used.
1272const char kProfileLastUsed[] = "profile.last_used";
1273
1274// List of directories of the profiles last active.
1275const char kProfilesLastActive[] = "profile.last_active_profiles";
1276
1277// Total number of profiles created for this Chrome build. Used to tag profile
1278// directories.
1279const char kProfilesNumCreated[] = "profile.profiles_created";
1280
1281// String containing the version of Chrome that the profile was created by.
1282// If profile was created before this feature was added, this pref will default
1283// to "1.0.0.0".
1284const char kProfileCreatedByVersion[] = "profile.created_by_version";
1285
1286// A map of profile data directory to cached information. This cache can be
1287// used to display information about profiles without actually having to load
1288// them.
1289const char kProfileInfoCache[] = "profile.info_cache";
1290
1291// Prefs for SSLConfigServicePref.
1292const char kCertRevocationCheckingEnabled[] = "ssl.rev_checking.enabled";
1293const char kSSLVersionMin[] = "ssl.version_min";
1294const char kSSLVersionMax[] = "ssl.version_max";
1295const char kCipherSuiteBlacklist[] = "ssl.cipher_suites.blacklist";
1296const char kEnableOriginBoundCerts[] = "ssl.origin_bound_certs.enabled";
1297const char kDisableSSLRecordSplitting[] = "ssl.ssl_record_splitting.disabled";
1298const char kEnableUnrestrictedSSL3Fallback[] =
1299    "ssl.unrestricted_ssl3_fallback.enabled";
1300
1301// A boolean pref of the EULA accepted flag.
1302const char kEulaAccepted[] = "EulaAccepted";
1303
1304// The metrics client GUID, entropy source and session ID.
1305const char kMetricsClientID[] = "user_experience_metrics.client_id";
1306const char kMetricsSessionID[] = "user_experience_metrics.session_id";
1307const char kMetricsLowEntropySource[] =
1308    "user_experience_metrics.low_entropy_source";
1309const char kMetricsPermutedEntropyCache[] =
1310    "user_experience_metrics.permuted_entropy_cache";
1311
1312// Date/time when the current metrics profile ID was created
1313// (which hopefully corresponds to first run).
1314const char kMetricsClientIDTimestamp[] =
1315    "user_experience_metrics.client_id_timestamp";
1316
1317// Boolean that specifies whether or not crash reporting and metrics reporting
1318// are sent over the network for analysis.
1319const char kMetricsReportingEnabled[] =
1320    "user_experience_metrics.reporting_enabled";
1321
1322// Boolean that specifies whether or not crash reports are sent
1323// over the network for analysis.
1324#if defined(OS_ANDROID)
1325const char kCrashReportingEnabled[] =
1326    "user_experience_metrics_crash.reporting_enabled";
1327#endif
1328
1329// Array of strings that are each UMA logs that were supposed to be sent in the
1330// first minute of a browser session. These logs include things like crash count
1331// info, etc.
1332const char kMetricsInitialLogs[] =
1333    "user_experience_metrics.initial_logs_as_protobufs";
1334
1335// Array of strings that are each UMA logs that were not sent because the
1336// browser terminated before these accumulated metrics could be sent.  These
1337// logs typically include histograms and memory reports, as well as ongoing
1338// user activities.
1339const char kMetricsOngoingLogs[] =
1340    "user_experience_metrics.ongoing_logs_as_protobufs";
1341
1342// Boolean that is true when bookmark prompt is enabled.
1343const char kBookmarkPromptEnabled[] = "bookmark_prompt_enabled";
1344
1345// Number of times bookmark prompt displayed.
1346const char kBookmarkPromptImpressionCount[] =
1347    "bookmark_prompt_impression_count";
1348
1349// 64-bit integer serialization of the base::Time from the last successful seed
1350// fetch (i.e. when the Variations server responds with 200 or 304).
1351const char kVariationsLastFetchTime[] = "variations_last_fetch_time";
1352
1353// String for the restrict parameter to be appended to the variations URL.
1354const char kVariationsRestrictParameter[] = "variations_restrict_parameter";
1355
1356// String serialized form of variations seed protobuf.
1357const char kVariationsSeed[] = "variations_seed";
1358
1359// 64-bit integer serialization of the base::Time from the last seed received.
1360const char kVariationsSeedDate[] = "variations_seed_date";
1361
1362// SHA-1 hash of the serialized variations seed data.
1363const char kVariationsSeedHash[] = "variations_seed_hash";
1364
1365// True if the previous run of the program exited cleanly.
1366const char kStabilityExitedCleanly[] =
1367    "user_experience_metrics.stability.exited_cleanly";
1368
1369// Version string of previous run, which is used to assure that stability
1370// metrics reported under current version reflect stability of the same version.
1371const char kStabilityStatsVersion[] =
1372    "user_experience_metrics.stability.stats_version";
1373
1374// Build time, in seconds since an epoch, which is used to assure that stability
1375// metrics reported reflect stability of the same build.
1376const char kStabilityStatsBuildTime[] =
1377    "user_experience_metrics.stability.stats_buildtime";
1378
1379// False if we received a session end and either we crashed during processing
1380// the session end or ran out of time and windows terminated us.
1381const char kStabilitySessionEndCompleted[] =
1382    "user_experience_metrics.stability.session_end_completed";
1383
1384// Number of times the application was launched since last report.
1385const char kStabilityLaunchCount[] =
1386    "user_experience_metrics.stability.launch_count";
1387
1388// Number of times the application exited uncleanly since the last report.
1389const char kStabilityCrashCount[] =
1390    "user_experience_metrics.stability.crash_count";
1391
1392// Number of times the session end did not complete.
1393const char kStabilityIncompleteSessionEndCount[] =
1394    "user_experience_metrics.stability.incomplete_session_end_count";
1395
1396// Number of times a page load event occurred since the last report.
1397const char kStabilityPageLoadCount[] =
1398    "user_experience_metrics.stability.page_load_count";
1399
1400// Number of times a renderer process crashed since the last report.
1401const char kStabilityRendererCrashCount[] =
1402    "user_experience_metrics.stability.renderer_crash_count";
1403
1404// Number of times an extension renderer process crashed since the last report.
1405const char kStabilityExtensionRendererCrashCount[] =
1406    "user_experience_metrics.stability.extension_renderer_crash_count";
1407
1408// Time when the app was last launched, in seconds since the epoch.
1409const char kStabilityLaunchTimeSec[] =
1410    "user_experience_metrics.stability.launch_time_sec";
1411
1412// Time when the app was last known to be running, in seconds since
1413// the epoch.
1414const char kStabilityLastTimestampSec[] =
1415    "user_experience_metrics.stability.last_timestamp_sec";
1416
1417// This is the location of a list of dictionaries of plugin stability stats.
1418const char kStabilityPluginStats[] =
1419    "user_experience_metrics.stability.plugin_stats2";
1420
1421// Number of times the renderer has become non-responsive since the last
1422// report.
1423const char kStabilityRendererHangCount[] =
1424    "user_experience_metrics.stability.renderer_hang_count";
1425
1426// Total number of child process crashes (other than renderer / extension
1427// renderer ones, and plugin children, which are counted separately) since the
1428// last report.
1429const char kStabilityChildProcessCrashCount[] =
1430    "user_experience_metrics.stability.child_process_crash_count";
1431
1432// On Chrome OS, total number of non-Chrome user process crashes
1433// since the last report.
1434const char kStabilityOtherUserCrashCount[] =
1435    "user_experience_metrics.stability.other_user_crash_count";
1436
1437// On Chrome OS, total number of kernel crashes since the last report.
1438const char kStabilityKernelCrashCount[] =
1439    "user_experience_metrics.stability.kernel_crash_count";
1440
1441// On Chrome OS, total number of unclean system shutdowns since the
1442// last report.
1443const char kStabilitySystemUncleanShutdownCount[] =
1444    "user_experience_metrics.stability.system_unclean_shutdowns";
1445
1446// Number of times the browser has been able to register crash reporting.
1447const char kStabilityBreakpadRegistrationSuccess[] =
1448    "user_experience_metrics.stability.breakpad_registration_ok";
1449
1450// Number of times the browser has failed to register crash reporting.
1451const char kStabilityBreakpadRegistrationFail[] =
1452    "user_experience_metrics.stability.breakpad_registration_fail";
1453
1454// Number of times the browser has been run under a debugger.
1455const char kStabilityDebuggerPresent[] =
1456    "user_experience_metrics.stability.debugger_present";
1457
1458// Number of times the browser has not been run under a debugger.
1459const char kStabilityDebuggerNotPresent[] =
1460    "user_experience_metrics.stability.debugger_not_present";
1461
1462// The keys below are used for the dictionaries in the
1463// kStabilityPluginStats list.
1464const char kStabilityPluginName[] = "name";
1465const char kStabilityPluginLaunches[] = "launches";
1466const char kStabilityPluginInstances[] = "instances";
1467const char kStabilityPluginCrashes[] = "crashes";
1468const char kStabilityPluginLoadingErrors[] = "loading_errors";
1469
1470// The keys below are strictly increasing counters over the lifetime of
1471// a chrome installation. They are (optionally) sent up to the uninstall
1472// survey in the event of uninstallation. The installation date is used by some
1473// opt-in services such as Wallet and UMA.
1474const char kInstallDate[] = "uninstall_metrics.installation_date2";
1475const char kUninstallMetricsPageLoadCount[] =
1476    "uninstall_metrics.page_load_count";
1477const char kUninstallLaunchCount[] = "uninstall_metrics.launch_count";
1478const char kUninstallMetricsUptimeSec[] = "uninstall_metrics.uptime_sec";
1479const char kUninstallLastLaunchTimeSec[] =
1480    "uninstall_metrics.last_launch_time_sec";
1481const char kUninstallLastObservedRunTimeSec[] =
1482    "uninstall_metrics.last_observed_running_time_sec";
1483
1484// String containing the version of Chrome for which Chrome will not prompt the
1485// user about setting Chrome as the default browser.
1486const char kBrowserSuppressDefaultBrowserPrompt[] =
1487    "browser.suppress_default_browser_prompt_for_version";
1488
1489// A collection of position, size, and other data relating to the browser
1490// window to restore on startup.
1491const char kBrowserWindowPlacement[] = "browser.window_placement";
1492
1493// A collection of position, size, and other data relating to the task
1494// manager window to restore on startup.
1495const char kTaskManagerWindowPlacement[] = "task_manager.window_placement";
1496
1497// A collection of position, size, and other data relating to the keyword
1498// editor window to restore on startup.
1499const char kKeywordEditorWindowPlacement[] = "keyword_editor.window_placement";
1500
1501// A collection of position, size, and other data relating to the preferences
1502// window to restore on startup.
1503const char kPreferencesWindowPlacement[] = "preferences.window_placement";
1504
1505// An integer specifying the total number of bytes to be used by the
1506// renderer's in-memory cache of objects.
1507const char kMemoryCacheSize[] = "renderer.memory_cache.size";
1508
1509// String which specifies where to download files to by default.
1510const char kDownloadDefaultDirectory[] = "download.default_directory";
1511
1512// Boolean that records if the download directory was changed by an
1513// upgrade a unsafe location to a safe location.
1514const char kDownloadDirUpgraded[] = "download.directory_upgrade";
1515
1516// String which specifies where to save html files to by default.
1517const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1518
1519// The type used to save the page. See the enum SavePackage::SavePackageType in
1520// the chrome/browser/download/save_package.h for the possible values.
1521const char kSaveFileType[] = "savefile.type";
1522
1523// String which specifies the last directory that was chosen for uploading
1524// or opening a file.
1525const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1526
1527// Boolean that specifies if file selection dialogs are shown.
1528const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1529
1530// Map of default tasks, associated by MIME type.
1531const char kDefaultTasksByMimeType[] =
1532    "filebrowser.tasks.default_by_mime_type";
1533
1534// Map of default tasks, associated by file suffix.
1535const char kDefaultTasksBySuffix[] =
1536    "filebrowser.tasks.default_by_suffix";
1537
1538// Extensions which should be opened upon completion.
1539const char kDownloadExtensionsToOpen[] = "download.extensions_to_open";
1540
1541// Integer which specifies the frequency in milliseconds for detecting whether
1542// plugin windows are hung.
1543const char kHungPluginDetectFrequency[] = "browser.hung_plugin_detect_freq";
1544
1545// Integer which specifies the timeout value to be used for SendMessageTimeout
1546// to detect a hung plugin window.
1547const char kPluginMessageResponseTimeout[] =
1548    "browser.plugin_message_response_timeout";
1549
1550// String which represents the dictionary name for our spell-checker.
1551const char kSpellCheckDictionary[] = "spellcheck.dictionary";
1552
1553// Boolean pref indicating whether the spelling confirm dialog has been shown.
1554const char kSpellCheckConfirmDialogShown[] = "spellcheck.confirm_dialog_shown";
1555
1556// String which represents whether we use the spelling service.
1557const char kSpellCheckUseSpellingService[] = "spellcheck.use_spelling_service";
1558
1559// Dictionary of schemes used by the external protocol handler.
1560// The value is true if the scheme must be ignored.
1561const char kExcludedSchemes[] = "protocol_handler.excluded_schemes";
1562
1563// Keys used for MAC handling of SafeBrowsing requests.
1564const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1565const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1566
1567// Integer that specifies the index of the tab the user was on when they
1568// last visited the options window.
1569const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1570
1571// Integer that specifies the index of the tab the user was on when they
1572// last visited the content settings window.
1573const char kContentSettingsWindowLastTabIndex[] =
1574    "content_settings_window.last_tab_index";
1575
1576// Integer that specifies the index of the tab the user was on when they
1577// last visited the Certificate Manager window.
1578const char kCertificateManagerWindowLastTabIndex[] =
1579    "certificate_manager_window.last_tab_index";
1580
1581// Integer that specifies if the first run bubble should be shown.
1582// This preference is only registered by the first-run procedure.
1583const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1584
1585// String containing the last known Google URL.  We re-detect this on startup in
1586// most cases, and use it to send traffic to the correct Google host or with the
1587// correct Google domain/country code for whatever location the user is in.
1588const char kLastKnownGoogleURL[] = "browser.last_known_google_url";
1589
1590// String containing the last prompted Google URL to the user.
1591// If the user is using .x TLD for Google URL and gets prompted about .y TLD
1592// for Google URL, and says "no", we should leave the search engine set to .x
1593// but not prompt again until the domain changes away from .y.
1594const char kLastPromptedGoogleURL[] = "browser.last_prompted_google_url";
1595
1596// String containing the last known intranet redirect URL, if any.  See
1597// intranet_redirect_detector.h for more information.
1598const char kLastKnownIntranetRedirectOrigin[] = "browser.last_redirect_origin";
1599
1600// Integer containing the system Country ID the first time we checked the
1601// template URL prepopulate data.  This is used to avoid adding a whole bunch of
1602// new search engine choices if prepopulation runs when the user's Country ID
1603// differs from their previous Country ID.  This pref does not exist until
1604// prepopulation has been run at least once.
1605const char kCountryIDAtInstall[] = "countryid_at_install";
1606// OBSOLETE. Same as above, but uses the Windows-specific GeoID value instead.
1607// Updated if found to the above key.
1608const char kGeoIDAtInstall[] = "geoid_at_install";
1609
1610// An enum value of how the browser was shut down (see browser_shutdown.h).
1611const char kShutdownType[] = "shutdown.type";
1612// Number of processes that were open when the user shut down.
1613const char kShutdownNumProcesses[] = "shutdown.num_processes";
1614// Number of processes that were shut down using the slow path.
1615const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow";
1616
1617// Whether to restart the current Chrome session automatically as the last thing
1618// before shutting everything down.
1619const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown";
1620
1621// Set before autorestarting Chrome, cleared on clean exit.
1622const char kWasRestarted[] = "was.restarted";
1623
1624#if defined(OS_WIN)
1625// On Windows 8 chrome can restart in desktop or in metro mode.
1626const char kRestartSwitchMode[] = "restart.switch_mode";
1627#endif
1628
1629// Placeholder preference for disabling voice / video chat if it is ever added.
1630// Currently, this does not change any behavior.
1631const char kDisableVideoAndChat[] = "disable_video_chat";
1632
1633// Whether Extensions are enabled.
1634const char kDisableExtensions[] = "extensions.disabled";
1635
1636// Whether the plugin finder that lets you install missing plug-ins is enabled.
1637const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1638
1639// Integer boolean representing the width (in pixels) of the container for
1640// browser actions.
1641const char kBrowserActionContainerWidth[] =
1642    "extensions.browseractions.container.width";
1643
1644// Time of the last, and next scheduled, extensions auto-update checks.
1645const char kLastExtensionsUpdateCheck[] = "extensions.autoupdate.last_check";
1646const char kNextExtensionsUpdateCheck[] = "extensions.autoupdate.next_check";
1647
1648// Whether we have run the extension-alert system (see ExtensionGlobalError)
1649// at least once for this profile.
1650const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized";
1651
1652// The sites that are allowed to install extensions. These sites should be
1653// allowed to install extensions without the scary dangerous downloads bar.
1654// Also, when off-store-extension installs are disabled, these sites are exempt.
1655const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites";
1656
1657// A list of allowed extension types. Extensions can only be installed if their
1658// type is on this whitelist or alternatively on kExtensionInstallAllowList or
1659// kExtensionInstallForceList.
1660const char kExtensionAllowedTypes[] = "extensions.allowed_types";
1661
1662// Version number of last blacklist check.
1663const char kExtensionBlacklistUpdateVersion[] =
1664    "extensions.blacklistupdate.version";
1665
1666// A whitelist of extension ids the user can install: exceptions from the
1667// following blacklist.
1668const char kExtensionInstallAllowList[] = "extensions.install.allowlist";
1669
1670// A blacklist, containing extensions the user cannot install. This list can
1671// contain "*" meaning all extensions. This list should not be confused with the
1672// extension blacklist, which is Google controlled.
1673const char kExtensionInstallDenyList[] = "extensions.install.denylist";
1674
1675// A list containing extensions that Chrome will silently install
1676// at startup time. It is a list of strings, each string contains
1677// an extension ID and an update URL, delimited by a semicolon.
1678// This preference is set by an admin policy, and meant to be only
1679// accessed through extensions::ExternalPolicyProvider.
1680const char kExtensionInstallForceList[] = "extensions.install.forcelist";
1681
1682// Indicates on-disk data might have skeletal data that needs to be cleaned
1683// on the next start of the browser.
1684const char kExtensionStorageGarbageCollect[] =
1685    "extensions.storage.garbagecollect";
1686
1687// Keeps track of which sessions are collapsed in the Other Devices menu.
1688const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions";
1689
1690// New Tab Page URLs that should not be shown as most visited thumbnails.
1691const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist";
1692
1693// Last time of update of promo_resource_cache.
1694const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update";
1695
1696// Serves tips for the NTP.
1697const char kNtpTipsResourceServer[] = "ntp.tips_resource_server";
1698
1699// Serves dates to determine display of elements on the NTP.
1700const char kNtpDateResourceServer[] = "ntp.date_resource_server";
1701
1702// Which bookmarks folder should be visible on the new tab page v4.
1703const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder";
1704
1705// Which page should be visible on the new tab page v4
1706const char kNtpShownPage[] = "ntp.shown_page";
1707
1708// True if a desktop sync session was found for this user.
1709const char kNtpPromoDesktopSessionFound[] = "ntp.promo_desktop_session_found";
1710
1711// Boolean indicating whether the web store is active for the current locale.
1712const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled";
1713
1714// The id of the last web store promo actually displayed on the NTP.
1715const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id";
1716
1717// The id of the current web store promo.
1718const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id";
1719
1720// The header line for the NTP web store promo.
1721const char kNtpWebStorePromoHeader[] = "ntp.webstorepromo.header";
1722
1723// The button text for the NTP web store promo.
1724const char kNtpWebStorePromoButton[] = "ntp.webstorepromo.button";
1725
1726// The button link for the NTP web store promo.
1727const char kNtpWebStorePromoLink[] = "ntp.webstorepromo.link";
1728
1729// The image URL for the NTP web store promo logo.
1730const char kNtpWebStorePromoLogo[] = "ntp.webstorepromo.logo";
1731
1732// The original URL for the NTP web store promo logo.
1733const char kNtpWebStorePromoLogoSource[] = "ntp.webstorepromo.logo_source";
1734
1735// The "hide this" link text for the NTP web store promo.
1736const char kNtpWebStorePromoExpire[] = "ntp.webstorepromo.expire";
1737
1738// Specifies what users should maximize the NTP web store promo.
1739const char kNtpWebStorePromoUserGroup[] = "ntp.webstorepromo.usergroup";
1740
1741// Customized app page names that appear on the New Tab Page.
1742const char kNtpAppPageNames[] = "ntp.app_page_names";
1743
1744// A private RSA key for ADB handshake.
1745const char kDevToolsAdbKey[] = "devtools.adb_key";
1746
1747const char kDevToolsDisabled[] = "devtools.disabled";
1748
1749// A string specifying the dock location (either 'bottom' or 'right').
1750const char kDevToolsDockSide[] = "devtools.dock_side";
1751
1752// Maps of files edited locally using DevTools.
1753const char kDevToolsEditedFiles[] = "devtools.edited_files";
1754
1755// List of file system paths added in DevTools.
1756const char kDevToolsFileSystemPaths[] = "devtools.file_system_paths";
1757
1758// Integer location of the horizontal split bar in the browser view.
1759const char kDevToolsHSplitLocation[] = "devtools.split_location";
1760
1761// A boolean specifying whether dev tools window should be opened docked.
1762const char kDevToolsOpenDocked[] = "devtools.open_docked";
1763
1764#if defined(OS_ANDROID)
1765// A boolean specifying whether remote dev tools debugging is enabled.
1766const char kDevToolsRemoteEnabled[] = "devtools.remote_enabled";
1767#endif
1768
1769// Integer location of the vertical split bar in the browser view.
1770const char kDevToolsVSplitLocation[] = "devtools.v_split_location";
1771
1772#if defined(OS_ANDROID) || defined(OS_IOS)
1773// A boolean specifying whether a SPDY proxy is enabled.
1774const char kSpdyProxyAuthEnabled[] = "spdy_proxy.enabled";
1775const char kSpdyProxyAuthWasEnabledBefore[] = "spdy_proxy.was_enabled_before";
1776#endif  // defined(OS_ANDROID) || defined(OS_IOS)
1777
1778// Boolean which stores if the user is allowed to signin to chrome.
1779const char kSigninAllowed[] = "signin.allowed";
1780
1781// 64-bit integer serialization of the base::Time when the last sync occurred.
1782const char kSyncLastSyncedTime[] = "sync.last_synced_time";
1783
1784// Boolean specifying whether the user finished setting up sync.
1785const char kSyncHasSetupCompleted[] = "sync.has_setup_completed";
1786
1787// Boolean specifying whether to automatically sync all data types (including
1788// future ones, as they're added).  If this is true, the following preferences
1789// (kSyncBookmarks, kSyncPasswords, etc.) can all be ignored.
1790const char kSyncKeepEverythingSynced[] = "sync.keep_everything_synced";
1791
1792// Booleans specifying whether the user has selected to sync the following
1793// datatypes.
1794const char kSyncAppNotifications[] = "sync.app_notifications";
1795const char kSyncAppSettings[] = "sync.app_settings";
1796const char kSyncApps[] = "sync.apps";
1797const char kSyncAutofillProfile[] = "sync.autofill_profile";
1798const char kSyncAutofill[] = "sync.autofill";
1799const char kSyncBookmarks[] = "sync.bookmarks";
1800const char kSyncDictionary[] = "sync.dictionary";
1801const char kSyncExtensionSettings[] = "sync.extension_settings";
1802const char kSyncExtensions[] = "sync.extensions";
1803const char kSyncFaviconImages[] = "sync.favicon_images";
1804const char kSyncFaviconTracking[] = "sync.favicon_tracking";
1805const char kSyncHistoryDeleteDirectives[] = "sync.history_delete_directives";
1806const char kSyncManagedUserSettings[] = "sync.managed_user_settings";
1807const char kSyncManagedUsers[] = "sync.managed_users";
1808const char kSyncPasswords[] = "sync.passwords";
1809const char kSyncPreferences[] = "sync.preferences";
1810const char kSyncPriorityPreferences[] = "sync.priority_preferences";
1811const char kSyncSearchEngines[] = "sync.search_engines";
1812const char kSyncSessions[] = "sync.sessions";
1813const char kSyncSyncedNotifications[] = "sync.synced_notifications";
1814const char kSyncTabs[] = "sync.tabs";
1815const char kSyncThemes[] = "sync.themes";
1816const char kSyncTypedUrls[] = "sync.typed_urls";
1817
1818// Boolean used by enterprise configuration management in order to lock down
1819// sync.
1820const char kSyncManaged[] = "sync.managed";
1821
1822// Boolean to prevent sync from automatically starting up.  This is
1823// used when sync is disabled by the user via the privacy dashboard.
1824const char kSyncSuppressStart[] = "sync.suppress_start";
1825
1826// List of the currently acknowledged set of sync types, used to figure out
1827// if a new sync type has rolled out so we can notify the user.
1828const char kSyncAcknowledgedSyncTypes[] = "sync.acknowledged_types";
1829
1830// Dictionary from sync model type (as an int) to max invalidation
1831// version (int64 represented as a string).
1832const char kSyncMaxInvalidationVersions[] = "sync.max_invalidation_versions";
1833
1834// The GUID session sync will use to identify this client, even across sync
1835// disable/enable events.
1836const char kSyncSessionsGUID[] = "sync.session_sync_guid";
1837
1838// An ID to uniquely identify this client to the invalidator service.
1839const char kInvalidatorClientId[] = "invalidator.client_id";
1840
1841// Opaque state from the invalidation subsystem that is persisted via prefs.
1842// The value is base 64 encoded.
1843const char kInvalidatorInvalidationState[] = "invalidator.invalidation_state";
1844
1845// List of {source, name, max invalidation version} tuples. source is an int,
1846// while max invalidation version is an int64; both are stored as string
1847// representations though.
1848const char kInvalidatorMaxInvalidationVersions[] =
1849    "invalidator.max_invalidation_versions";
1850
1851// A string that can be used to restore sync encryption infrastructure on
1852// startup so that the user doesn't need to provide credentials on each start.
1853const char kSyncEncryptionBootstrapToken[] =
1854    "sync.encryption_bootstrap_token";
1855
1856// Same as kSyncEncryptionBootstrapToken, but derived from the keystore key,
1857// so we don't have to do a GetKey command at restart.
1858const char kSyncKeystoreEncryptionBootstrapToken[] =
1859    "sync.keystore_encryption_bootstrap_token";
1860
1861// Boolean tracking whether the user chose to specify a secondary encryption
1862// passphrase.
1863const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase";
1864
1865// String the identifies the last user that logged into sync and other
1866// google services. As opposed to kGoogleServicesUsername, this value is not
1867// cleared on signout, but while the user is signed in the two values will
1868// be the same.
1869const char kGoogleServicesLastUsername[] = "google.services.last_username";
1870
1871// String that identifies the current user logged into sync and other google
1872// services.
1873const char kGoogleServicesUsername[] = "google.services.username";
1874
1875// Local state pref containing a string regex that restricts which accounts
1876// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
1877// all accounts are allowed (no restrictions).
1878const char kGoogleServicesUsernamePattern[] =
1879    "google.services.username_pattern";
1880
1881#if !defined(OS_ANDROID)
1882// Tracks the number of times that we have shown the sync promo at startup.
1883const char kSyncPromoStartupCount[] = "sync_promo.startup_count";
1884
1885// Boolean tracking whether the user chose to skip the sync promo.
1886const char kSyncPromoUserSkipped[] = "sync_promo.user_skipped";
1887
1888// Boolean that specifies if the sync promo is allowed to show on first run.
1889// This preference is specified in the master preference file to suppress the
1890// sync promo for some installations.
1891const char kSyncPromoShowOnFirstRunAllowed[] =
1892    "sync_promo.show_on_first_run_allowed";
1893
1894// Boolean that specifies if we should show a bubble in the new tab page.
1895// The bubble is used to confirm that the user is signed into sync.
1896const char kSyncPromoShowNTPBubble[] = "sync_promo.show_ntp_bubble";
1897
1898// An error to show in the sync promo bubble, if needed.  If the sign in was
1899// successful, this property holds an empty string.
1900const char kSyncPromoErrorMessage[] = "sync_promo.error_message";
1901#endif
1902
1903// Time when the user's GAIA info was last updated (represented as an int64).
1904const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1905
1906// The URL from which the GAIA profile picture was downloaded. This is cached to
1907// prevent the same picture from being downloaded multiple times.
1908const char kProfileGAIAInfoPictureURL[] = "profile.gaia_info_picture_url";
1909
1910// Create web application shortcut dialog preferences.
1911const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop";
1912const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu";
1913const char kWebAppCreateInQuickLaunchBar[] =
1914    "browser.web_app.create_in_quick_launch_bar";
1915
1916// Dictionary that maps Geolocation network provider server URLs to
1917// corresponding access token.
1918const char kGeolocationAccessToken[] = "geolocation.access_token";
1919
1920// Boolean that indicates whether to allow firewall traversal while trying to
1921// establish the initial connection from the client or host.
1922const char kRemoteAccessHostFirewallTraversal[] =
1923    "remote_access.host_firewall_traversal";
1924
1925// Boolean controlling whether 2-factor auth should be required when connecting
1926// to a host (instead of a PIN).
1927const char kRemoteAccessHostRequireTwoFactor[] =
1928    "remote_access.host_require_two_factor";
1929
1930// String containing the domain name that hosts must belong to. If blank, then
1931// hosts can belong to any domain.
1932const char kRemoteAccessHostDomain[] = "remote_access.host_domain";
1933
1934// String containing the domain name of the Chromoting Directory.
1935// Used by Chromoting host and client.
1936const char kRemoteAccessHostTalkGadgetPrefix[] =
1937    "remote_access.host_talkgadget_prefix";
1938
1939// Boolean controlling whether curtaining is required when connecting to a host.
1940const char kRemoteAccessHostRequireCurtain[] =
1941    "remote_access.host_require_curtain";
1942
1943// The last used printer and its settings.
1944const char kPrintPreviewStickySettings[] =
1945    "printing.print_preview_sticky_settings";
1946// The root URL of the cloud print service.
1947const char kCloudPrintServiceURL[] = "cloud_print.service_url";
1948
1949// The URL to use to sign in to cloud print.
1950const char kCloudPrintSigninURL[] = "cloud_print.signin_url";
1951
1952// The last requested size of the dialog as it was closed.
1953const char kCloudPrintDialogWidth[] = "cloud_print.dialog_size.width";
1954const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height";
1955const char kCloudPrintSigninDialogWidth[] =
1956    "cloud_print.signin_dialog_size.width";
1957const char kCloudPrintSigninDialogHeight[] =
1958    "cloud_print.signin_dialog_size.height";
1959
1960// The list of BackgroundContents that should be loaded when the browser
1961// launches.
1962const char kRegisteredBackgroundContents[] = "background_contents.registered";
1963
1964#if !defined(OS_ANDROID)
1965// An int that stores how often we've shown the "Chrome is configured to
1966// auto-launch" infobar.
1967const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar";
1968#endif
1969
1970// String that lists supported HTTP authentication schemes.
1971const char kAuthSchemes[] = "auth.schemes";
1972
1973// Boolean that specifies whether to disable CNAME lookups when generating
1974// Kerberos SPN.
1975const char kDisableAuthNegotiateCnameLookup[] =
1976    "auth.disable_negotiate_cname_lookup";
1977
1978// Boolean that specifies whether to include the port in a generated Kerberos
1979// SPN.
1980const char kEnableAuthNegotiatePort[] = "auth.enable_negotiate_port";
1981
1982// Whitelist containing servers for which Integrated Authentication is enabled.
1983const char kAuthServerWhitelist[] = "auth.server_whitelist";
1984
1985// Whitelist containing servers Chrome is allowed to do Kerberos delegation
1986// with.
1987const char kAuthNegotiateDelegateWhitelist[] =
1988    "auth.negotiate_delegate_whitelist";
1989
1990// String that specifies the name of a custom GSSAPI library to load.
1991const char kGSSAPILibraryName[] = "auth.gssapi_library_name";
1992
1993// String that specifies the origin allowed to use SpdyProxy
1994// authentication, if any.
1995const char kSpdyProxyAuthOrigin[] = "auth.spdyproxy.origin";
1996
1997// Boolean that specifies whether to allow basic auth prompting on cross-
1998// domain sub-content requests.
1999const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt";
2000
2001// Boolean that specifies whether the built-in asynchronous DNS client is used.
2002const char kBuiltInDnsClientEnabled[] = "async_dns.enabled";
2003
2004// An int64 pref that contains the total size of all HTTP content that has been
2005// received from the network.
2006const char kHttpReceivedContentLength[] = "http_received_content_length";
2007
2008// An int64 pref that contains the total original size of all HTTP content that
2009// was received over the network.
2010const char kHttpOriginalContentLength[] = "http_original_content_length";
2011
2012#if defined(OS_ANDROID) || defined(OS_IOS)
2013// A List pref that contains daily totals of the original size of all HTTP
2014// that was received over the network.
2015const char kDailyHttpOriginalContentLength[] =
2016    "data_reduction.daily_original_length";
2017
2018// A List pref that contains daily totals of the size of all HTTP content that
2019// has been received from the network.
2020const char kDailyHttpReceivedContentLength[] =
2021    "data_reduction.daily_received_length";
2022
2023// An int64 pref that contains an internal representation of midnight on the
2024// date of the last update to |kDailyHttp{Original,Received}ContentLength|.
2025const char kDailyHttpContentLengthLastUpdateDate[] =
2026    "data_reduction.last_update_date";
2027#endif  // defined(OS_ANDROID) || defined(OS_IOS)
2028
2029// A pref holding the value of the policy used to explicitly allow or deny
2030// access to audio capture devices.  When enabled or not set, the user is
2031// prompted for device access.  When disabled, access to audio capture devices
2032// is not allowed and no prompt will be shown.
2033// See also kAudioCaptureAllowedUrls.
2034const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
2035// Holds URL patterns that specify URLs that will be granted access to audio
2036// capture devices without prompt.  NOTE: This whitelist is currently only
2037// supported when running in kiosk mode.
2038// TODO(tommi): Update comment when this is supported for all modes.
2039const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
2040
2041// A pref holding the value of the policy used to explicitly allow or deny
2042// access to video capture devices.  When enabled or not set, the user is
2043// prompted for device access.  When disabled, access to video capture devices
2044// is not allowed and no prompt will be shown.
2045const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
2046// Holds URL patterns that specify URLs that will be granted access to video
2047// capture devices without prompt.  NOTE: This whitelist is currently only
2048// supported when running in kiosk mode.
2049// TODO(tommi): Update comment when this is supported for all modes.
2050const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
2051
2052#if defined(OS_CHROMEOS)
2053// Dictionary for transient storage of settings that should go into device
2054// settings storage before owner has been assigned.
2055const char kDeviceSettingsCache[] = "signed_settings_cache";
2056
2057// The hardware keyboard layout of the device. This should look like
2058// "xkb:us::eng".
2059const char kHardwareKeyboardLayout[] = "intl.hardware_keyboard";
2060
2061// An integer pref which shows number of times carrier deal promo
2062// notification has been shown to user.
2063const char kCarrierDealPromoShown[] =
2064    "settings.internet.mobile.carrier_deal_promo_shown";
2065
2066// A boolean pref of the auto-enrollment decision. Its value is only valid if
2067// it's not the default value; otherwise, no auto-enrollment decision has been
2068// made yet.
2069const char kShouldAutoEnroll[] = "ShouldAutoEnroll";
2070
2071// An integer pref with the maximum number of bits used by the client in a
2072// previous auto-enrollment request. If the client goes through an auto update
2073// during OOBE and reboots into a version of the OS with a larger maximum
2074// modulus, then it will retry auto-enrollment using the updated value.
2075const char kAutoEnrollmentPowerLimit[] = "AutoEnrollmentPowerLimit";
2076
2077// The local state pref that stores device activity times before reporting
2078// them to the policy server.
2079const char kDeviceActivityTimes[] = "device_status.activity_times";
2080
2081// A pref holding the last known location when device location reporting is
2082// enabled.
2083const char kDeviceLocation[] = "device_status.location";
2084
2085// A string that is used to store first-time sync startup after once sync is
2086// disabled. This will be refreshed every sign-in.
2087const char kSyncSpareBootstrapToken[] = "sync.spare_bootstrap_token";
2088
2089// A pref holding the value of the policy used to disable mounting of external
2090// storage for the user.
2091const char kExternalStorageDisabled[] = "hardware.external_storage_disabled";
2092
2093// A pref holding the value of the policy used to disable playing audio on
2094// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
2095// it, therefore when the policy is lifted the original mute state is restored.
2096const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
2097
2098// A dictionary that maps usernames to wallpaper properties.
2099const char kUsersWallpaperInfo[] = "user_wallpaper_info";
2100
2101// Copy of owner swap mouse buttons option to use on login screen.
2102const char kOwnerPrimaryMouseButtonRight[] = "owner.mouse.primary_right";
2103
2104// Copy of owner tap-to-click option to use on login screen.
2105const char kOwnerTapToClickEnabled[] = "owner.touchpad.enable_tap_to_click";
2106
2107// The length of device uptime after which an automatic reboot is scheduled,
2108// expressed in seconds.
2109const char kUptimeLimit[] = "automatic_reboot.uptime_limit";
2110
2111// Whether an automatic reboot should be scheduled when an update has been
2112// applied and a reboot is required to complete the update process.
2113const char kRebootAfterUpdate[] = "automatic_reboot.reboot_after_update";
2114
2115// An any-api scoped refresh token for enterprise-enrolled devices.  Allows
2116// for connection to Google APIs when the user isn't logged in.  Currently used
2117// for for getting a cloudprint scoped token to allow printing in Guest mode,
2118// Public Accounts and kiosks.
2119const char kDeviceRobotAnyApiRefreshToken[] =
2120    "device_robot_refresh_token.any-api";
2121
2122// Device requisition for enterprise enrollment.
2123const char kDeviceEnrollmentRequisition[] = "enrollment.device_requisition";
2124
2125// Whether to automatically start the enterprise enrollment step during OOBE.
2126const char kDeviceEnrollmentAutoStart[] = "enrollment.auto_start";
2127
2128// Whether the user may exit enrollment.
2129const char kDeviceEnrollmentCanExit[] = "enrollment.can_exit";
2130
2131// Dictionary of per-user Least Recently Used input method (used at login
2132// screen).
2133extern const char kUsersLRUInputMethod[] = "UsersLRUInputMethod";
2134#endif
2135
2136// Whether there is a Flash version installed that supports clearing LSO data.
2137const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
2138
2139// Whether we should show Pepper Flash-specific settings.
2140const char kPepperFlashSettingsEnabled[] =
2141    "browser.pepper_flash_settings_enabled";
2142
2143// String which specifies where to store the disk cache.
2144const char kDiskCacheDir[] = "browser.disk_cache_dir";
2145// Pref name for the policy specifying the maximal cache size.
2146const char kDiskCacheSize[] = "browser.disk_cache_size";
2147// Pref name for the policy specifying the maximal media cache size.
2148const char kMediaCacheSize[] = "browser.media_cache_size";
2149
2150// Specifies the release channel that the device should be locked to.
2151// Possible values: "stable-channel", "beta-channel", "dev-channel", or an
2152// empty string, in which case the value will be ignored.
2153// TODO(dubroy): This preference may not be necessary once
2154// http://crosbug.com/17015 is implemented and the update engine can just
2155// fetch the correct value from the policy.
2156const char kChromeOsReleaseChannel[] = "cros.system.releaseChannel";
2157
2158const char kPerformanceTracingEnabled[] =
2159    "feedback.performance_tracing_enabled";
2160
2161// Value of the enums in TabStrip::LayoutType as an int.
2162const char kTabStripLayoutType[] = "tab_strip_layout_type";
2163
2164// If true, cloud policy for the user is not loaded when the user signs in.
2165const char kDisableCloudPolicyOnSignin[] =
2166    "policy.disable_cloud_policy_on_signin";
2167
2168// Indicates that factory reset was requested from options page.
2169const char kFactoryResetRequested[] = "FactoryResetRequested";
2170
2171// Boolean recording whether we have showed a balloon that calls out the message
2172// center for desktop notifications.
2173const char kMessageCenterShowedFirstRunBalloon[] =
2174    "message_center.showed_first_run_balloon";
2175
2176// *************** SERVICE PREFS ***************
2177// These are attached to the service process.
2178
2179const char kCloudPrintRoot[] = "cloud_print";
2180const char kCloudPrintProxyEnabled[] = "cloud_print.enabled";
2181// The unique id for this instance of the cloud print proxy.
2182const char kCloudPrintProxyId[] = "cloud_print.proxy_id";
2183// The GAIA auth token for Cloud Print
2184const char kCloudPrintAuthToken[] = "cloud_print.auth_token";
2185// The GAIA auth token used by Cloud Print to authenticate with the XMPP server
2186// This should eventually go away because the above token should work for both.
2187const char kCloudPrintXMPPAuthToken[] = "cloud_print.xmpp_auth_token";
2188// The email address of the account used to authenticate with the Cloud Print
2189// server.
2190const char kCloudPrintEmail[] = "cloud_print.email";
2191// Settings specific to underlying print system.
2192const char kCloudPrintPrintSystemSettings[] =
2193    "cloud_print.print_system_settings";
2194// A boolean indicating whether we should poll for print jobs when don't have
2195// an XMPP connection (false by default).
2196const char kCloudPrintEnableJobPoll[] = "cloud_print.enable_job_poll";
2197const char kCloudPrintRobotRefreshToken[] = "cloud_print.robot_refresh_token";
2198const char kCloudPrintRobotEmail[] = "cloud_print.robot_email";
2199// A boolean indicating whether we should connect to cloud print new printers.
2200const char kCloudPrintConnectNewPrinters[] =
2201    "cloud_print.user_settings.connectNewPrinters";
2202// A boolean indicating whether we should ping XMPP connection.
2203const char kCloudPrintXmppPingEnabled[] = "cloud_print.xmpp_ping_enabled";
2204// An int value indicating the average timeout between xmpp pings.
2205const char kCloudPrintXmppPingTimeout[] = "cloud_print.xmpp_ping_timeout_sec";
2206// Dictionary with settings stored by connector setup page.
2207const char kCloudPrintUserSettings[] = "cloud_print.user_settings";
2208// List of printers settings.
2209extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
2210// A boolean indicating whether submitting jobs to Google Cloud Print is
2211// blocked by policy.
2212const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2213
2214// Preference to store proxy settings.
2215const char kProxy[] = "proxy";
2216const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2217
2218// Preferences that are exclusively used to store managed values for default
2219// content settings.
2220const char kManagedDefaultCookiesSetting[] =
2221    "profile.managed_default_content_settings.cookies";
2222const char kManagedDefaultImagesSetting[] =
2223    "profile.managed_default_content_settings.images";
2224const char kManagedDefaultJavaScriptSetting[] =
2225    "profile.managed_default_content_settings.javascript";
2226const char kManagedDefaultPluginsSetting[] =
2227    "profile.managed_default_content_settings.plugins";
2228const char kManagedDefaultPopupsSetting[] =
2229    "profile.managed_default_content_settings.popups";
2230const char kManagedDefaultGeolocationSetting[] =
2231    "profile.managed_default_content_settings.geolocation";
2232const char kManagedDefaultNotificationsSetting[] =
2233    "profile.managed_default_content_settings.notifications";
2234const char kManagedDefaultMediaStreamSetting[] =
2235    "profile.managed_default_content_settings.media_stream";
2236
2237// Preferences that are exclusively used to store managed
2238// content settings patterns.
2239const char kManagedCookiesAllowedForUrls[] =
2240    "profile.managed_cookies_allowed_for_urls";
2241const char kManagedCookiesBlockedForUrls[] =
2242    "profile.managed_cookies_blocked_for_urls";
2243const char kManagedCookiesSessionOnlyForUrls[] =
2244    "profile.managed_cookies_sessiononly_for_urls";
2245const char kManagedImagesAllowedForUrls[] =
2246    "profile.managed_images_allowed_for_urls";
2247const char kManagedImagesBlockedForUrls[] =
2248    "profile.managed_images_blocked_for_urls";
2249const char kManagedJavaScriptAllowedForUrls[] =
2250    "profile.managed_javascript_allowed_for_urls";
2251const char kManagedJavaScriptBlockedForUrls[] =
2252    "profile.managed_javascript_blocked_for_urls";
2253const char kManagedPluginsAllowedForUrls[] =
2254    "profile.managed_plugins_allowed_for_urls";
2255const char kManagedPluginsBlockedForUrls[] =
2256    "profile.managed_plugins_blocked_for_urls";
2257const char kManagedPopupsAllowedForUrls[] =
2258    "profile.managed_popups_allowed_for_urls";
2259const char kManagedPopupsBlockedForUrls[] =
2260    "profile.managed_popups_blocked_for_urls";
2261const char kManagedNotificationsAllowedForUrls[] =
2262    "profile.managed_notifications_allowed_for_urls";
2263const char kManagedNotificationsBlockedForUrls[] =
2264    "profile.managed_notifications_blocked_for_urls";
2265const char kManagedAutoSelectCertificateForUrls[] =
2266    "profile.managed_auto_select_certificate_for_urls";
2267
2268#if defined(OS_MACOSX)
2269// Set to true if the user removed our login item so we should not create a new
2270// one when uninstalling background apps.
2271const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2272
2273// Set to true if Chrome already created a login item, so there's no need to
2274// create another one.
2275const char kChromeCreatedLoginItem[] =
2276  "background_mode.chrome_created_login_item";
2277
2278// Set to true once we've initialized kChromeCreatedLoginItem for the first
2279// time.
2280const char kMigratedLoginItemPref[] =
2281  "background_mode.migrated_login_item_pref";
2282#endif
2283
2284// Set to true if background mode is enabled on this browser.
2285const char kBackgroundModeEnabled[] = "background_mode.enabled";
2286
2287// Set to true if hardware acceleration mode is enabled on this browser.
2288const char kHardwareAccelerationModeEnabled[] =
2289  "hardware_acceleration_mode.enabled";
2290
2291// Hardware acceleration mode from previous browser launch.
2292const char kHardwareAccelerationModePrevious[] =
2293  "hardware_acceleration_mode_previous";
2294
2295// List of protocol handlers.
2296const char kRegisteredProtocolHandlers[] =
2297  "custom_handlers.registered_protocol_handlers";
2298
2299// List of protocol handlers the user has requested not to be asked about again.
2300const char kIgnoredProtocolHandlers[] =
2301  "custom_handlers.ignored_protocol_handlers";
2302
2303// Whether user-specified handlers for protocols and content types can be
2304// specified.
2305const char kCustomHandlersEnabled[] = "custom_handlers.enabled";
2306
2307// Integers that specify the policy refresh rate for device- and user-policy in
2308// milliseconds. Not all values are meaningful, so it is clamped to a sane range
2309// by the cloud policy subsystem.
2310const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate";
2311const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
2312
2313// String that represents the recovery component last downloaded version. This
2314// takes the usual 'a.b.c.d' notation.
2315const char kRecoveryComponentVersion[] = "recovery_component.version";
2316
2317// String that stores the component updater last known state. This is used for
2318// troubleshooting.
2319const char kComponentUpdaterState[] = "component_updater.state";
2320
2321// The next media gallery ID to assign.
2322const char kMediaGalleriesUniqueId[] = "media_galleries.gallery_id";
2323
2324// A list of dictionaries, where each dictionary represents a known media
2325// gallery.
2326const char kMediaGalleriesRememberedGalleries[] =
2327    "media_galleries.remembered_galleries";
2328
2329#if defined(USE_ASH)
2330// |kShelfAlignment| and |kShelfAutoHideBehavior| have a local variant. The
2331// local variant is not synced and is used if set. If the local variant is not
2332// set its value is set from the synced value (once prefs have been
2333// synced). This gives a per-machine setting that is initialized from the last
2334// set value.
2335// These values are default on the machine but can be overridden by per-display
2336// values in kShelfPreferences (unless overridden by managed policy).
2337// String value corresponding to ash::Shell::ShelfAlignment.
2338const char kShelfAlignment[] = "shelf_alignment";
2339const char kShelfAlignmentLocal[] = "shelf_alignment_local";
2340// String value corresponding to ash::Shell::ShelfAutoHideBehavior.
2341const char kShelfAutoHideBehavior[] = "auto_hide_behavior";
2342const char kShelfAutoHideBehaviorLocal[] = "auto_hide_behavior_local";
2343// This value stores chrome icon's index in the launcher. This should be handled
2344// separately with app shortcut's index because of LauncherModel's backward
2345// compatability. If we add chrome icon index to |kPinnedLauncherApps|, its
2346// index is also stored in the |kPinnedLauncherApp| pref. It may causes
2347// creating two chrome icons.
2348const char kShelfChromeIconIndex[] = "shelf_chrome_icon_index";
2349
2350const char kPinnedLauncherApps[] = "pinned_launcher_apps";
2351// Boolean value indicating whether to show a logout button in the ash tray.
2352const char kShowLogoutButtonInTray[] = "show_logout_button_in_tray";
2353// Dictionary value that holds per-display preference of shelf alignment and
2354// auto-hide behavior. Key of the dictionary is the id of the display, and
2355// its value is a dictionary whose keys are kShelfAlignment and
2356// kShelfAutoHideBehavior.
2357const char kShelfPreferences[] = "shelf_preferences";
2358
2359// Tuning for immersive fullscreen.
2360const char kImmersiveModeRevealDelayMs[] =
2361    "immersive_mode.reveal_delay_ms";
2362const char kImmersiveModeRevealXThresholdPixels[] =
2363    "immersive_mode.reveal_x_threshold_pixels";
2364#endif
2365
2366#if defined(USE_AURA)
2367// Tuning settings for gestures.
2368const char kFlingVelocityCap[] = "gesture.fling_velocity_cap";
2369const char kLongPressTimeInSeconds[] =
2370    "gesture.long_press_time_in_seconds";
2371const char kMaxDistanceBetweenTapsForDoubleTap[] =
2372    "gesture.max_distance_between_taps_for_double_tap";
2373const char kMaxDistanceForTwoFingerTapInPixels[] =
2374    "gesture.max_distance_for_two_finger_tap_in_pixels";
2375const char kMaxSecondsBetweenDoubleClick[] =
2376    "gesture.max_seconds_between_double_click";
2377const char kMaxSeparationForGestureTouchesInPixels[] =
2378    "gesture.max_separation_for_gesture_touches_in_pixels";
2379const char kMaxSwipeDeviationRatio[] =
2380    "gesture.max_swipe_deviation_ratio";
2381const char kMaxTouchDownDurationInSecondsForClick[] =
2382    "gesture.max_touch_down_duration_in_seconds_for_click";
2383const char kMaxTouchMoveInPixelsForClick[] =
2384    "gesture.max_touch_move_in_pixels_for_click";
2385const char kMinDistanceForPinchScrollInPixels[] =
2386    "gesture.min_distance_for_pinch_scroll_in_pixels";
2387const char kMinFlickSpeedSquared[] =
2388    "gesture.min_flick_speed_squared";
2389const char kMinPinchUpdateDistanceInPixels[] =
2390    "gesture.min_pinch_update_distance_in_pixels";
2391const char kMinRailBreakVelocity[] =
2392    "gesture.min_rail_break_velocity";
2393const char kMinScrollDeltaSquared[] =
2394    "gesture.min_scroll_delta_squared";
2395const char kMinSwipeSpeed[] =
2396    "gesture.min_swipe_speed";
2397const char kMinTouchDownDurationInSecondsForClick[] =
2398    "gesture.min_touch_down_duration_in_seconds_for_click";
2399const char kPointsBufferedForVelocity[] =
2400    "gesture.points_buffered_for_velocity";
2401const char kRailBreakProportion[] =
2402    "gesture.rail_break_proportion";
2403const char kRailStartProportion[] =
2404    "gesture.rail_start_proportion";
2405const char kScrollPredictionSeconds[] =
2406    "gesture.scroll_prediction_seconds";
2407const char kSemiLongPressTimeInSeconds[] =
2408    "gesture.semi_long_press_time_in_seconds";
2409const char kTabScrubActivationDelayInMS[] =
2410    "gesture.tab_scrub_activation_delay_in_ms";
2411const char kFlingAccelerationCurveCoefficient0[] =
2412    "gesture.fling_acceleration_curve_coefficient_0";
2413const char kFlingAccelerationCurveCoefficient1[] =
2414    "gesture.fling_acceleration_curve_coefficient_1";
2415const char kFlingAccelerationCurveCoefficient2[] =
2416    "gesture.fling_acceleration_curve_coefficient_2";
2417const char kFlingAccelerationCurveCoefficient3[] =
2418    "gesture.fling_acceleration_curve_coefficient_3";
2419const char kFlingCurveTouchpadAlpha[] = "flingcurve.touchpad_alpha";
2420const char kFlingCurveTouchpadBeta[] = "flingcurve.touchpad_beta";
2421const char kFlingCurveTouchpadGamma[] = "flingcurve.touchpad_gamma";
2422const char kFlingCurveTouchscreenAlpha[] = "flingcurve.touchscreen_alpha";
2423const char kFlingCurveTouchscreenBeta[] = "flingcurve.touchscreen_beta";
2424const char kFlingCurveTouchscreenGamma[] = "flingcurve.touchscreen_gamma";
2425const char kFlingMaxCancelToDownTimeInMs[] =
2426    "gesture.fling_max_cancel_to_down_time_in_ms";
2427const char kFlingMaxTapGapTimeInMs[] =
2428    "gesture.fling_max_tap_gap_time_in_ms";
2429const char kOverscrollHorizontalThresholdComplete[] =
2430    "overscroll.horizontal_threshold_complete";
2431const char kOverscrollVerticalThresholdComplete[] =
2432    "overscroll.vertical_threshold_complete";
2433const char kOverscrollMinimumThresholdStart[] =
2434    "overscroll.minimum_threshold_start";
2435const char kOverscrollVerticalThresholdStart[] =
2436    "overscroll.vertical_threshold_start";
2437const char kOverscrollHorizontalResistThreshold[] =
2438    "overscroll.horizontal_resist_threshold";
2439const char kOverscrollVerticalResistThreshold[] =
2440    "overscroll.vertical_resist_threshold";
2441#endif
2442
2443// Counts how many more times the 'profile on a network share' warning should be
2444// shown to the user before the next silence period.
2445const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
2446// Tracks the time of the last shown warning. Used to reset
2447// |network_profile.warnings_left| after a silence period.
2448const char kNetworkProfileLastWarningTime[] =
2449    "network_profile.last_warning_time";
2450
2451// 64-bit serialization of the time last policy usage statistics were collected
2452// by UMA_HISTOGRAM_ENUMERATION.
2453const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
2454
2455#if defined(OS_CHROMEOS)
2456// The RLZ brand code, if enabled.
2457const char kRLZBrand[] = "rlz.brand";
2458// Whether RLZ pings are disabled.
2459const char kRLZDisabled[] = "rlz.disabled";
2460#endif
2461
2462// The directory in user data dir that contains the profile to be used with the
2463// app launcher.
2464extern const char kAppListProfile[] = "app_list.profile";
2465
2466// Whether to show the app list on a browser relaunch. Used when switching out
2467// of metro mode after a user gesture requests showing the app list.
2468const char kRestartWithAppList[] = "app_list.show_on_relaunch";
2469
2470// The number of times the app launcher was launched since last ping and
2471// the time of the last ping.
2472extern const char kAppListLaunchCount[] = "app_list.launch_count";
2473extern const char kLastAppListLaunchPing[] = "app_list.last_launch_ping";
2474
2475// The number of times the an app was launched from the app launcher since last
2476// ping and the time of the last ping.
2477extern const char kAppListAppLaunchCount[] = "app_list.app_launch_count";
2478extern const char kLastAppListAppLaunchPing[] = "app_list.last_app_launch_ping";
2479
2480// How often the bubble has been shown.
2481extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2482
2483// A string pref for storing the salt used to compute the pepper device ID.
2484const char kDRMSalt[] = "settings.privacy.drm_salt";
2485// A boolean pref that enables the (private) pepper GetDeviceID() call.
2486const char kEnableDRM[] = "settings.privacy.drm_enabled";
2487
2488}  // namespace prefs
2489