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

Unified Diff: mojo/runner/android/ui_application_loader_android.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/background_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/runner/android/ui_application_loader_android.cc
diff --git a/mojo/runner/android/ui_application_loader_android.cc b/mojo/runner/android/ui_application_loader_android.cc
index 4579e80c9b5f5b5715f2c32806b29bc414d235b0..01c5749cec186e514841f6163cdb94df058bd958 100644
--- a/mojo/runner/android/ui_application_loader_android.cc
+++ b/mojo/runner/android/ui_application_loader_android.cc
@@ -4,6 +4,8 @@
#include "mojo/runner/android/ui_application_loader_android.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "mojo/shell/application_manager.h"
@@ -14,8 +16,7 @@ namespace runner {
UIApplicationLoader::UIApplicationLoader(
scoped_ptr<ApplicationLoader> real_loader,
base::MessageLoop* ui_message_loop)
- : loader_(real_loader.Pass()), ui_message_loop_(ui_message_loop) {
-}
+ : loader_(std::move(real_loader)), ui_message_loop_(ui_message_loop) {}
UIApplicationLoader::~UIApplicationLoader() {
ui_message_loop_->PostTask(
@@ -36,7 +37,7 @@ void UIApplicationLoader::Load(
void UIApplicationLoader::LoadOnUIThread(
const GURL& url,
InterfaceRequest<Application> application_request) {
- loader_->Load(url, application_request.Pass());
+ loader_->Load(url, std::move(application_request));
}
void UIApplicationLoader::ShutdownOnUIThread() {
« no previous file with comments | « mojo/runner/android/background_application_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698