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

Unified Diff: base/android/java/src/org/chromium/base/BuildInfo.java

Issue 2675013002: android: Crash child immediately on uncaught exception (Closed)
Patch Set: comments Created 3 years, 10 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
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/CommandLineInitUtil.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/BuildInfo.java
diff --git a/base/android/java/src/org/chromium/base/BuildInfo.java b/base/android/java/src/org/chromium/base/BuildInfo.java
index 79bd9c2412cb318fd9498dd8bed83e5b6cede4a8..49d0d136184959ba39b52ca70ebdc589105c9997 100644
--- a/base/android/java/src/org/chromium/base/BuildInfo.java
+++ b/base/android/java/src/org/chromium/base/BuildInfo.java
@@ -136,6 +136,13 @@ public class BuildInfo {
return Build.TYPE;
}
+ /**
+ * Check if this is a debuggable build of Android. Use this to enable developer-only features.
+ */
+ public static boolean isDebugAndroid() {
+ return "eng".equals(Build.TYPE) || "userdebug".equals(Build.TYPE);
+ }
+
@CalledByNative
public static int getSdkInt() {
return Build.VERSION.SDK_INT;
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/CommandLineInitUtil.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698