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/macros.h" | 7 #include "base/macros.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
10 #include "chrome/common/pref_font_webkit_names.h" | 10 #include "chrome/common/pref_font_webkit_names.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 392 |
393 // Enum that specifies whether Incognito mode is: | 393 // Enum that specifies whether Incognito mode is: |
394 // 0 - Enabled. Default behaviour. Default mode is available on demand. | 394 // 0 - Enabled. Default behaviour. Default mode is available on demand. |
395 // 1 - Disabled. Used cannot browse pages in Incognito mode. | 395 // 1 - Disabled. Used cannot browse pages in Incognito mode. |
396 // 2 - Forced. All pages/sessions are forced into Incognito. | 396 // 2 - Forced. All pages/sessions are forced into Incognito. |
397 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; | 397 const char kIncognitoModeAvailability[] = "incognito.mode_availability"; |
398 | 398 |
399 // Boolean that is true when Suggest support is enabled. | 399 // Boolean that is true when Suggest support is enabled. |
400 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; | 400 const char kSearchSuggestEnabled[] = "search.suggest_enabled"; |
401 | 401 |
402 #if BUILDFLAG(ANDROID_JAVA_UI) | 402 #if defined(OS_ANDROID) |
403 // String indicating the Contextual Search enabled state. | 403 // String indicating the Contextual Search enabled state. |
404 // "false" - opt-out (disabled) | 404 // "false" - opt-out (disabled) |
405 // "" (empty string) - undecided | 405 // "" (empty string) - undecided |
406 // "true" - opt-in (enabled) | 406 // "true" - opt-in (enabled) |
407 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; | 407 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; |
408 #endif | 408 #endif // defined(OS_ANDROID) |
409 | 409 |
410 #if defined(OS_MACOSX) | 410 #if defined(OS_MACOSX) |
411 // Boolean that indicates whether the browser should put up a confirmation | 411 // Boolean that indicates whether the browser should put up a confirmation |
412 // window when the user is attempting to quit. Mac only. | 412 // window when the user is attempting to quit. Mac only. |
413 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; | 413 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; |
414 | 414 |
415 // Boolean that indicates whether the browser should show the toolbar when it's | 415 // Boolean that indicates whether the browser should show the toolbar when it's |
416 // in fullscreen. Mac only. | 416 // in fullscreen. Mac only. |
417 const char kShowFullscreenToolbar[] = "browser.show_fullscreen_toolbar"; | 417 const char kShowFullscreenToolbar[] = "browser.show_fullscreen_toolbar"; |
418 | 418 |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 // used to display information about profiles without actually having to load | 1354 // used to display information about profiles without actually having to load |
1355 // them. | 1355 // them. |
1356 const char kProfileInfoCache[] = "profile.info_cache"; | 1356 const char kProfileInfoCache[] = "profile.info_cache"; |
1357 | 1357 |
1358 // A list of profile paths that should be deleted on shutdown. The deletion does | 1358 // A list of profile paths that should be deleted on shutdown. The deletion does |
1359 // not happen if the browser crashes, so we remove the profile on next start. | 1359 // not happen if the browser crashes, so we remove the profile on next start. |
1360 const char kProfilesDeleted[] = "profiles.profiles_deleted"; | 1360 const char kProfilesDeleted[] = "profiles.profiles_deleted"; |
1361 | 1361 |
1362 // Deprecated preference for metric / crash reporting on Android. Use | 1362 // Deprecated preference for metric / crash reporting on Android. Use |
1363 // kMetricsReportingEnabled instead. | 1363 // kMetricsReportingEnabled instead. |
1364 #if BUILDFLAG(ANDROID_JAVA_UI) | 1364 #if defined(OS_ANDROID) |
1365 const char kCrashReportingEnabled[] = | 1365 const char kCrashReportingEnabled[] = |
1366 "user_experience_metrics_crash.reporting_enabled"; | 1366 "user_experience_metrics_crash.reporting_enabled"; |
1367 #endif | 1367 #endif // defined(OS_ANDROID) |
1368 | 1368 |
1369 // This is the location of a list of dictionaries of plugin stability stats. | 1369 // This is the location of a list of dictionaries of plugin stability stats. |
1370 const char kStabilityPluginStats[] = | 1370 const char kStabilityPluginStats[] = |
1371 "user_experience_metrics.stability.plugin_stats2"; | 1371 "user_experience_metrics.stability.plugin_stats2"; |
1372 | 1372 |
1373 // On Chrome OS, total number of non-Chrome user process crashes | 1373 // On Chrome OS, total number of non-Chrome user process crashes |
1374 // since the last report. | 1374 // since the last report. |
1375 const char kStabilityOtherUserCrashCount[] = | 1375 const char kStabilityOtherUserCrashCount[] = |
1376 "user_experience_metrics.stability.other_user_crash_count"; | 1376 "user_experience_metrics.stability.other_user_crash_count"; |
1377 | 1377 |
1378 // On Chrome OS, total number of kernel crashes since the last report. | 1378 // On Chrome OS, total number of kernel crashes since the last report. |
1379 const char kStabilityKernelCrashCount[] = | 1379 const char kStabilityKernelCrashCount[] = |
1380 "user_experience_metrics.stability.kernel_crash_count"; | 1380 "user_experience_metrics.stability.kernel_crash_count"; |
1381 | 1381 |
1382 // On Chrome OS, total number of unclean system shutdowns since the | 1382 // On Chrome OS, total number of unclean system shutdowns since the |
1383 // last report. | 1383 // last report. |
1384 const char kStabilitySystemUncleanShutdownCount[] = | 1384 const char kStabilitySystemUncleanShutdownCount[] = |
1385 "user_experience_metrics.stability.system_unclean_shutdowns"; | 1385 "user_experience_metrics.stability.system_unclean_shutdowns"; |
1386 | 1386 |
1387 #if BUILDFLAG(ANDROID_JAVA_UI) | 1387 #if defined(OS_ANDROID) |
1388 // Activity type that is currently in the foreground for the UMA session. | 1388 // Activity type that is currently in the foreground for the UMA session. |
1389 // Uses the ActivityTypeIds::Type enum. | 1389 // Uses the ActivityTypeIds::Type enum. |
1390 const char kStabilityForegroundActivityType[] = | 1390 const char kStabilityForegroundActivityType[] = |
1391 "user_experience_metrics.stability.current_foreground_activity_type"; | 1391 "user_experience_metrics.stability.current_foreground_activity_type"; |
1392 | 1392 |
1393 // Tracks which Activities were launched during the last session. | 1393 // Tracks which Activities were launched during the last session. |
1394 // See |metrics_service_android.cc| for its usage. | 1394 // See |metrics_service_android.cc| for its usage. |
1395 const char kStabilityLaunchedActivityFlags[] = | 1395 const char kStabilityLaunchedActivityFlags[] = |
1396 "user_experience_metrics.stability.launched_activity_flags"; | 1396 "user_experience_metrics.stability.launched_activity_flags"; |
1397 | 1397 |
1398 // List pref: Counts how many times each Activity was launched. | 1398 // List pref: Counts how many times each Activity was launched. |
1399 // Indexed into by ActivityTypeIds::Type. | 1399 // Indexed into by ActivityTypeIds::Type. |
1400 const char kStabilityLaunchedActivityCounts[] = | 1400 const char kStabilityLaunchedActivityCounts[] = |
1401 "user_experience_metrics.stability.launched_activity_counts"; | 1401 "user_experience_metrics.stability.launched_activity_counts"; |
1402 | 1402 |
1403 // List pref: Counts how many times each Activity type was in the foreground | 1403 // List pref: Counts how many times each Activity type was in the foreground |
1404 // when a UMA session failed to be shut down properly. | 1404 // when a UMA session failed to be shut down properly. |
1405 // Indexed into by ActivityTypeIds::Type. | 1405 // Indexed into by ActivityTypeIds::Type. |
1406 const char kStabilityCrashedActivityCounts[] = | 1406 const char kStabilityCrashedActivityCounts[] = |
1407 "user_experience_metrics.stability.crashed_activity_counts"; | 1407 "user_experience_metrics.stability.crashed_activity_counts"; |
1408 #endif | 1408 #endif // defined(OS_ANDROID) |
1409 | 1409 |
1410 // The keys below are used for the dictionaries in the | 1410 // The keys below are used for the dictionaries in the |
1411 // kStabilityPluginStats list. | 1411 // kStabilityPluginStats list. |
1412 const char kStabilityPluginName[] = "name"; | 1412 const char kStabilityPluginName[] = "name"; |
1413 const char kStabilityPluginLaunches[] = "launches"; | 1413 const char kStabilityPluginLaunches[] = "launches"; |
1414 const char kStabilityPluginInstances[] = "instances"; | 1414 const char kStabilityPluginInstances[] = "instances"; |
1415 const char kStabilityPluginCrashes[] = "crashes"; | 1415 const char kStabilityPluginCrashes[] = "crashes"; |
1416 const char kStabilityPluginLoadingErrors[] = "loading_errors"; | 1416 const char kStabilityPluginLoadingErrors[] = "loading_errors"; |
1417 | 1417 |
1418 // String containing the version of Chrome for which Chrome will not prompt the | 1418 // String containing the version of Chrome for which Chrome will not prompt the |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 | 1522 |
1523 // Whether the plugin finder that lets you install missing plugins is enabled. | 1523 // Whether the plugin finder that lets you install missing plugins is enabled. |
1524 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; | 1524 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; |
1525 | 1525 |
1526 // Customized app page names that appear on the New Tab Page. | 1526 // Customized app page names that appear on the New Tab Page. |
1527 const char kNtpAppPageNames[] = "ntp.app_page_names"; | 1527 const char kNtpAppPageNames[] = "ntp.app_page_names"; |
1528 | 1528 |
1529 // Keeps track of which sessions are collapsed in the Other Devices menu. | 1529 // Keeps track of which sessions are collapsed in the Other Devices menu. |
1530 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; | 1530 const char kNtpCollapsedForeignSessions[] = "ntp.collapsed_foreign_sessions"; |
1531 | 1531 |
1532 #if BUILDFLAG(ANDROID_JAVA_UI) | 1532 #if defined(OS_ANDROID) |
1533 // Keeps track of recently closed tabs collapsed state in the Other Devices | 1533 // Keeps track of recently closed tabs collapsed state in the Other Devices |
1534 // menu. | 1534 // menu. |
1535 const char kNtpCollapsedRecentlyClosedTabs[] = | 1535 const char kNtpCollapsedRecentlyClosedTabs[] = |
1536 "ntp.collapsed_recently_closed_tabs"; | 1536 "ntp.collapsed_recently_closed_tabs"; |
1537 | 1537 |
1538 // Keeps track of snapshot documents collapsed state in the Other Devices menu. | 1538 // Keeps track of snapshot documents collapsed state in the Other Devices menu. |
1539 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; | 1539 const char kNtpCollapsedSnapshotDocument[] = "ntp.collapsed_snapshot_document"; |
1540 | 1540 |
1541 // Keeps track of sync promo collapsed state in the Other Devices menu. | 1541 // Keeps track of sync promo collapsed state in the Other Devices menu. |
1542 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; | 1542 const char kNtpCollapsedSyncPromo[] = "ntp.collapsed_sync_promo"; |
1543 #endif | 1543 #endif // defined(OS_ANDROID) |
1544 | 1544 |
1545 // Which page should be visible on the new tab page v4 | 1545 // Which page should be visible on the new tab page v4 |
1546 const char kNtpShownPage[] = "ntp.shown_page"; | 1546 const char kNtpShownPage[] = "ntp.shown_page"; |
1547 | 1547 |
1548 // A private RSA key for ADB handshake. | 1548 // A private RSA key for ADB handshake. |
1549 const char kDevToolsAdbKey[] = "devtools.adb_key"; | 1549 const char kDevToolsAdbKey[] = "devtools.adb_key"; |
1550 | 1550 |
1551 const char kDevToolsDisabled[] = "devtools.disabled"; | 1551 const char kDevToolsDisabled[] = "devtools.disabled"; |
1552 | 1552 |
1553 // Determines whether devtools should be discovering usb devices for | 1553 // Determines whether devtools should be discovering usb devices for |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2196 // A boolean pref that enables the (private) pepper GetDeviceID() call and | 2196 // A boolean pref that enables the (private) pepper GetDeviceID() call and |
2197 // enables the use of remote attestation for content protection. | 2197 // enables the use of remote attestation for content protection. |
2198 const char kEnableDRM[] = "settings.privacy.drm_enabled"; | 2198 const char kEnableDRM[] = "settings.privacy.drm_enabled"; |
2199 | 2199 |
2200 // An integer per-profile pref that signals if the watchdog extension is | 2200 // An integer per-profile pref that signals if the watchdog extension is |
2201 // installed and active. We need to know if the watchdog extension active for | 2201 // installed and active. We need to know if the watchdog extension active for |
2202 // ActivityLog initialization before the extension system is initialized. | 2202 // ActivityLog initialization before the extension system is initialized. |
2203 const char kWatchdogExtensionActive[] = | 2203 const char kWatchdogExtensionActive[] = |
2204 "profile.extensions.activity_log.num_consumers_active"; | 2204 "profile.extensions.activity_log.num_consumers_active"; |
2205 | 2205 |
2206 #if BUILDFLAG(ANDROID_JAVA_UI) | 2206 #if defined(OS_ANDROID) |
2207 // A list of partner bookmark rename/remove mappings. | 2207 // A list of partner bookmark rename/remove mappings. |
2208 // Each list item is a dictionary containing a "url", a "provider_title" and | 2208 // Each list item is a dictionary containing a "url", a "provider_title" and |
2209 // "mapped_title" entries, detailing the bookmark target URL (if any), the title | 2209 // "mapped_title" entries, detailing the bookmark target URL (if any), the title |
2210 // given by the PartnerBookmarksProvider and either the user-visible renamed | 2210 // given by the PartnerBookmarksProvider and either the user-visible renamed |
2211 // title or an empty string if the bookmark node was removed. | 2211 // title or an empty string if the bookmark node was removed. |
2212 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; | 2212 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; |
2213 #endif | 2213 #endif // defined(OS_ANDROID) |
2214 | 2214 |
2215 // Whether DNS Quick Check is disabled in proxy resolution. | 2215 // Whether DNS Quick Check is disabled in proxy resolution. |
2216 // | 2216 // |
2217 // This is a performance optimization for WPAD (Web Proxy | 2217 // This is a performance optimization for WPAD (Web Proxy |
2218 // Auto-Discovery) which places a 1 second timeout on resolving the | 2218 // Auto-Discovery) which places a 1 second timeout on resolving the |
2219 // DNS for PAC script URLs. | 2219 // DNS for PAC script URLs. |
2220 // | 2220 // |
2221 // It is on by default, but can be disabled via the Policy option | 2221 // It is on by default, but can be disabled via the Policy option |
2222 // "WPADQuickCheckEnbled". There is no other UI for changing this | 2222 // "WPADQuickCheckEnbled". There is no other UI for changing this |
2223 // preference. | 2223 // preference. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2348 const char kSearchGeolocationPreDisclosureMetricsRecorded[] = | 2348 const char kSearchGeolocationPreDisclosureMetricsRecorded[] = |
2349 "search_geolocation_pre_disclosure_metrics_recorded"; | 2349 "search_geolocation_pre_disclosure_metrics_recorded"; |
2350 | 2350 |
2351 // Whether the metrics for the state of geolocation post-disclosure being shown | 2351 // Whether the metrics for the state of geolocation post-disclosure being shown |
2352 // have been recorded. | 2352 // have been recorded. |
2353 const char kSearchGeolocationPostDisclosureMetricsRecorded[] = | 2353 const char kSearchGeolocationPostDisclosureMetricsRecorded[] = |
2354 "search_geolocation_post_disclosure_metrics_recorded"; | 2354 "search_geolocation_post_disclosure_metrics_recorded"; |
2355 #endif | 2355 #endif |
2356 | 2356 |
2357 } // namespace prefs | 2357 } // namespace prefs |
OLD | NEW |