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

Unified Diff: chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java

Issue 2124513002: Introduce ManifestUpgradeDetector for WebAPK to detect web manifest changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove data fetcher and doesn't fetch icon for now. Created 4 years, 5 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: chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java
diff --git a/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java b/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java
index f8aa64b37f06f3d12606badcf7ca27244866dbf0..37eb1ed77a7d277d4f8ae6382abad62e7fa51d05 100644
--- a/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java
+++ b/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java
@@ -138,7 +138,8 @@ public class HostBrowserLauncher {
private static long getLongFromBundle(Bundle bundle, String key) {
String value = bundle.getString(key);
if (value == null || !value.endsWith("L")) {
- return 0;
+ // This value is equal to kInvalidOrMissingColor in the C++ content::Manifest struct.
+ return ((long) Integer.MAX_VALUE) + 1;
}
try {
return Long.parseLong(value.substring(0, value.length() - 1));

Powered by Google App Engine
This is Rietveld 408576698