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

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

Issue 2603553002: Ports VRService to be hosted in the device service.
Patch Set: Ports VRService to be hosted in the device service. Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/modules/vr/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cbbcda197a500e91b0b30e70e76885cd6c169cc5..e4d123ebcd1583b31d0c4fd04be8979ef96c6d08 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
@@ -10,7 +10,9 @@
#include "core/frame/LocalFrame.h"
#include "modules/vr/NavigatorVR.h"
#include "modules/vr/VRGetDevicesCallback.h"
-#include "public/platform/InterfaceProvider.h"
+#include "public/platform/Platform.h"
+#include "services/device/public/interfaces/constants.mojom-blink.h"
+#include "services/service_manager/public/cpp/connector.h"
#include "platform/wtf/Assertions.h"
@@ -21,8 +23,8 @@ VRController::VRController(NavigatorVR* navigator_vr)
navigator_vr_(navigator_vr),
display_synced_(false),
binding_(this) {
- navigator_vr->GetDocument()->GetFrame()->GetInterfaceProvider()->GetInterface(
- mojo::MakeRequest(&service_));
+ Platform::Current()->GetConnector()->BindInterface(
+ device::mojom::blink::kServiceName, mojo::MakeRequest(&service_));
service_.set_connection_error_handler(ConvertToBaseCallback(
WTF::Bind(&VRController::Dispose, WrapWeakPersistent(this))));
service_->SetClient(
« no previous file with comments | « third_party/WebKit/Source/modules/vr/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698