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

Unified Diff: content/public/browser/download_url_parameters.h

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/public/browser/browser_message_filter.h ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_url_parameters.h
diff --git a/content/public/browser/download_url_parameters.h b/content/public/browser/download_url_parameters.h
index d9c0039b553cdd7bf7e3802a03fb997e638ca41d..a2b9b00d6e9fa8375f2dd47c62480d4641766329 100644
--- a/content/public/browser/download_url_parameters.h
+++ b/content/public/browser/download_url_parameters.h
@@ -6,8 +6,8 @@
#define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_
#include <stdint.h>
-
#include <string>
+#include <utility>
#include <vector>
#include "base/callback.h"
@@ -101,9 +101,7 @@ class CONTENT_EXPORT DownloadUrlParameters {
save_info_.hash_state = hash_state;
}
void set_prompt(bool prompt) { save_info_.prompt_for_save_location = prompt; }
- void set_file(base::File file) {
- save_info_.file = file.Pass();
- }
+ void set_file(base::File file) { save_info_.file = std::move(file); }
void set_do_not_prompt_for_login(bool do_not_prompt) {
do_not_prompt_for_login_ = do_not_prompt;
}
@@ -146,7 +144,7 @@ class CONTENT_EXPORT DownloadUrlParameters {
// Note that this is state changing--the DownloadUrlParameters object
// will not have a file attached to it after this call.
- base::File GetFile() { return save_info_.file.Pass(); }
+ base::File GetFile() { return std::move(save_info_.file); }
private:
OnStartedCallback callback_;
« no previous file with comments | « content/public/browser/browser_message_filter.h ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698