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

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

Issue 2506853002: Fix double-deletion of VR Shell when exiting webVR in onPause. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/browser/android/vr_shell/vr_shell_delegate.cc » ('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/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 7841650f713c61d23b87a166788b47818b07b1fd..bea4861e16ca4a7407a987c0709897a0757c474d 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
@@ -300,8 +300,6 @@ public class VrShellDelegate {
*/
public boolean exitVRIfNecessary(boolean returnTo2D) {
if (!mInVr) return false;
- // If WebVR is presenting instruct it to exit.
- nativeExitWebVRIfNecessary(mNativeVrShellDelegate);
shutdownVR(returnTo2D);
return true;
}
@@ -538,5 +536,4 @@ public class VrShellDelegate {
}
private native long nativeInit();
- private native void nativeExitWebVRIfNecessary(long nativeVrShellDelegate);
}
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698