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

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

Issue 2873843002: Support autopresenting WebVr content. (Closed)
Patch Set: move VrShellDelegate.onNewIntent call to CTA 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
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 771ca11fd63452ba1506e495019e7ad30a36e239..a20da822df4145dc7cb6a4cb6c372388377ef278 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
@@ -995,6 +995,10 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
getBottomSheet().setSheetState(BottomSheet.SHEET_STATE_PEEK, true);
}
+ // We send this intent so that we can enter WebVr presentation mode if needed. This
+ // call doesn't consume the intent because it also has the url that we need to load.
+ VrShellDelegate.onNewIntent(intent);
+
TabModel tabModel = getCurrentTabModel();
boolean fromLauncherShortcut = IntentUtils.safeGetBooleanExtra(
intent, IntentHandler.EXTRA_INVOKED_FROM_SHORTCUT, false);

Powered by Google App Engine
This is Rietveld 408576698