Index: chrome/browser/extensions/api/messaging/native_process_launcher.cc |
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc |
index 74650e9fdef41dbeb50fbfe77fbe509b95f74555..a60b166b035cf6c462e089cbb5591f46ee925ba0 100644 |
--- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc |
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/extensions/api/messaging/native_process_launcher.h" |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/command_line.h" |
@@ -198,7 +200,8 @@ void NativeProcessLauncherImpl::Core::DoLaunchOnThreadPool( |
base::File write_file; |
if (NativeProcessLauncher::LaunchNativeProcess( |
command_line, &process, &read_file, &write_file)) { |
- PostResult(callback, process.Pass(), read_file.Pass(), write_file.Pass()); |
+ PostResult(callback, std::move(process), std::move(read_file), |
+ std::move(write_file)); |
} else { |
PostErrorResult(callback, RESULT_FAILED_TO_START); |
} |
@@ -214,7 +217,8 @@ void NativeProcessLauncherImpl::Core::CallCallbackOnIOThread( |
if (detached_) |
return; |
- callback.Run(result, process.Pass(), read_file.Pass(), write_file.Pass()); |
+ callback.Run(result, std::move(process), std::move(read_file), |
+ std::move(write_file)); |
} |
void NativeProcessLauncherImpl::Core::PostErrorResult( |