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

Unified Diff: chrome/browser/predictors/resource_prefetcher.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.cc
diff --git a/chrome/browser/predictors/resource_prefetcher.cc b/chrome/browser/predictors/resource_prefetcher.cc
index 101022a7bb9e0796910342b707acc11980e261c2..356b194b0d8bad451c11a8abb8809345bc7681c1 100644
--- a/chrome/browser/predictors/resource_prefetcher.cc
+++ b/chrome/browser/predictors/resource_prefetcher.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/predictors/resource_prefetcher.h"
#include <iterator>
+#include <utility>
#include "base/stl_util.h"
#include "content/public/browser/browser_thread.h"
@@ -40,12 +41,12 @@ ResourcePrefetcher::ResourcePrefetcher(
const NavigationID& navigation_id,
PrefetchKeyType key_type,
scoped_ptr<RequestVector> requests)
- : state_(INITIALIZED),
- delegate_(delegate),
- config_(config),
- navigation_id_(navigation_id),
- key_type_(key_type),
- request_vector_(requests.Pass()) {
+ : state_(INITIALIZED),
+ delegate_(delegate),
+ config_(config),
+ navigation_id_(navigation_id),
+ key_type_(key_type),
+ request_vector_(std::move(requests)) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
DCHECK(request_vector_.get());

Powered by Google App Engine
This is Rietveld 408576698