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

Unified Diff: mojo/runner/android/android_handler.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 | « no previous file | mojo/runner/android/android_handler_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/android/android_handler.cc
diff --git a/mojo/runner/android/android_handler.cc b/mojo/runner/android/android_handler.cc
index 38ffbc43c8f272dc1d71523a2f1167d01a6ede08..463d5051f515c6aa43aa8e400a6ff05862fd2215 100644
--- a/mojo/runner/android/android_handler.cc
+++ b/mojo/runner/android/android_handler.cc
@@ -5,6 +5,7 @@
#include "mojo/runner/android/android_handler.h"
#include <stddef.h>
+#include <utility>
#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
@@ -67,7 +68,7 @@ void RunAndroidApplication(JNIEnv* env,
}
// Run the application.
- RunNativeApplication(app_library, application_request.Pass());
+ RunNativeApplication(app_library, std::move(application_request));
// TODO(vtl): See note about unloading and thread-local destructors above
// declaration of |LoadNativeApplication()|.
base::UnloadNativeLibrary(app_library);
@@ -159,7 +160,7 @@ void AndroidHandler::RunApplication(
base::FilePath archive_path(
ConvertJavaStringToUTF8(env, j_archive_path.obj()));
- common::BlockingCopyToFile(response->body.Pass(), archive_path);
+ common::BlockingCopyToFile(std::move(response->body), archive_path);
Java_AndroidHandler_bootstrap(
env, GetApplicationContext(), j_archive_path.obj(),
application_request.PassMessagePipe().release().value(),
« no previous file with comments | « no previous file | mojo/runner/android/android_handler_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698