| Index: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
|
| index fda4695b1386f443241298288baf79afa922c036..d378ae3e2106426365a41ae117b8c7f838f6b7fc 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
|
| @@ -76,7 +76,7 @@ public class WebappActivity extends FullScreenActivity {
|
| * of the WebappActivity.
|
| */
|
| public WebappActivity() {
|
| - mWebappInfo = WebappInfo.createEmpty();
|
| + mWebappInfo = createWebappInfo(null);
|
| mDirectoryManager = new WebappDirectoryManager();
|
| mWebappUma = new WebappUma();
|
| }
|
| @@ -86,7 +86,7 @@ public class WebappActivity extends FullScreenActivity {
|
| if (intent == null) return;
|
| super.onNewIntent(intent);
|
|
|
| - WebappInfo newWebappInfo = WebappInfo.create(intent);
|
| + WebappInfo newWebappInfo = createWebappInfo(intent);
|
| if (newWebappInfo == null) {
|
| Log.e(TAG, "Failed to parse new Intent: " + intent);
|
| finish();
|
| @@ -103,6 +103,10 @@ public class WebappActivity extends FullScreenActivity {
|
| return mIsInitialized;
|
| }
|
|
|
| + protected WebappInfo createWebappInfo(Intent intent) {
|
| + return (intent == null) ? WebappInfo.createEmpty() : WebappInfo.create(intent);
|
| + }
|
| +
|
| private void initializeUI(Bundle savedInstanceState) {
|
| // We do not load URL when restoring from saved instance states.
|
| if (savedInstanceState == null && mWebappInfo.isInitialized()) {
|
| @@ -123,7 +127,7 @@ public class WebappActivity extends FullScreenActivity {
|
|
|
| @Override
|
| public void preInflationStartup() {
|
| - WebappInfo info = WebappInfo.create(getIntent());
|
| + WebappInfo info = createWebappInfo(getIntent());
|
|
|
| String id = "";
|
| if (info != null) {
|
|
|