Index: content/child/shared_memory_data_consumer_handle_unittest.cc |
diff --git a/content/child/shared_memory_data_consumer_handle_unittest.cc b/content/child/shared_memory_data_consumer_handle_unittest.cc |
index 0454ada5de49a1caa3b1249164f94f66bb8d183f..5694d588bffeffa8a6361e303c73bf6bcf74b9b9 100644 |
--- a/content/child/shared_memory_data_consumer_handle_unittest.cc |
+++ b/content/child/shared_memory_data_consumer_handle_unittest.cc |
@@ -7,6 +7,7 @@ |
#include <stddef.h> |
#include <string.h> |
#include <string> |
+#include <utility> |
#include <vector> |
#include "base/bind.h" |
@@ -127,7 +128,7 @@ class ThreadedSharedMemoryDataConsumerHandleTest : public ::testing::Test { |
ReadDataOperation(scoped_ptr<SharedMemoryDataConsumerHandle> handle, |
base::MessageLoop* main_message_loop, |
const base::Closure& on_done) |
- : handle_(handle.Pass()), |
+ : handle_(std::move(handle)), |
main_message_loop_(main_message_loop), |
on_done_(on_done) {} |
@@ -1000,8 +1001,8 @@ TEST(SharedMemoryDataConsumerHandleWithoutBackpressureTest, AddData) { |
TEST_F(ThreadedSharedMemoryDataConsumerHandleTest, Read) { |
base::RunLoop run_loop; |
- auto operation = make_scoped_ptr( |
- new ReadDataOperation(handle_.Pass(), &loop_, run_loop.QuitClosure())); |
+ auto operation = make_scoped_ptr(new ReadDataOperation( |
+ std::move(handle_), &loop_, run_loop.QuitClosure())); |
scoped_refptr<Logger> logger(new Logger); |
base::Thread t("DataConsumerHandle test thread"); |