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

Unified Diff: device/vr/android/gvr/gvr_device.cc

Issue 2493063004: Fix exiting WebVR via Android UI not fully exiting fullscreen. (Closed)
Patch Set: 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
Index: device/vr/android/gvr/gvr_device.cc
diff --git a/device/vr/android/gvr/gvr_device.cc b/device/vr/android/gvr/gvr_device.cc
index be3d657764f9e225620d4fe22dca6cb6b5c1d545..da7b6a197796028edc823e856b4305be48d014e5 100644
--- a/device/vr/android/gvr/gvr_device.cc
+++ b/device/vr/android/gvr/gvr_device.cc
@@ -218,11 +218,10 @@ bool GvrDevice::RequestPresent(VRServiceImpl* service, bool secure_origin) {
}
void GvrDevice::ExitPresent(VRServiceImpl* service) {
- if (IsPresentingService(service))
- presenting_service_ = nullptr;
-
- gvr_provider_->ExitPresent();
- OnExitPresent(service);
+ if (IsPresentingService(service)) {
+ gvr_provider_->ExitPresent();
+ OnExitPresent();
+ }
}
void GvrDevice::SubmitFrame(VRServiceImpl* service, mojom::VRPosePtr pose) {
« no previous file with comments | « no previous file | device/vr/android/gvr/gvr_device_provider.h » ('j') | device/vr/android/gvr/gvr_device_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698