Index: base/android/java/src/org/chromium/base/ApkAssets.java |
diff --git a/base/android/java/src/org/chromium/base/ApkAssets.java b/base/android/java/src/org/chromium/base/ApkAssets.java |
index e00be9924b4e0da679581549f83feab7663063c5..a30054ff681b62d100596ed3383c0ab31466c538 100644 |
--- a/base/android/java/src/org/chromium/base/ApkAssets.java |
+++ b/base/android/java/src/org/chromium/base/ApkAssets.java |
@@ -33,6 +33,19 @@ |
afd.getStartOffset(), |
afd.getLength() }; |
} catch (IOException e) { |
+ // TODO(michaelbai): Remove dump assets once crbug.com/547235 fixed. |
+ try { |
+ String[] assets = context.getAssets().list(""); |
+ StringBuffer sb = new StringBuffer("Dump assets(" + assets.length + "):\n"); |
+ for (String asset : assets) { |
+ sb.append(asset); |
+ sb.append("\n"); |
+ } |
+ Log.e(LOGTAG, sb.toString()); |
+ } catch (IOException ioe) { |
+ Log.e(LOGTAG, "Error while list assets: " + ioe); |
+ } |
+ |
Log.e(LOGTAG, "Error while loading asset " + fileName + ": " + e); |
return new long[] {-1, -1, -1}; |
} finally { |