Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| index 27c46ed667dec4df0a9416d31ac048f754bda2f8..b358eff15512d75f68cf4c60e4b904ea648f86f1 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| @@ -741,6 +741,11 @@ public abstract class ChromeActivity extends AsyncInitializationActivity |
| public void initializeState() { |
| super.initializeState(); |
| + if (getSavedInstanceState() == null && getIntent() != null) { |
| + // We send this intent so that we can enter WebVr presentation mode if needed. |
|
mthiesse
2017/05/11 17:29:15
Add comment on why you don't mark the intent as ha
Ted C
2017/05/11 18:10:38
The problem is ChromeTabbedActivity creates the ta
ymalik
2017/05/11 21:17:52
Ah I see. Okay moved it to processUrlViewIntent. T
|
| + VrShellDelegate.onNewIntent(this, getIntent()); |
| + } |
| + |
| IntentHandler.setTestIntentsEnabled( |
| CommandLine.getInstance().hasSwitch(ContentSwitches.ENABLE_TEST_INTENTS)); |
| mIntentHandler = new IntentHandler(createIntentHandlerDelegate(), getPackageName()); |
| @@ -916,6 +921,7 @@ public abstract class ChromeActivity extends AsyncInitializationActivity |
| if (mIntentHandler.shouldIgnoreIntent(intent)) return; |
| mIntentHandler.onNewIntent(intent); |
| + VrShellDelegate.onNewIntent(this, intent); |
| } |
| /** |