Index: android_webview/java/src/org/chromium/android_webview/command_line/CommandLineUtil.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/command_line/CommandLineUtil.java b/android_webview/java/src/org/chromium/android_webview/command_line/CommandLineUtil.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..eaed38b70f4896fb39391b3c5bf3dc088ed6616f |
--- /dev/null |
+++ b/android_webview/java/src/org/chromium/android_webview/command_line/CommandLineUtil.java |
@@ -0,0 +1,24 @@ |
+// Copyright 2017 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. |
+ |
+package org.chromium.android_webview.command_line; |
+ |
+import android.os.Build; |
+ |
+/** |
+ * Utility class for WebView's CommandLine. |
+ */ |
+public class CommandLineUtil { |
+ private CommandLineUtil() {} |
+ |
+ public static final String WEBVIEW_COMMAND_LINE_FILE = "/data/local/tmp/webview-command-line"; |
+ |
+ // same switch as kEnableCrashReporterForTesting in //base/base_switches.h |
+ public static final String CRASH_UPLOADS_ENABLED_FOR_TESTING_SWITCH = |
+ "enable-crash-reporter-for-testing"; |
+ |
+ public static boolean isBuildDebuggable() { |
+ return !Build.TYPE.equals("user"); |
+ } |
+} |