Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: chrome/browser/about_flags.cc

Issue 2125683002: Add option to force document level passive event listeners as a runtime feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 524faaf4a9918337c92c851ca921dbccf1bf955f..f41ed259eb7475037e9afe7c77ca33a2ee3b7036 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -184,8 +184,6 @@ const FeatureEntry::Choice kNaClDebugMaskChoices[] = {
const FeatureEntry::Choice kPassiveListenersChoices[] = {
{IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
- {IDS_FLAGS_PASSIVE_EVENT_LISTENER_DOCUMENT_TRUE,
- switches::kPassiveListenersDefault, "documentonlytrue"},
{IDS_FLAGS_PASSIVE_EVENT_LISTENER_TRUE, switches::kPassiveListenersDefault,
"true"},
{IDS_FLAGS_PASSIVE_EVENT_LISTENER_FORCE_ALL_TRUE,
@@ -1930,6 +1928,10 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME,
IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll,
MULTI_VALUE_TYPE(kPassiveListenersChoices)},
+ {"document-passive-event-listeners", // FLAGS:RECORD_UMA
+ IDS_FLAGS_PASSIVE_DOCUMENT_EVENT_LISTENERS_NAME,
+ IDS_FLAGS_PASSIVE_DOCUMENT_EVENT_LISTENERS_DESCRIPTION, kOsAll,
+ FEATURE_VALUE_TYPE(features::kPassiveDocumentEventListeners)},
{"enable-loading-ipc-optimization-for-small-resources",
IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698