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

Unified Diff: chrome/browser/download/download_history.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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
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);

Powered by Google App Engine
This is Rietveld 408576698