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

Unified Diff: mojo/runner/host/in_process_native_runner.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « mojo/runner/host/child_process_host.cc ('k') | mojo/runner/host/out_of_process_native_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/host/in_process_native_runner.cc
diff --git a/mojo/runner/host/in_process_native_runner.cc b/mojo/runner/host/in_process_native_runner.cc
index aaa0b61e486e0ddc73b1b31263478532e5bc2829..70ccfe7768d474f5e83a4a99d4c460dd47eeb102 100644
--- a/mojo/runner/host/in_process_native_runner.cc
+++ b/mojo/runner/host/in_process_native_runner.cc
@@ -4,6 +4,8 @@
#include "mojo/runner/host/in_process_native_runner.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/location.h"
@@ -38,7 +40,7 @@ void InProcessNativeRunner::Start(
app_path_ = app_path;
DCHECK(!application_request_.is_pending());
- application_request_ = application_request.Pass();
+ application_request_ = std::move(application_request);
DCHECK(app_completed_callback_runner_.is_null());
app_completed_callback_runner_ = base::Bind(
@@ -73,7 +75,7 @@ void InProcessNativeRunner::Run() {
#if !(defined(COMPONENT_BUILD) && defined(OS_WIN))
CallLibraryEarlyInitialization(app_library);
#endif
- RunNativeApplication(app_library, application_request_.Pass());
+ RunNativeApplication(app_library, std::move(application_request_));
app_completed_callback_runner_.Run();
app_completed_callback_runner_.Reset();
}
« no previous file with comments | « mojo/runner/host/child_process_host.cc ('k') | mojo/runner/host/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698