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

Unified Diff: components/precache/core/precache_fetcher.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/precache/core/precache_fetcher.cc
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc
index 74c1dd4550349fec9d91fd4444e372255309a184..5aac067433fb0fc057e76d7f3bcec1679bf7d82d 100644
--- a/components/precache/core/precache_fetcher.cc
+++ b/components/precache/core/precache_fetcher.cc
@@ -5,6 +5,7 @@
#include "components/precache/core/precache_fetcher.h"
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -161,7 +162,7 @@ void PrecacheFetcher::Fetcher::LoadFromCache() {
url_fetcher_cache_->SetRequestContext(request_context_);
url_fetcher_cache_->SetLoadFlags(net::LOAD_ONLY_FROM_CACHE | kNoTracking);
scoped_ptr<URLFetcherNullWriter> null_writer(new URLFetcherNullWriter);
- url_fetcher_cache_->SaveResponseWithWriter(null_writer.Pass());
+ url_fetcher_cache_->SaveResponseWithWriter(std::move(null_writer));
url_fetcher_cache_->Start();
}
@@ -177,7 +178,7 @@ void PrecacheFetcher::Fetcher::LoadFromNetwork() {
// We don't need a copy of the response body for resource requests. The
// request is issued only to populate the browser cache.
scoped_ptr<URLFetcherNullWriter> null_writer(new URLFetcherNullWriter);
- url_fetcher_network_->SaveResponseWithWriter(null_writer.Pass());
+ url_fetcher_network_->SaveResponseWithWriter(std::move(null_writer));
} else {
// Config and manifest requests do not need to be revalidated. It's okay if
// they expire from the cache minutes after we request them.
« no previous file with comments | « components/precache/content/precache_manager_unittest.cc ('k') | components/precache/core/precache_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698