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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 8487001: Remove 13 exit time constructors and 3 static initializers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 33887db79db6df7fb3a4efddac44bb901723e66d..889fba86c36e2b6715937de8c5a758218ec8fa30 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -255,7 +255,7 @@ void URLRequestHttpJob::NotifyHeadersComplete() {
if (SdchManager::Global() &&
SdchManager::Global()->IsInSupportedDomain(request_->url())) {
- static const std::string name = "Get-Dictionary";
+ const std::string name = "Get-Dictionary";
std::string url_text;
void* iter = NULL;
// TODO(jar): We need to not fetch dictionaries the first time they are
@@ -592,7 +592,7 @@ void URLRequestHttpJob::CookieHandled() {
void URLRequestHttpJob::FetchResponseCookies(
std::vector<std::string>* cookies) {
- std::string name = "Set-Cookie";
+ const std::string name = "Set-Cookie";
std::string value;
void* iter = NULL;
@@ -614,7 +614,7 @@ void URLRequestHttpJob::ProcessStrictTransportSecurityHeader() {
const bool valid_https =
https && !IsCertStatusError(response_info_->ssl_info.cert_status);
- std::string name = "Strict-Transport-Security";
+ const std::string name = "Strict-Transport-Security";
std::string value;
int max_age;

Powered by Google App Engine
This is Rietveld 408576698