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

Unified Diff: components/offline_pages/offline_page_model.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/offline_pages/offline_page_model.cc
diff --git a/components/offline_pages/offline_page_model.cc b/components/offline_pages/offline_page_model.cc
index ffb5872c9a8a0448619f8dcb13d5e639afc8ead6..18b656c0c929574fe500998b16e1a861d8f4e003 100644
--- a/components/offline_pages/offline_page_model.cc
+++ b/components/offline_pages/offline_page_model.cc
@@ -117,7 +117,7 @@ OfflinePageModel::OfflinePageModel(
scoped_ptr<OfflinePageMetadataStore> store,
const base::FilePath& archives_dir,
const scoped_refptr<base::SequencedTaskRunner>& task_runner)
- : store_(store.Pass()),
+ : store_(std::move(store)),
archives_dir_(archives_dir),
is_loaded_(false),
task_runner_(task_runner),
@@ -166,7 +166,7 @@ void OfflinePageModel::SavePage(const GURL& url,
base::Bind(&OfflinePageModel::OnCreateArchiveDone,
weak_ptr_factory_.GetWeakPtr(), url,
bookmark_id, base::Time::Now(), callback));
- pending_archivers_.push_back(archiver.Pass());
+ pending_archivers_.push_back(std::move(archiver));
}
void OfflinePageModel::MarkPageAccessed(int64_t bookmark_id) {

Powered by Google App Engine
This is Rietveld 408576698