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

Unified Diff: components/update_client/request_sender.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 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
« no previous file with comments | « components/update_client/action_wait.cc ('k') | components/update_client/update_checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/request_sender.cc
diff --git a/components/update_client/request_sender.cc b/components/update_client/request_sender.cc
index 7f48dd72351f45df8654af95bcf04c57f29211e2..b99648a6c259a4239ccd617bfbacf9f5e48ba6bf 100644
--- a/components/update_client/request_sender.cc
+++ b/components/update_client/request_sender.cc
@@ -207,7 +207,7 @@ GURL RequestSender::BuildUpdateUrl(const GURL& url,
std::string RequestSender::GetStringHeaderValue(const net::URLFetcher* source,
const char* header_name) {
- const auto response_headers(source->GetResponseHeaders());
+ auto* response_headers(source->GetResponseHeaders());
if (!response_headers)
return std::string();
@@ -219,7 +219,7 @@ std::string RequestSender::GetStringHeaderValue(const net::URLFetcher* source,
int64_t RequestSender::GetInt64HeaderValue(const net::URLFetcher* source,
const char* header_name) {
- const auto response_headers(source->GetResponseHeaders());
+ auto* response_headers(source->GetResponseHeaders());
return response_headers ? response_headers->GetInt64HeaderValue(header_name)
: -1;
}
« no previous file with comments | « components/update_client/action_wait.cc ('k') | components/update_client/update_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698