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

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

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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: components/precache/core/precache_fetcher.cc
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc
index 0bc2e1b2b40cb1e2c17a5bfdf84000c00aec1a08..e84c4d5f5a7aecef5a95192dea10fdfcbf28af61 100644
--- a/components/precache/core/precache_fetcher.cc
+++ b/components/precache/core/precache_fetcher.cc
@@ -486,12 +486,12 @@ std::unique_ptr<PrecacheUnfinishedWork> PrecacheFetcher::CancelPrecaching() {
unfinished_work_->add_top_host()->set_hostname(top_host.hostname);
}
for (const auto& resource : resources_fetching_) {
- auto new_resource = unfinished_work_->add_resource();
+ auto* new_resource = unfinished_work_->add_resource();
new_resource->set_url(resource.url.spec());
new_resource->set_top_host_name(resource.referrer);
}
for (const auto& resource : resources_to_fetch_) {
- auto new_resource = unfinished_work_->add_resource();
+ auto* new_resource = unfinished_work_->add_resource();
new_resource->set_url(resource.url.spec());
new_resource->set_top_host_name(resource.referrer);
}

Powered by Google App Engine
This is Rietveld 408576698