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

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

Issue 2895293002: Android: tidy up outdated version checks. (Closed)
Patch Set: Created 3 years, 7 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: base/android/java/src/org/chromium/base/CommandLineInitUtil.java
diff --git a/base/android/java/src/org/chromium/base/CommandLineInitUtil.java b/base/android/java/src/org/chromium/base/CommandLineInitUtil.java
index bec9b40273787b720ea65b16eab8e5f152c2dfb6..096ff5d4aca4a258dbf6211059109eebdbf3552c 100644
--- a/base/android/java/src/org/chromium/base/CommandLineInitUtil.java
+++ b/base/android/java/src/org/chromium/base/CommandLineInitUtil.java
@@ -75,8 +75,9 @@ public final class CommandLineInitUtil {
return alternativeCommandLineFile;
}
- String debugApp = Build.VERSION.SDK_INT < 17
- ? getDebugAppPreJBMR1(context) : getDebugAppJBMR1(context);
+ String debugApp = Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1
+ ? getDebugAppPreJBMR1(context)
+ : getDebugAppJBMR1(context);
if (debugApp != null
&& debugApp.equals(context.getApplicationContext().getPackageName())) {

Powered by Google App Engine
This is Rietveld 408576698