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

Unified Diff: chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java

Issue 1607603004: Never clear incremental-install-files when clearing app data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
index 2bbcb565ce7121defb000c6c3ff44c71c933d530..547b4e0cce54d9c11892b8b6017d7ec3d24dd908 100644
--- a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationData.java
@@ -84,9 +84,10 @@ public final class ApplicationData {
File[] files = new File(appDir).listFiles();
if (files == null) return true;
for (File file : files) {
- if (!(file.getAbsolutePath().endsWith("/lib")
- || file.getAbsolutePath().endsWith("/etp_native") // Work Chrome
- || file.getAbsolutePath().endsWith("/sdk_dex")) // Work Chrome
+ if (!(file.getName().equals("lib")
+ || file.getName().equals("etp_native") // Work Chrome
+ || file.getName().equals("sdk_dex") // Work Chrome
+ || file.getName().equals("incremental-install-files"))
&& !removeFile(file)) {
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698