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; |
} |