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

Unified Diff: chrome/test/android/javatests_staging/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java

Issue 1190103002: Make lint fail builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set android_webview to use minsdk 19 Created 5 years, 6 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: chrome/test/android/javatests_staging/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
diff --git a/chrome/test/android/javatests_staging/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java b/chrome/test/android/javatests_staging/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
index 1c97d3e901c2c23ccaeadc3682d185cfa8691c16..a6490e25e55a457cbce8a8cd536786e8a625be95 100644
--- a/chrome/test/android/javatests_staging/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
+++ b/chrome/test/android/javatests_staging/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java
@@ -4,6 +4,7 @@
package org.chromium.chrome.test;
+import android.annotation.TargetApi;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityManager.AppTask;
@@ -14,6 +15,7 @@ import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.AsyncTask;
+import android.os.Build;
import android.os.PowerManager;
import android.provider.Browser;
import android.text.TextUtils;
@@ -216,6 +218,7 @@ public abstract class ChromeActivityTestCaseBase<T extends ChromeActivity>
* Closes all Chrome activity app tasks. This is for cleaning up Chrome tasks in the recent,
* those are not necessarily associated with a live activity.
*/
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void closeAllChromeActivityAppTasks() throws ClassNotFoundException {
ActivityManager am = (ActivityManager) getInstrumentation().getTargetContext()
.getSystemService(Context.ACTIVITY_SERVICE);

Powered by Google App Engine
This is Rietveld 408576698