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

Unified Diff: device/vr/vr_device.cc

Issue 2548893002: Prevent new events from being sent to WebVR pages that are being closed. (Closed)
Patch Set: Created 4 years 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 | 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 78091044558e47db9ecb90ea30803c48fcf599ba..31e2a9f224ba78bdbca239298ea2a65f5ab1dbf4 100644
--- a/device/vr/vr_device.cc
+++ b/device/vr/vr_device.cc
@@ -31,9 +31,9 @@ void VRDevice::AddService(VRServiceImpl* service) {
}
void VRDevice::RemoveService(VRServiceImpl* service) {
+ displays_.erase(service);
if (IsPresentingService(service))
ExitPresent();
- displays_.erase(service);
}
bool VRDevice::IsAccessAllowed(VRServiceImpl* service) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698