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

Unified Diff: apk_minter/axml-enddec/src/com/axml/enddec/BinaryXMLParser.java

Issue 1888773004: 🙅 Bind a WebAPK to its "host" browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: apk_minter/axml-enddec/src/com/axml/enddec/BinaryXMLParser.java
diff --git a/apk_minter/axml-enddec/src/com/axml/enddec/BinaryXMLParser.java b/apk_minter/axml-enddec/src/com/axml/enddec/BinaryXMLParser.java
index 9c46e8b8eaa7c8d34d109f571e7500adb4fccfa4..8ad9adcc2e78d5f30707ad9e3d86ddfb3fdf664b 100644
--- a/apk_minter/axml-enddec/src/com/axml/enddec/BinaryXMLParser.java
+++ b/apk_minter/axml-enddec/src/com/axml/enddec/BinaryXMLParser.java
@@ -10,8 +10,8 @@ import java.util.LinkedList;
import java.util.Vector;
public class BinaryXMLParser implements BinaryXML {
- private XMLChunk xml;
- private byte[] buf;
+ private final XMLChunk xml;
+ private final byte[] buf;
public BinaryXMLParser(String filePath) throws IOException {
FileInputStream is = new FileInputStream(filePath);
@@ -380,4 +380,9 @@ public class BinaryXMLParser implements BinaryXML {
public int getMac() {
return this.getMetaDataValue("meta-data", "mac");
}
+
+ @Override
+ public int getRuntimeHost() {
+ return this.getMetaDataValue("meta-data", "runtimeHost");
+ }
}
« no previous file with comments | « apk_minter/axml-enddec/src/com/axml/enddec/BinaryXML.java ('k') | apk_minter/src/org/chromium/apkminter/APKMinting.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698