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

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

Issue 1156873002: Load v8 snapshots directly from APK (and store them uncompressed) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8initializer
Patch Set: rebase 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: base/android/java/src/org/chromium/base/ResourceExtractor.java
diff --git a/base/android/java/src/org/chromium/base/ResourceExtractor.java b/base/android/java/src/org/chromium/base/ResourceExtractor.java
index d44f2fc7c22bdc1697571606c3465a0bc902f3f4..dd654ff6efb67fe4b05333701e21f418fcc9f6c7 100644
--- a/base/android/java/src/org/chromium/base/ResourceExtractor.java
+++ b/base/android/java/src/org/chromium/base/ResourceExtractor.java
@@ -309,6 +309,7 @@ public class ResourceExtractor {
* required, pass a single empty string.
*/
public static void setMandatoryPaksToExtract(String... mandatoryPaks) {
+ // TODO(agrieve): Remove the need to call this once all files are loaded from the apk.
assert (sInstance == null || sInstance.mExtractTask == null)
: "Must be called before startExtractingResources is called";
sMandatoryPaks = mandatoryPaks;
@@ -346,8 +347,6 @@ public class ResourceExtractor {
} catch (IOException e) {
Log.w(LOGTAG, "Exception while accessing assets: " + e.getMessage(), e);
}
- pakAndSnapshotFileAssets.add("natives_blob.bin");
- pakAndSnapshotFileAssets.add("snapshot_blob.bin");
setMandatoryPaksToExtract(pakAndSnapshotFileAssets.toArray(
new String[pakAndSnapshotFileAssets.size()]));
}

Powered by Google App Engine
This is Rietveld 408576698