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

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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: 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(

Powered by Google App Engine
This is Rietveld 408576698