Index: android_webview/common/aw_switches.cc |
diff --git a/android_webview/common/aw_switches.cc b/android_webview/common/aw_switches.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7b3f68681228ee7920be1376c93a8d8dc7b8477f |
--- /dev/null |
+++ b/android_webview/common/aw_switches.cc |
@@ -0,0 +1,19 @@ |
+// Copyright 2014 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 "android_webview/common/aw_switches.h" |
+ |
+#include "base/command_line.h" |
+ |
+namespace switches { |
+ |
+const char kEnableUbercomp[] = "enable-ubercomp"; |
+ |
+bool UbercompEnabled() { |
+ static bool ubercomp_enabled = |
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableUbercomp); |
+ return ubercomp_enabled; |
+} |
+ |
+} // namespace switches |