| Index: chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java
|
| diff --git a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java
|
| index b16b83217493d4ee03aa8b9a7daca1a1d02b8b09..ae4aff92ef97ac3bf1acee56ad2885febe52680b 100644
|
| --- a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java
|
| +++ b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/MainActivity.java
|
| @@ -29,10 +29,10 @@ public class MainActivity extends Activity {
|
| private static final String EXTRA_NAME = "org.chromium.chrome.browser.webapp_name";
|
| private static final String EXTRA_URL = "org.chromium.chrome.browser.webapp_url";
|
| private static final String EXTRA_MAC = "org.chromium.chrome.browser.webapp_mac";
|
| - private static final String EXTRA_SCOPE = "org.chromium.chrome.browser.webapp_scope";
|
| + private static final String EXTRA_WEBAPK_PACKAGE_NAME =
|
| + "org.chromium.chrome.browser.webapk_package_name";
|
| private static final String META_DATA_HOST_URL = "hostUrl";
|
| private static final String META_DATA_MAC = "mac";
|
| - private static final String META_DATA_SCOPE = "scope";
|
| private static final String META_DATA_RUNTIME_HOST = "runtimeHost";
|
|
|
| private static final String TAG = "cr_MainActivity";
|
| @@ -46,7 +46,6 @@ public class MainActivity extends Activity {
|
| String mac = null;
|
| String name = null;
|
| String url = null;
|
| - String scope = null;
|
| String encodedIcon = null;
|
| String runtimeHost = null;
|
| try {
|
| @@ -61,7 +60,6 @@ public class MainActivity extends Activity {
|
| url = overrideUrl;
|
| }
|
|
|
| - scope = bundle.getString(META_DATA_SCOPE);
|
| webappId = WebApkConstants.WEBAPK_ID_PREFIX + packageName;
|
| mac = bundle.getString(META_DATA_MAC);
|
| runtimeHost = bundle.getString(META_DATA_RUNTIME_HOST);
|
| @@ -71,23 +69,24 @@ public class MainActivity extends Activity {
|
| Bitmap icon = BitmapFactory.decodeResource(getResources(), R.drawable.app_icon);
|
| encodedIcon = encodeBitmapAsString(icon);
|
| Log.w(TAG, "Url of the WebAPK: " + url);
|
| - Log.w(TAG, "webappId of the WebAPK: " + webappId);
|
| - Log.w(TAG, "name of the WebAPK:" + name);
|
| + Log.w(TAG, "WebappId of the WebAPK: " + webappId);
|
| + Log.w(TAG, "Name of the WebAPK:" + name);
|
| + Log.w(TAG, "Package name of the WebAPK:" + packageName);
|
| +
|
| + Intent newIntent = new Intent();
|
| + newIntent.setComponent(new ComponentName(runtimeHost,
|
| + "org.chromium.chrome.browser.webapps.WebappLauncherActivity"));
|
| + newIntent.putExtra(EXTRA_ID, webappId)
|
| + .putExtra(EXTRA_NAME, name)
|
| + .putExtra(EXTRA_URL, url)
|
| + .putExtra(EXTRA_MAC, mac)
|
| + .putExtra(EXTRA_ICON, encodedIcon)
|
| + .putExtra(EXTRA_WEBAPK_PACKAGE_NAME, packageName);
|
| + startActivity(newIntent);
|
| + finish();
|
| } catch (NameNotFoundException e) {
|
| e.printStackTrace();
|
| }
|
| -
|
| - Intent newIntent = new Intent();
|
| - newIntent.setComponent(new ComponentName(runtimeHost,
|
| - "org.chromium.chrome.browser.webapps.WebappLauncherActivity"));
|
| - newIntent.putExtra(EXTRA_ID, webappId);
|
| - newIntent.putExtra(EXTRA_NAME, name);
|
| - newIntent.putExtra(EXTRA_SCOPE, scope);
|
| - newIntent.putExtra(EXTRA_URL, url);
|
| - newIntent.putExtra(EXTRA_MAC, mac);
|
| - newIntent.putExtra(EXTRA_ICON, encodedIcon);
|
| - startActivity(newIntent);
|
| - finish();
|
| }
|
|
|
| /**
|
|
|