Chromium Code Reviews| 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 52a020797bd6e61201aa725781c1f57808606a7f..626a21ff512a429c208c39540049117c855fe923 100644 |
| --- a/third_party/WebKit/Source/modules/vr/VRController.cpp |
| +++ b/third_party/WebKit/Source/modules/vr/VRController.cpp |
| @@ -10,7 +10,8 @@ |
| #include "core/frame/LocalFrame.h" |
| #include "modules/vr/NavigatorVR.h" |
| #include "modules/vr/VRGetDevicesCallback.h" |
| -#include "public/platform/InterfaceProvider.h" |
| +#include "platform/ServiceConnector.h" |
| +#include "services/device/public/interfaces/constants.mojom-blink.h" |
| #include "wtf/Assertions.h" |
| @@ -21,8 +22,8 @@ VRController::VRController(NavigatorVR* navigatorVR) |
| m_navigatorVR(navigatorVR), |
| m_displaySynced(false), |
| m_binding(this) { |
| - navigatorVR->document()->frame()->interfaceProvider()->getInterface( |
|
blundell
2017/01/12 09:59:56
Brandon, do you know this interface was exposed at
|
| - mojo::MakeRequest(&m_service)); |
| + ServiceConnector::instance().connectToInterface( |
| + device::mojom::blink::kServiceName, mojo::MakeRequest(&m_service)); |
| m_service->SetClient( |
| m_binding.CreateInterfacePtrAndBind(), |
| convertToBaseCallback( |