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

Unified Diff: components/proximity_auth/bluetooth_throttler_impl.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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: components/proximity_auth/bluetooth_throttler_impl.cc
diff --git a/components/proximity_auth/bluetooth_throttler_impl.cc b/components/proximity_auth/bluetooth_throttler_impl.cc
index a44ce1e33bcb54fef8cb3fc352ca82354b90bb81..f9a54e230804dfb21228acac6dfa3a0b88004d18 100644
--- a/components/proximity_auth/bluetooth_throttler_impl.cc
+++ b/components/proximity_auth/bluetooth_throttler_impl.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/bluetooth_throttler_impl.h"
+#include <utility>
+
#include "base/stl_util.h"
#include "base/time/tick_clock.h"
#include "components/proximity_auth/connection.h"
@@ -18,8 +20,7 @@ const int kCooldownTimeSecs = 7;
BluetoothThrottlerImpl::BluetoothThrottlerImpl(
scoped_ptr<base::TickClock> clock)
- : clock_(clock.Pass()) {
-}
+ : clock_(std::move(clock)) {}
BluetoothThrottlerImpl::~BluetoothThrottlerImpl() {
for (Connection* connection : connections_) {

Powered by Google App Engine
This is Rietveld 408576698