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 |