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

Unified Diff: content/public/common/content_switches_util.cc

Issue 52263006: Put vertical overscroll behind kScrollEndEffect flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
Index: content/public/common/content_switches_util.cc
diff --git a/content/public/common/content_switches_util.cc b/content/public/common/content_switches_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1ff83c1ed18c33f034f523902bdd9f77d98bf763
--- /dev/null
+++ b/content/public/common/content_switches_util.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/ui_base_switches_util.h"
+
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
+
+namespace switches {
+
+bool IsScrollEndEffectEnabled() {
+ return CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kScrollEndEffect) == "1";
+}
+
+} // namespace switches

Powered by Google App Engine
This is Rietveld 408576698