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