From 36b6aec9a5f4953e2177146503096ca7de00cc36 Mon Sep 17 00:00:00 2001 From: dcheng Date: Fri, 25 Dec 2015 22:16:36 -0800 Subject: =?UTF-8?q?Convert=20Pass()=E2=86=92std::move()=20in=20//content/b?= =?UTF-8?q?rowser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG=557422 Review URL: https://codereview.chromium.org/1545243002 Cr-Commit-Position: refs/heads/master@{#366894} --- content/browser/download/download_file_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content/browser/download/download_file_impl.cc') diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc index bf60a9d..0a1f398 100644 --- a/content/browser/download/download_file_impl.cc +++ b/content/browser/download/download_file_impl.cc @@ -5,6 +5,7 @@ #include "content/browser/download/download_file_impl.h" #include +#include #include "base/bind.h" #include "base/files/file_util.h" @@ -48,15 +49,14 @@ DownloadFileImpl::DownloadFileImpl( save_info->offset, calculate_hash, save_info->hash_state, - save_info->file.Pass(), + std::move(save_info->file), bound_net_log), default_download_directory_(default_download_directory), - stream_reader_(stream.Pass()), + stream_reader_(std::move(stream)), bytes_seen_(0), bound_net_log_(bound_net_log), observer_(observer), - weak_factory_(this) { -} + weak_factory_(this) {} DownloadFileImpl::~DownloadFileImpl() { DCHECK_CURRENTLY_ON(BrowserThread::FILE); -- cgit v1.1