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

Unified Diff: content/browser/web_contents/web_drag_source_mac.mm

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/common/font_list_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_drag_source_mac.mm
diff --git a/content/browser/web_contents/web_drag_source_mac.mm b/content/browser/web_contents/web_drag_source_mac.mm
index 9e6443be1428a127bd34cf74dba20a4dd106c848..a94f9d32daa819ccfa5630417f9e0cae94cd4317 100644
--- a/content/browser/web_contents/web_drag_source_mac.mm
+++ b/content/browser/web_contents/web_drag_source_mac.mm
@@ -6,6 +6,8 @@
#include <sys/param.h>
+#include <utility>
+
#include "base/bind.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
@@ -313,14 +315,11 @@ void PromiseWriterHelper(const DropData& drop_data,
return nil;
if (downloadURL_.is_valid() && contents_) {
- scoped_refptr<DragDownloadFile> dragFileDownloader(new DragDownloadFile(
- filePath,
- file.Pass(),
- downloadURL_,
- content::Referrer(contents_->GetLastCommittedURL(),
- dropData_->referrer_policy),
- contents_->GetEncoding(),
- contents_));
+ scoped_refptr<DragDownloadFile> dragFileDownloader(
+ new DragDownloadFile(filePath, std::move(file), downloadURL_,
+ content::Referrer(contents_->GetLastCommittedURL(),
+ dropData_->referrer_policy),
+ contents_->GetEncoding(), contents_));
// The finalizer will take care of closing and deletion.
dragFileDownloader->Start(new PromiseFileFinalizer(
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/common/font_list_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698