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

Unified Diff: content/renderer/input/input_event_filter.cc

Issue 733293002: [Android] Add a flag to disable the pull-to-refresh effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 | « content/renderer/input/input_event_filter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_event_filter.cc
diff --git a/content/renderer/input/input_event_filter.cc b/content/renderer/input/input_event_filter.cc
index d93836a981ed7ae4a659fa14a5dd9cd478b3c062..d2e4f7fdf1fbe1e9f872f1f4abd6d20b05d54f03 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -6,7 +6,6 @@
#include "base/auto_reset.h"
#include "base/bind.h"
-#include "base/command_line.h"
#include "base/debug/trace_event.h"
#include "base/location.h"
#include "base/message_loop/message_loop_proxy.h"
@@ -48,12 +47,8 @@ InputEventFilter::InputEventFilter(
main_listener_(main_listener),
sender_(NULL),
target_loop_(target_loop),
- overscroll_notifications_enabled_(false),
current_overscroll_params_(NULL) {
DCHECK(target_loop_.get());
- overscroll_notifications_enabled_ =
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableOverscrollNotifications);
}
void InputEventFilter::SetBoundHandler(const Handler& handler) {
@@ -74,9 +69,6 @@ void InputEventFilter::DidRemoveInputHandler(int routing_id) {
void InputEventFilter::DidOverscroll(int routing_id,
const DidOverscrollParams& params) {
- if (!overscroll_notifications_enabled_)
- return;
-
if (current_overscroll_params_) {
current_overscroll_params_->reset(new DidOverscrollParams(params));
return;
« no previous file with comments | « content/renderer/input/input_event_filter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698