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

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

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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 b2e3b0faead273818ab8e4d9394ce7b4a4d69cee..2152b85b1007e961a266e572ccec44b71711c6b0 100644
--- a/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
+++ b/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
@@ -6,6 +6,7 @@
#include "platform/MojoHelper.h"
#include "public/platform/Platform.h"
+#include "public/platform/ServiceRegistry.h"
#include "wtf/Assertions.h"
#include "wtf/PassOwnPtr.h"
@@ -53,7 +54,8 @@ void BatteryDispatcher::updateBatteryStatus(const BatteryStatus& batteryStatus)
void BatteryDispatcher::startListening()
{
ASSERT(!m_monitor.is_bound());
- Platform::current()->connectToRemoteService(mojo::GetProxy(&m_monitor));
+ Platform::current()->serviceRegistry()->connectToRemoteService(
+ mojo::GetProxy(&m_monitor));
// m_monitor can be null during testing.
timvolodine 2016/04/05 16:58:04 not really related to this path: I was wondering i
Sam McNally 2016/04/06 01:32:53 I don't think this ever was true. In tests m_monit
if (m_monitor)
queryNextStatus();

Powered by Google App Engine
This is Rietveld 408576698