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

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

Issue 2147323002: Introduce scope in WebappInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkConstants.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8961172e7ad6d559ebdef22e91dcee5bcc0162ff..ec62711714af20ccc812ef4aa1a0eeaa0b6e5e5d 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
@@ -29,6 +29,7 @@ public class HostBrowserLauncher {
private static final String META_DATA_RUNTIME_HOST = "runtimeHost";
private static final String META_DATA_START_URL = "startUrl";
private static final String META_DATA_NAME = "name";
+ private static final String META_DATA_SCOPE = "scope";
private static final String META_DATA_DISPLAY_MODE = "displayMode";
private static final String META_DATA_ORIENTATION = "orientation";
private static final String META_DATA_THEME_COLOR = "themeColor";
@@ -69,6 +70,7 @@ public class HostBrowserLauncher {
if (overrideUrl != null && overrideUrl.startsWith("https:")) {
url = overrideUrl;
}
+ String scope = metaBundle.getString(META_DATA_SCOPE);
int source = intent.getIntExtra(WebApkConstants.EXTRA_SOURCE, 0);
String webappId = WebApkConstants.WEBAPK_ID_PREFIX + packageName;
@@ -101,6 +103,7 @@ public class HostBrowserLauncher {
.putExtra(WebApkConstants.EXTRA_SHORT_NAME, shortName)
.putExtra(WebApkConstants.EXTRA_NAME, name)
.putExtra(WebApkConstants.EXTRA_URL, url)
+ .putExtra(WebApkConstants.EXTRA_SCOPE, scope)
.putExtra(WebApkConstants.EXTRA_ICON, encodedIcon)
.putExtra(WebApkConstants.EXTRA_SOURCE, source)
.putExtra(WebApkConstants.EXTRA_THEME_COLOR, themeColor)
« no previous file with comments | « chrome/android/webapk/libs/common/src/org/chromium/webapk/lib/common/WebApkConstants.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698