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

Unified Diff: device/vr/vr_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
« device/vr/android/gvr/gvr_device_provider.cc ('K') | « device/vr/vr_device.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device.cc
diff --git a/device/vr/vr_device.cc b/device/vr/vr_device.cc
index c580d5fff4cc3eb8dceeba35a1c7ab05b33c42cc..029f26adb4cd86b6673434ff8fd05c91929d5504 100644
--- a/device/vr/vr_device.cc
+++ b/device/vr/vr_device.cc
@@ -54,13 +54,15 @@ void VRDevice::OnDisplayChanged() {
}
}
-void VRDevice::OnExitPresent(VRServiceImpl* service) {
- DisplayClientMap::iterator it = displays_.find(service);
+void VRDevice::OnExitPresent() {
+ DisplayClientMap::iterator it = displays_.find(presenting_service_);
if (it != displays_.end()) {
mojom::VRDisplayClient* client = it->second->client();
if (client)
client->OnExitPresent();
}
+
+ presenting_service_ = nullptr;
}
} // namespace device
« device/vr/android/gvr/gvr_device_provider.cc ('K') | « device/vr/vr_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698