Index: mojo/edk/js/tests/js_to_cpp_tests.cc |
diff --git a/mojo/edk/js/tests/js_to_cpp_tests.cc b/mojo/edk/js/tests/js_to_cpp_tests.cc |
index fd0a8465b82cd80fc209f2839cd8cecbae1c891d..1b96610ad5045cefff25fe8e4fd745b9107208b6 100644 |
--- a/mojo/edk/js/tests/js_to_cpp_tests.cc |
+++ b/mojo/edk/js/tests/js_to_cpp_tests.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <utility> |
+ |
#include "base/at_exit.h" |
#include "base/files/file_path.h" |
#include "base/files/file_util.h" |
@@ -98,8 +100,8 @@ js_to_cpp::EchoArgsPtr BuildSampleEchoArgs() { |
string_array[0] = "one"; |
string_array[1] = "two"; |
string_array[2] = "three"; |
- args->string_array = string_array.Pass(); |
- return args.Pass(); |
+ args->string_array = std::move(string_array); |
+ return args; |
} |
void CheckSampleEchoArgs(const js_to_cpp::EchoArgs& arg) { |
@@ -208,7 +210,7 @@ class CppSideConnection : public js_to_cpp::CppSide { |
js_to_cpp::JsSide* js_side() { return js_side_; } |
void Bind(InterfaceRequest<js_to_cpp::CppSide> request) { |
- binding_.Bind(request.Pass()); |
+ binding_.Bind(std::move(request)); |
// Keep the pipe open even after validation errors. |
binding_.EnableTestingMode(); |
} |
@@ -378,7 +380,7 @@ class JsToCppTest : public testing::Test { |
js_to_cpp::CppSidePtr cpp_side_ptr; |
cpp_side->Bind(GetProxy(&cpp_side_ptr)); |
- js_side->SetCppSide(cpp_side_ptr.Pass()); |
+ js_side->SetCppSide(std::move(cpp_side_ptr)); |
gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, |
gin::IsolateHolder::kStableV8Extras, |