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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 8461985dfb49405aed927a3b091f90b91a69c64c..5845a53e2f40b2522be0eaa13a1ccb7e27e1c070 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -182,6 +182,7 @@
#include "platform/network/ResourceRequest.h"
#include "platform/scroll/ScrollTypes.h"
#include "platform/scroll/ScrollbarTheme.h"
+#include "platform/vr/vr_dispatcher.h"
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/SchemeRegistry.h"
#include "platform/weborigin/SecurityPolicy.h"
@@ -1555,7 +1556,7 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame)
if (RuntimeEnabledFeatures::webUSBEnabled())
USBController::provideTo(*m_frame, m_client ? m_client->usbClient() : nullptr);
if (RuntimeEnabledFeatures::webVREnabled())
- VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr);
+ VRController::provideTo(*m_frame, VRDispatcher::create());
if (RuntimeEnabledFeatures::wakeLockEnabled())
ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockClient() : nullptr);
if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())

Powered by Google App Engine
This is Rietveld 408576698