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

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

Issue 2643713002: Port BatteryMonitor into Device Service (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/battery/BUILD.gn ('k') | third_party/WebKit/Source/modules/battery/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « third_party/WebKit/Source/modules/battery/BUILD.gn ('k') | third_party/WebKit/Source/modules/battery/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698