| Index: chrome/browser/download/download_history.cc
|
| diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
|
| index c04df4b85b50e915f046cad1cb9ac8718b9f1c6f..b901ce4e40c5c691dbeba374bef1e397ba1891ee 100644
|
| --- a/chrome/browser/download/download_history.cc
|
| +++ b/chrome/browser/download/download_history.cc
|
| @@ -28,6 +28,8 @@
|
|
|
| #include "chrome/browser/download/download_history.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/macros.h"
|
| #include "base/metrics/histogram.h"
|
| #include "chrome/browser/download/download_crx_util.h"
|
| @@ -208,11 +210,11 @@ bool DownloadHistory::IsPersisted(const content::DownloadItem* item) {
|
|
|
| DownloadHistory::DownloadHistory(content::DownloadManager* manager,
|
| scoped_ptr<HistoryAdapter> history)
|
| - : notifier_(manager, this),
|
| - history_(history.Pass()),
|
| - loading_id_(content::DownloadItem::kInvalidId),
|
| - history_size_(0),
|
| - weak_ptr_factory_(this) {
|
| + : notifier_(manager, this),
|
| + history_(std::move(history)),
|
| + loading_id_(content::DownloadItem::kInvalidId),
|
| + history_size_(0),
|
| + weak_ptr_factory_(this) {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| content::DownloadManager::DownloadVector items;
|
| notifier_.GetManager()->GetAllDownloads(&items);
|
|
|