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

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

Issue 2683953007: Support rendering Android Native Pages in VR Shell. (Closed)
Patch Set: Created 3 years, 10 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/vr_shell/VrShellDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
index 0f77bac3a8720683f42e4b455d0f651048ec52d8..51c48a4d820c67f250d8727f0a238473accb06ce 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
@@ -287,11 +287,11 @@ public class VrShellDelegate {
}
// TODO(mthiesse): When we have VR UI for opening new tabs, etc., allow VR Shell to be
// entered without any current tabs.
- if (tab == null || tab.getContentViewCore() == null) {
+ if (tab == null) {
return false;
}
- // For now we don't handle native pages. crbug.com/661609
- if (tab.getNativePage() != null || tab.isShowingSadTab()) {
+ // For now we don't handle sad tab page. crbug.com/661609
+ if (tab.isShowingSadTab()) {
return false;
}
// crbug.com/667781

Powered by Google App Engine
This is Rietveld 408576698