Index: third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp |
diff --git a/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp b/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp |
index 942567dec6ad81ccf5b7d514bb377fd44755c8fa..611ac94bee98d1880865ab5881f9717aee122e8d 100644 |
--- a/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp |
+++ b/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp |
@@ -5,8 +5,9 @@ |
#include "modules/battery/BatteryDispatcher.h" |
#include "platform/mojo/MojoHelper.h" |
-#include "public/platform/InterfaceProvider.h" |
+#include "public/platform/Connector.h" |
#include "public/platform/Platform.h" |
+#include "services/device/public/interfaces/constants.mojom-blink.h" |
#include "wtf/Assertions.h" |
namespace blink { |
@@ -44,8 +45,8 @@ void BatteryDispatcher::updateBatteryStatus( |
void BatteryDispatcher::startListening() { |
DCHECK(!m_monitor.is_bound()); |
- Platform::current()->interfaceProvider()->getInterface( |
- mojo::MakeRequest(&m_monitor)); |
+ Platform::current()->connector()->bindInterface( |
+ device::mojom::blink::kServiceName, mojo::MakeRequest(&m_monitor)); |
queryNextStatus(); |
} |