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

Unified Diff: mojo/shell/static_application_loader.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/shell/shell_application_loader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/static_application_loader.cc
diff --git a/mojo/shell/static_application_loader.cc b/mojo/shell/static_application_loader.cc
index 482021dfead006ecfb545df405f125287ec74e4e..023d31233a1779b2ea7049de84758031e84e513b 100644
--- a/mojo/shell/static_application_loader.cc
+++ b/mojo/shell/static_application_loader.cc
@@ -4,6 +4,8 @@
#include "mojo/shell/static_application_loader.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -28,7 +30,7 @@ class RunnerThread : public base::SimpleThread {
const base::Closure& exit_callback,
const StaticApplicationLoader::ApplicationFactory& factory)
: base::SimpleThread("Mojo Application: " + url.spec()),
- request_(request.Pass()),
+ request_(std::move(request)),
exit_task_runner_(exit_task_runner),
exit_callback_(exit_callback),
factory_(factory) {}
@@ -78,9 +80,9 @@ void StaticApplicationLoader::Load(const GURL& url,
// with a new app instance.
auto exit_callback = base::Bind(&StaticApplicationLoader::StopAppThread,
weak_factory_.GetWeakPtr());
- thread_.reset(
- new RunnerThread(url, request.Pass(), base::ThreadTaskRunnerHandle::Get(),
- exit_callback, factory_));
+ thread_.reset(new RunnerThread(url, std::move(request),
+ base::ThreadTaskRunnerHandle::Get(),
+ exit_callback, factory_));
thread_->Start();
}
« no previous file with comments | « mojo/shell/shell_application_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698