Chromium Code Reviews| 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(); |