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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder.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/safe_browsing/incident_reporting/last_download_finder.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc b/chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc
index d82c123e1613e5e5fc1bd2536ada0d9a2c9c2b81..28060529a07eb9199d6c5f751a44956bb8196084 100644
--- a/chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc
@@ -238,7 +238,7 @@ scoped_ptr<LastDownloadFinder> LastDownloadFinder::Create(
// Return NULL if there is no work to do.
if (finder->profile_states_.empty())
return scoped_ptr<LastDownloadFinder>();
- return finder.Pass();
+ return finder;
}
LastDownloadFinder::LastDownloadFinder()
@@ -298,7 +298,7 @@ void LastDownloadFinder::OnMetadataQuery(
if (details) {
if (IsMostInterestingBinary(*details, details_.get(),
most_recent_binary_row_)) {
- details_ = details.Pass();
+ details_ = std::move(details);
most_recent_binary_row_.end_time = base::Time();
}
iter->second = WAITING_FOR_NON_BINARY_HISTORY;
@@ -397,7 +397,7 @@ void LastDownloadFinder::ReportResults() {
non_binary_details.get());
}
- callback_.Run(binary_details.Pass(), non_binary_details.Pass());
+ callback_.Run(std::move(binary_details), std::move(non_binary_details));
// Do not touch this LastDownloadFinder after running the callback, since it
// may have been deleted.
}

Powered by Google App Engine
This is Rietveld 408576698