Chromium Code Reviews| 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 5f63ae5cec0204c7c18ba5314c4f1b5a1fb7ffe8..f8aa64b37f06f3d12606badcf7ca27244866dbf0 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 |
| @@ -34,6 +34,7 @@ public class HostBrowserLauncher { |
| private static final String META_DATA_THEME_COLOR = "themeColor"; |
| private static final String META_DATA_BACKGROUND_COLOR = "backgroundColor"; |
| private static final String META_DATA_ICON_URL = "iconUrl"; |
| + private static final String META_DATA_WEB_MANFIEST_URL = "webManifestUrl"; |
|
pkotwicz
2016/07/12 20:12:45
Nit: META_DATA_WEB_MANFIEST_URL -> META_DATA_WEB_M
Xi Han
2016/07/12 20:58:32
Done.
|
| /** |
| * Key for passing app icon id in Bundle to {@link #launch()}. |
| @@ -83,6 +84,7 @@ public class HostBrowserLauncher { |
| long themeColor = getLongFromBundle(metaBundle, META_DATA_THEME_COLOR); |
| long backgroundColor = getLongFromBundle(metaBundle, META_DATA_BACKGROUND_COLOR); |
| boolean isIconGenerated = TextUtils.isEmpty(metaBundle.getString(META_DATA_ICON_URL)); |
| + String webManifestUrl = metaBundle.getString(META_DATA_WEB_MANFIEST_URL); |
| Log.v(TAG, "Url of the WebAPK: " + url); |
| Log.v(TAG, "WebappId of the WebAPK: " + webappId); |
| Log.v(TAG, "Name of the WebAPK:" + name); |
| @@ -106,7 +108,8 @@ public class HostBrowserLauncher { |
| .putExtra(WebApkConstants.EXTRA_IS_ICON_GENERATED, isIconGenerated) |
| .putExtra(WebApkConstants.EXTRA_WEBAPK_PACKAGE_NAME, packageName) |
| .putExtra(WebApkConstants.EXTRA_WEBAPK_DISPLAY_MODE, displayMode) |
| - .putExtra(WebApkConstants.EXTRA_WEBAPK_ORIENTATION, orientation); |
| + .putExtra(WebApkConstants.EXTRA_WEBAPK_ORIENTATION, orientation) |
| + .putExtra(WebApkConstants.EXTRA_WEB_MANIFEST_URL, webManifestUrl); |
| try { |
| context.startActivity(newIntent); |