OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "chrome/common/features.h" | |
9 #include "chrome/common/pref_font_webkit_names.h" | 8 #include "chrome/common/pref_font_webkit_names.h" |
10 | 9 |
11 namespace prefs { | 10 namespace prefs { |
12 | 11 |
13 // *************** PROFILE PREFS *************** | 12 // *************** PROFILE PREFS *************** |
14 // These are attached to the user profile | 13 // These are attached to the user profile |
15 | 14 |
16 | 15 |
17 // A bool pref that keeps whether the child status for this profile was already | 16 // A bool pref that keeps whether the child status for this profile was already |
18 // successfully checked via ChildAccountService. | 17 // successfully checked via ChildAccountService. |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 359 |
361 // Enum that specifies whether Incognito mode is: | 360 // Enum that specifies whether Incognito mode is: |
362 // 0 - Enabled. Default behaviour. Default mode is available on demand. | 361 // 0 - Enabled. Default behaviour. Default mode is available on demand. |
363 // 1 - Disabled. Used cannot browse pages in Incognito mode. | 362 // 1 - Disabled. Used cannot browse pages in Incognito mode. |
364 // 2 - Forced. All pages/sessions are forced into Incognito. | 363 // 2 - Forced. All pages/sessions are forced into Incognito. |
365 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; | 364 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; |
366 | 365 |
367 // Boolean that is true when Suggest support is enabled. | 366 // Boolean that is true when Suggest support is enabled. |
368 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; | 367 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; |
369 | 368 |
370 #if defined(OS_ANDROID) | 369 #if BUILDFLAG(ANDROID_JAVA_UI) |
371 // String indicating the Contextual Search enabled state. | 370 // String indicating the Contextual Search enabled state. |
372 // "false" - opt-out (disabled) | 371 // "false" - opt-out (disabled) |
373 // "" (empty string) - undecided | 372 // "" (empty string) - undecided |
374 // "true" - opt-in (enabled) | 373 // "true" - opt-in (enabled) |
375 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; | 374 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; |
376 #endif | 375 #endif |
377 | 376 |
378 #if defined(OS_MACOSX) | 377 #if defined(OS_MACOSX) |
379 // Boolean that indicates whether the browser should put up a confirmation | 378 // Boolean that indicates whether the browser should put up a confirmation |
380 // window when the user is attempting to quit. Mac only. | 379 // window when the user is attempting to quit. Mac only. |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 | 983 |
985 // Whether the user has selected "Same as billing" for the shipping address when | 984 // Whether the user has selected "Same as billing" for the shipping address when |
986 // using Google Wallet. | 985 // using Google Wallet. |
987 const char kAutofillDialogWalletShippingSameAsBilling[] = | 986 const char kAutofillDialogWalletShippingSameAsBilling[] = |
988 "autofill.wallet_shipping_same_as_billing"; | 987 "autofill.wallet_shipping_same_as_billing"; |
989 | 988 |
990 // The number of times the generated credit card bubble has been shown. | 989 // The number of times the generated credit card bubble has been shown. |
991 const char kAutofillGeneratedCardBubbleTimesShown[] = | 990 const char kAutofillGeneratedCardBubbleTimesShown[] = |
992 "autofill.generated_card_bubble_times_shown"; | 991 "autofill.generated_card_bubble_times_shown"; |
993 | 992 |
994 #if defined(OS_ANDROID) | 993 #if BUILDFLAG(ANDROID_JAVA_UI) |
995 // A dictionary that tracks the defaults to be set on the next invocation | 994 // A dictionary that tracks the defaults to be set on the next invocation |
996 // of the requestAutocomplete dialog. | 995 // of the requestAutocomplete dialog. |
997 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; | 996 const char kAutofillDialogDefaults[] = "autofill.rac_dialog_defaults"; |
998 #endif | 997 #endif |
999 | 998 |
1000 #if !defined(OS_ANDROID) | 999 #if !defined(OS_ANDROID) |
1001 const char kPinnedTabs[] = "pinned_tabs"; | 1000 const char kPinnedTabs[] = "pinned_tabs"; |
1002 #endif | 1001 #endif |
1003 | 1002 |
1004 // Preference to disable 3D APIs (WebGL, Pepper 3D). | 1003 // Preference to disable 3D APIs (WebGL, Pepper 3D). |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 | 1248 |
1250 // On Chrome OS, total number of kernel crashes since the last report. | 1249 // On Chrome OS, total number of kernel crashes since the last report. |
1251 const char kStabilityKernelCrashCount[] = | 1250 const char kStabilityKernelCrashCount[] = |
1252 "user_experience_metrics.stability.kernel_crash_count"; | 1251 "user_experience_metrics.stability.kernel_crash_count"; |
1253 | 1252 |
1254 // On Chrome OS, total number of unclean system shutdowns since the | 1253 // On Chrome OS, total number of unclean system shutdowns since the |
1255 // last report. | 1254 // last report. |
1256 const char kStabilitySystemUncleanShutdownCount[] = | 1255 const char kStabilitySystemUncleanShutdownCount[] = |
1257 "user_experience_metrics.stability.system_unclean_shutdowns"; | 1256 "user_experience_metrics.stability.system_unclean_shutdowns"; |
1258 | 1257 |
1259 #if defined(OS_ANDROID) | 1258 #if BUILDFLAG(ANDROID_JAVA_UI) |
1260 // Activity type that is currently in the foreground for the UMA session. | 1259 // Activity type that is currently in the foreground for the UMA session. |
1261 // Uses the ActivityTypeIds::Type enum. | 1260 // Uses the ActivityTypeIds::Type enum. |
1262 const char kStabilityForegroundActivityType[] = | 1261 const char kStabilityForegroundActivityType[] = |
1263 "user_experience_metrics.stability.current_foreground_activity_type"; | 1262 "user_experience_metrics.stability.current_foreground_activity_type"; |
1264 | 1263 |
1265 // Tracks which Activities were launched during the last session. | 1264 // Tracks which Activities were launched during the last session. |
1266 // See |metrics_service_android.cc| for its usage. | 1265 // See |metrics_service_android.cc| for its usage. |
1267 const char kStabilityLaunchedActivityFlags[] = | 1266 const char kStabilityLaunchedActivityFlags[] = |
1268 "user_experience_metrics.stability.launched_activity_flags"; | 1267 "user_experience_metrics.stability.launched_activity_flags"; |
1269 | 1268 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1409 | 1408 |
1410 // Whether Extensions are enabled. | 1409 // Whether Extensions are enabled. |
1411 const char kDisableExtensions[] = "extensions.disabled"; | 1410 const char kDisableExtensions[] = "extensions.disabled"; |
1412 | 1411 |
1413 // Whether the plugin finder that lets you install missing plugins is enabled. | 1412 // Whether the plugin finder that lets you install missing plugins is enabled. |
1414 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; | 1413 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; |
1415 | 1414 |
1416 // Customized app page names that appear on the New Tab Page. | 1415 // Customized app page names that appear on the New Tab Page. |
1417 const char kNtpAppPageNames[] = "ntp.app_page_names"; | 1416 const char kNtpAppPageNames[] = "ntp.app_page_names"; |
1418 | 1417 |
1419 #if defined(OS_ANDROID) | 1418 #if BUILDFLAG(ANDROID_JAVA_UI) |
1420 // Keeps track of currently open tabs collapsed state in the Other Devices menu. | 1419 // Keeps track of currently open tabs collapsed state in the Other Devices menu. |
1421 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs"; | 1420 const char kNtpCollapsedCurrentlyOpenTabs[] = "ntp.collapsed_open_tabs"; |
1422 #endif | 1421 #endif |
1423 | 1422 |
1424 // Keeps track of which sessions are collapsed in the Other Devices menu. | 1423 // Keeps track of which sessions are collapsed in the Other Devices menu. |
1425 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; | 1424 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; |
1426 | 1425 |
1427 #if defined(OS_ANDROID) | 1426 #if BUILDFLAG(ANDROID_JAVA_UI) |
1428 // Keeps track of recently closed tabs collapsed state in the Other Devices | 1427 // Keeps track of recently closed tabs collapsed state in the Other Devices |
1429 // menu. | 1428 // menu. |
1430 const char kNtpCollapsedRecentlyClosedTabs[] = | 1429 const char kNtpCollapsedRecentlyClosedTabs[] = |
1431 "ntp.collapsed_recently_closed_tabs"; | 1430 "ntp.collapsed_recently_closed_tabs"; |
1432 | 1431 |
1433 // Keeps track of snapshot documents collapsed state in the Other Devices menu. | 1432 // Keeps track of snapshot documents collapsed state in the Other Devices menu. |
1434 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; | 1433 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; |
1435 | 1434 |
1436 // Keeps track of sync promo collapsed state in the Other Devices menu. | 1435 // Keeps track of sync promo collapsed state in the Other Devices menu. |
1437 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; | 1436 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; |
1438 #endif | 1437 #endif |
1439 | 1438 |
1440 // Which page should be visible on the new tab page v4 | 1439 // Which page should be visible on the new tab page v4 |
1441 const char kNtpShownPage[] = "ntp.shown_page"; | 1440 const char kNtpShownPage[] = "ntp.shown_page"; |
1442 | 1441 |
1443 #if defined(OS_ANDROID) | 1442 #if BUILDFLAG(ANDROID_JAVA_UI) |
1444 // Ordered list of website suggestions shown on the new tab page that will allow | 1443 // Ordered list of website suggestions shown on the new tab page that will allow |
1445 // retaining the order even if the suggestions change over time. | 1444 // retaining the order even if the suggestions change over time. |
1446 const char kNTPSuggestionsURL[] = "ntp.suggestions_url"; | 1445 const char kNTPSuggestionsURL[] = "ntp.suggestions_url"; |
1447 | 1446 |
1448 // Whether the suggestion was derived from personal data. | 1447 // Whether the suggestion was derived from personal data. |
1449 const char kNTPSuggestionsIsPersonal[] = "ntp.suggestions_is_personal"; | 1448 const char kNTPSuggestionsIsPersonal[] = "ntp.suggestions_is_personal"; |
1450 #endif | 1449 #endif |
1451 | 1450 |
1452 // A private RSA key for ADB handshake. | 1451 // A private RSA key for ADB handshake. |
1453 const char kDevToolsAdbKey[] = "devtools.adb_key"; | 1452 const char kDevToolsAdbKey[] = "devtools.adb_key"; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 // Create web application shortcut dialog preferences. | 1534 // Create web application shortcut dialog preferences. |
1536 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; | 1535 const char kWebAppCreateOnDesktop[] = "browser.web_app.create_on_desktop"; |
1537 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; | 1536 const char kWebAppCreateInAppsMenu[] = "browser.web_app.create_in_apps_menu"; |
1538 const char kWebAppCreateInQuickLaunchBar[] = | 1537 const char kWebAppCreateInQuickLaunchBar[] = |
1539 "browser.web_app.create_in_quick_launch_bar"; | 1538 "browser.web_app.create_in_quick_launch_bar"; |
1540 | 1539 |
1541 // Dictionary that maps Geolocation network provider server URLs to | 1540 // Dictionary that maps Geolocation network provider server URLs to |
1542 // corresponding access token. | 1541 // corresponding access token. |
1543 const char kGeolocationAccessToken[] = "geolocation.access_token"; | 1542 const char kGeolocationAccessToken[] = "geolocation.access_token"; |
1544 | 1543 |
1545 #if defined(OS_ANDROID) | 1544 #if BUILDFLAG(ANDROID_JAVA_UI) |
1546 // Boolean that controls the enabled-state of Geolocation in content. | 1545 // Boolean that controls the enabled-state of Geolocation in content. |
1547 const char kGeolocationEnabled[] = "geolocation.enabled"; | 1546 const char kGeolocationEnabled[] = "geolocation.enabled"; |
1548 #endif | 1547 #endif |
1549 | 1548 |
1550 #if BUILDFLAG(ENABLE_GOOGLE_NOW) | 1549 #if BUILDFLAG(ENABLE_GOOGLE_NOW) |
1551 // Boolean that is true when Google services can use the user's location. | 1550 // Boolean that is true when Google services can use the user's location. |
1552 const char kGoogleGeolocationAccessEnabled[] = | 1551 const char kGoogleGeolocationAccessEnabled[] = |
1553 "googlegeolocationaccess.enabled"; | 1552 "googlegeolocationaccess.enabled"; |
1554 #endif | 1553 #endif |
1555 | 1554 |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2106 // A boolean pref that enables the (private) pepper GetDeviceID() call and | 2105 // A boolean pref that enables the (private) pepper GetDeviceID() call and |
2107 // enables the use of remote attestation for content protection. | 2106 // enables the use of remote attestation for content protection. |
2108 const char kEnableDRM[] = "settings.privacy.drm_enabled"; | 2107 const char kEnableDRM[] = "settings.privacy.drm_enabled"; |
2109 | 2108 |
2110 // An integer per-profile pref that signals if the watchdog extension is | 2109 // An integer per-profile pref that signals if the watchdog extension is |
2111 // installed and active. We need to know if the watchdog extension active for | 2110 // installed and active. We need to know if the watchdog extension active for |
2112 // ActivityLog initialization before the extension system is initialized. | 2111 // ActivityLog initialization before the extension system is initialized. |
2113 const char kWatchdogExtensionActive[] = | 2112 const char kWatchdogExtensionActive[] = |
2114 "profile.extensions.activity_log.num_consumers_active"; | 2113 "profile.extensions.activity_log.num_consumers_active"; |
2115 | 2114 |
2116 #if defined(OS_ANDROID) | 2115 #if BUILDFLAG(ANDROID_JAVA_UI) |
2117 // A list of partner bookmark rename/remove mappings. | 2116 // A list of partner bookmark rename/remove mappings. |
2118 // Each list item is a dictionary containing a "url", a "provider_title" and | 2117 // Each list item is a dictionary containing a "url", a "provider_title" and |
2119 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2118 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
2120 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2119 // given by the PartnerBookmarksProvider and either the user-visible renamed |
2121 // title or an empty string if the bookmark node was removed. | 2120 // title or an empty string if the bookmark node was removed. |
2122 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2121 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
2123 #endif | 2122 #endif |
2124 | 2123 |
2125 // Whether DNS Quick Check is disabled in proxy resolution. | 2124 // Whether DNS Quick Check is disabled in proxy resolution. |
2126 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; | 2125 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 // Policy that indicates how to handle animated images. | 2161 // Policy that indicates how to handle animated images. |
2163 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; | 2162 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; |
2164 #endif | 2163 #endif |
2165 | 2164 |
2166 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; | 2165 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload"; |
2167 | 2166 |
2168 const char kAllowDinosaurEasterEgg[] = | 2167 const char kAllowDinosaurEasterEgg[] = |
2169 "allow_dinosaur_easter_egg"; | 2168 "allow_dinosaur_easter_egg"; |
2170 | 2169 |
2171 } // namespace prefs | 2170 } // namespace prefs |
OLD | NEW |