Index: device/battery/battery_monitor_impl.cc |
diff --git a/device/battery/battery_monitor_impl.cc b/device/battery/battery_monitor_impl.cc |
index b5383946252573aefe2793e91169d40b7b5604fe..8bb92dbdf11e750b1e2711d9b6458734e3301511 100644 |
--- a/device/battery/battery_monitor_impl.cc |
+++ b/device/battery/battery_monitor_impl.cc |
@@ -4,6 +4,8 @@ |
#include "device/battery/battery_monitor_impl.h" |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/logging.h" |
@@ -12,13 +14,12 @@ namespace device { |
// static |
void BatteryMonitorImpl::Create( |
mojo::InterfaceRequest<BatteryMonitor> request) { |
- new BatteryMonitorImpl(request.Pass()); |
+ new BatteryMonitorImpl(std::move(request)); |
} |
BatteryMonitorImpl::BatteryMonitorImpl( |
mojo::InterfaceRequest<BatteryMonitor> request) |
- : binding_(this, request.Pass()), |
- status_to_report_(false) { |
+ : binding_(this, std::move(request)), status_to_report_(false) { |
// NOTE: DidChange may be called before AddCallback returns. This is done to |
// report current status. |
subscription_ = BatteryStatusService::GetInstance()->AddCallback( |