| 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 374e6c7804555b8e54f64e3df92f01eb1ae75cc5..29ae2cf4a3d6b551b5c617d84cc9abddc8ca7fe6 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
|
| @@ -172,6 +172,7 @@ public class VrShellDelegate {
|
| * Handle a VR intent, entering VR in the process unless we're unable to.
|
| */
|
| public void enterVRFromIntent(Intent intent) {
|
| + Log.i(TAG, "enterVrFromIntent mListeningForWebVrActivateBeforePause=" + mListeningForWebVrActivateBeforePause + " mRequestedWebVR=" + mRequestedWebVR);
|
| // Vr Intent is only used on Daydream devices.
|
| if (mVrSupportLevel != VR_DAYDREAM) return;
|
| assert isDaydreamVrIntent(intent);
|
| @@ -387,6 +388,7 @@ public class VrShellDelegate {
|
| // page becomes visible again after DON finished. So here we remember the value of
|
| // mListeningForWebVrActivity before pause and use this value to decide if
|
| // vrdisplayactivate event should be dispatched in enterVRFromIntent.
|
| + Log.i(TAG, "maybePauseVR: set mListeningForWebVrActivateBeforePause to " + mListeningForWebVrActivate);
|
| mListeningForWebVrActivateBeforePause = mListeningForWebVrActivate;
|
| }
|
| if (mNonPresentingGvrContext != null) {
|
| @@ -459,6 +461,7 @@ public class VrShellDelegate {
|
| // Non-Daydream devices may not have the concept of display activate. So disable
|
| // mListeningForWebVrActivate for them.
|
| if (mVrSupportLevel != VR_DAYDREAM) return;
|
| + Log.i(TAG, "setListeningForWebVrActivate(" + listening + ")");
|
| mListeningForWebVrActivate = listening;
|
| if (listening) {
|
| registerDaydreamIntent();
|
|
|