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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java

Issue 2873843002: Support autopresenting WebVr content. (Closed)
Patch Set: address more review comments Created 3 years, 7 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
/**
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698