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

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

Issue 2775483003: Use public Service Manager Connector API in Blink (Closed)
Patch Set: . 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
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 611ac94bee98d1880865ab5881f9717aee122e8d..501e457faee92c3376c89be0a1bc311ae6aadf34 100644
--- a/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
+++ b/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
@@ -5,9 +5,9 @@
#include "modules/battery/BatteryDispatcher.h"
#include "platform/mojo/MojoHelper.h"
-#include "public/platform/Connector.h"
#include "public/platform/Platform.h"
#include "services/device/public/interfaces/constants.mojom-blink.h"
+#include "services/service_manager/public/cpp/connector.h"
#include "wtf/Assertions.h"
namespace blink {
@@ -45,7 +45,7 @@ void BatteryDispatcher::updateBatteryStatus(
void BatteryDispatcher::startListening() {
DCHECK(!m_monitor.is_bound());
- Platform::current()->connector()->bindInterface(
+ 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/screen_orientation/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698