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

Unified Diff: third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp

Issue 2643713002: Port BatteryMonitor into Device Service (Closed)
Patch Set: Self-review Created 3 years, 11 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/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..75798de53cbe2094362399e00a33fbb58d77cc6a 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()->getInterface(
+ device::mojom::blink::kServiceName, mojo::MakeRequest(&m_monitor));
queryNextStatus();
}

Powered by Google App Engine
This is Rietveld 408576698