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

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

Issue 2776243007: Enable WebVR presentation from Chrome Custom Tab (Closed)
Patch Set: Add bug Created 3 years, 9 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
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
index 9a685eef10f3dac2f34afa42870833ae0b82944b..b579730173da1465403f3587248020e5fa39a5a5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
@@ -577,10 +577,7 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
if (CommandLine.getInstance().hasSwitch(ContentSwitches.ENABLE_TEST_INTENTS)) {
handleDebugIntent(intent);
}
- if (VrShellDelegate.isDaydreamVrIntent(intent)) {
- // TODO(mthiesse): Move this into ChromeActivity. crbug.com/688611
- VrShellDelegate.enterVRFromIntent(intent);
- } else if (ShortcutHelper.isShowToastIntent(intent)) {
+ if (ShortcutHelper.isShowToastIntent(intent)) {
ShortcutHelper.showAddedToHomescreenToastFromIntent(intent);
}
} finally {
@@ -809,12 +806,7 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
mIntentWithEffect = false;
if ((mIsOnFirstRun || getSavedInstanceState() == null) && intent != null) {
- if (VrShellDelegate.isDaydreamVrIntent(intent)) {
- // TODO(mthiesse): Improve startup when started from a VR intent.
- // crbug.com/668541
- // TODO(mthiesse): Move this into ChromeActivity. crbug.com/688611
- VrShellDelegate.enterVRIfNecessary();
- } else if (!mIntentHandler.shouldIgnoreIntent(intent)) {
+ if (!mIntentHandler.shouldIgnoreIntent(intent)) {
mIntentWithEffect = mIntentHandler.onNewIntent(intent);
}

Powered by Google App Engine
This is Rietveld 408576698