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

Unified Diff: components/proximity_auth/throttled_bluetooth_connection_finder_unittest.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/throttled_bluetooth_connection_finder_unittest.cc
diff --git a/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc b/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc
index 3cc6c5dff06ff95fbe7f92f6f3c542b88ce306a5..e979090753913803bd89d7257033829bbdb0e78b 100644
--- a/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc
+++ b/components/proximity_auth/throttled_bluetooth_connection_finder_unittest.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/throttled_bluetooth_connection_finder.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/test/test_simple_task_runner.h"
@@ -30,7 +32,7 @@ const char kUuid[] = "DEADBEEF-CAFE-FEED-FOOD-D15EA5EBEEF";
// A callback that stores a found |connection| into |out|.
void SaveConnection(scoped_ptr<Connection>* out,
scoped_ptr<Connection> connection) {
- *out = connection.Pass();
+ *out = std::move(connection);
}
class MockBluetoothThrottler : public BluetoothThrottler {

Powered by Google App Engine
This is Rietveld 408576698