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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.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/predictors/resource_prefetch_predictor.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.cc b/chrome/browser/predictors/resource_prefetch_predictor.cc
index 0b5235e753977a141149ee3a2de695041501b404..4186282351cc8e6dc5d503093fdc23dc21aaf86a 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor.cc
@@ -425,7 +425,8 @@ void ResourcePrefetchPredictor::FinishedPrefetchForNavigation(
scoped_ptr<Result> result(new Result(key_type, requests));
// Add the results to the results map.
- if (!results_map_.insert(std::make_pair(navigation_id, result.Pass())).second)
+ if (!results_map_.insert(std::make_pair(navigation_id, std::move(result)))
+ .second)
DLOG(FATAL) << "Returning results for existing navigation.";
}

Powered by Google App Engine
This is Rietveld 408576698