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

Unified Diff: net/url_request/url_request_filter.cc

Issue 937393002: win vs2015: fix shadowing warnings in net/url_request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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
« no previous file with comments | « no previous file | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_filter.cc
diff --git a/net/url_request/url_request_filter.cc b/net/url_request/url_request_filter.cc
index eaa3325fba38b1a13af28db2340b0902f99f1546..290bc99f9dec6455d35db50919dd15d9b94d2fff 100644
--- a/net/url_request/url_request_filter.cc
+++ b/net/url_request/url_request_filter.cc
@@ -138,10 +138,12 @@ URLRequestJob* URLRequestFilter::MaybeInterceptRequest(
const std::string hostname = request->url().host();
const std::string scheme = request->url().scheme();
- HostnameInterceptorMap::const_iterator it =
- hostname_interceptor_map_.find(make_pair(scheme, hostname));
- if (it != hostname_interceptor_map_.end())
- job = it->second->MaybeInterceptRequest(request, network_delegate);
+ {
+ HostnameInterceptorMap::const_iterator it =
+ hostname_interceptor_map_.find(make_pair(scheme, hostname));
+ if (it != hostname_interceptor_map_.end())
+ job = it->second->MaybeInterceptRequest(request, network_delegate);
+ }
if (!job) {
// Not in the hostname map, check the url map.
« no previous file with comments | « no previous file | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698