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

Unified Diff: third_party/WebKit/Source/modules/vr/VRController.cpp

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reworked as per comments! Created 4 years, 9 months 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: third_party/WebKit/Source/modules/vr/VRController.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRController.cpp b/third_party/WebKit/Source/modules/vr/VRController.cpp
index 543ee14076b90407e251b25650efc9a4b34d961a..bd38af79724cc6d92b1447a17156e20648246a5a 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
@@ -28,7 +28,7 @@ VRController* VRController::from(LocalFrame& frame)
VRController::VRController(LocalFrame& frame, WebVRClient* client)
: LocalFrameLifecycleObserver(&frame)
- , m_client(client)
+ , m_client(static_cast<VRDispatcher*>(client))
{
}
@@ -75,6 +75,7 @@ DEFINE_TRACE(VRController)
{
WillBeHeapSupplement<LocalFrame>::trace(visitor);
LocalFrameLifecycleObserver::trace(visitor);
+ visitor->trace(m_client);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698