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

Unified Diff: mojo/runner/android/background_application_loader.cc

Issue 1552973002: Convert Pass()→std::move() in //mojo/runner/android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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/android/android_handler_loader.cc ('k') | mojo/runner/android/ui_application_loader_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/android/background_application_loader.cc
diff --git a/mojo/runner/android/background_application_loader.cc b/mojo/runner/android/background_application_loader.cc
index db69c750577c5a4cc240229499854ec09a4bd389..d9a8533214cf6b6a1462076cb9e4f0dd438536db 100644
--- a/mojo/runner/android/background_application_loader.cc
+++ b/mojo/runner/android/background_application_loader.cc
@@ -4,6 +4,8 @@
#include "mojo/runner/android/background_application_loader.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/run_loop.h"
#include "mojo/shell/application_manager.h"
@@ -15,11 +17,10 @@ BackgroundApplicationLoader::BackgroundApplicationLoader(
scoped_ptr<ApplicationLoader> real_loader,
const std::string& thread_name,
base::MessageLoop::Type message_loop_type)
- : loader_(real_loader.Pass()),
+ : loader_(std::move(real_loader)),
message_loop_type_(message_loop_type),
thread_name_(thread_name),
- message_loop_created_(true, false) {
-}
+ message_loop_created_(true, false) {}
BackgroundApplicationLoader::~BackgroundApplicationLoader() {
if (thread_)
@@ -66,7 +67,7 @@ void BackgroundApplicationLoader::LoadOnBackgroundThread(
const GURL& url,
InterfaceRequest<Application> application_request) {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
- loader_->Load(url, application_request.Pass());
+ loader_->Load(url, std::move(application_request));
}
} // namespace runner
« no previous file with comments | « mojo/runner/android/android_handler_loader.cc ('k') | mojo/runner/android/ui_application_loader_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698