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

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: 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index b9fdefc5cf29e20ac2d1ee4508ce7959bb473841..6e2213dacb4b6f9b77c580d5035c817a6f3e6a22 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"
@@ -1556,7 +1557,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());
Yuki 2016/03/22 07:15:03 I think you no longer need this line. The clients
RaviKasibhatla 2016/03/23 15:20:51 I am sorry but I didn't understood the concern her
Yuki 2016/03/25 09:49:05 Yes. As you're moving the implementation from con
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