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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.cc

Issue 2769333006: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome/browser (Closed)
Patch Set: Created 3 years, 9 months 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 ad3e824f5ea5adadb37ada20bb5fbf40412e3ae5..31df7346ece6c5983e078de9b17e4ee13d1d8d04 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor.cc
@@ -720,7 +720,7 @@ void ResourcePrefetchPredictor::OnMainFrameRedirect(
NavigationMap::iterator nav_it =
inflight_navigations_.find(response.navigation_id);
if (nav_it != inflight_navigations_.end()) {
- summary.reset(nav_it->second.release());
+ summary = std::move(nav_it->second);
inflight_navigations_.erase(nav_it);
}

Powered by Google App Engine
This is Rietveld 408576698