[Android] Add a flag to disable the pull-to-refresh effect
Some people may not like pull-to-refresh. Some people may not like our
implementation of pull-to-reresh. Some people may not like refreshing
at all. Let's accomodate such users with a disabling override,
particularly now as we're experimenting with the initial version of the
effect.
The flag also allows for experiments gauging accidental activation and
other potentially negative side-effects.
Also remove the kEnableOverscrollNotifications flag; overscroll
notifications are now bundled with event acks, creating
minimal extra overhead for non-consuming platforms.
BUG=428429
Review URL: https://codereview.chromium.org/733293002
Cr-Commit-Position: refs/heads/master@{#305154}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 1ad51bf..b635ba9 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1644,6 +1644,13 @@
// Java-only switch: CommandLine.DISABLE_CLICK_DELAY
SINGLE_VALUE_TYPE("disable-click-delay")
},
+ {
+ "disable-pull-to-refresh-effect",
+ IDS_FLAGS_DISABLE_PULL_TO_REFRESH_EFFECT_NAME,
+ IDS_FLAGS_DISABLE_PULL_TO_REFRESH_EFFECT_DESCRIPTION,
+ kOsAndroid,
+ SINGLE_VALUE_TYPE(switches::kDisablePullToRefreshEffect)
+ },
#endif
#if defined(OS_MACOSX)
{