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

Unified Diff: chrome/browser/predictors/resource_prefetcher_manager.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_prefetcher_manager.cc
diff --git a/chrome/browser/predictors/resource_prefetcher_manager.cc b/chrome/browser/predictors/resource_prefetcher_manager.cc
index 15d1b76dcd8ce6f8af472d13732c409a7aa0883e..bf2a0a7f638517210a58bf90a0ad918705678df8 100644
--- a/chrome/browser/predictors/resource_prefetcher_manager.cc
+++ b/chrome/browser/predictors/resource_prefetcher_manager.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/predictors/resource_prefetcher_manager.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/stl_util.h"
#include "chrome/browser/predictors/resource_prefetch_predictor.h"
@@ -61,7 +63,7 @@ void ResourcePrefetcherManager::MaybeAddPrefetch(
return;
ResourcePrefetcher* prefetcher = new ResourcePrefetcher(
- this, config_, navigation_id, key_type, requests.Pass());
+ this, config_, navigation_id, key_type, std::move(requests));
prefetcher_map_.insert(std::make_pair(key, prefetcher));
prefetcher->Start();
}

Powered by Google App Engine
This is Rietveld 408576698