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

Unified Diff: content/browser/android/download_controller_android_impl.cc

Issue 1552733002: Convert Pass()→std::move() in //content (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: content/browser/android/download_controller_android_impl.cc
diff --git a/content/browser/android/download_controller_android_impl.cc b/content/browser/android/download_controller_android_impl.cc
index fe3476bcbf6a833e909499ebc0af0fddf60ea9b0..feb8de301526614ba602cd404a0382e8383dfc4b 100644
--- a/content/browser/android/download_controller_android_impl.cc
+++ b/content/browser/android/download_controller_android_impl.cc
@@ -4,6 +4,8 @@
#include "content/browser/android/download_controller_android_impl.h"
+#include <utility>
+
#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
@@ -92,7 +94,7 @@ void CreateContextMenuDownload(int render_process_id,
if (!is_link && extra_headers.empty())
dl_params->set_prefer_cache(true);
dl_params->set_prompt(false);
- dlm->DownloadUrl(dl_params.Pass());
+ dlm->DownloadUrl(std::move(dl_params));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698