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

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') | net/url_request/url_request_http_job.cc » ('J')
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..1d9cf3da3cab41861ea790b7778c31f5800492e6 100644
--- a/net/url_request/url_request_filter.cc
+++ b/net/url_request/url_request_filter.cc
@@ -146,9 +146,9 @@ URLRequestJob* URLRequestFilter::MaybeInterceptRequest(
if (!job) {
// Not in the hostname map, check the url map.
const std::string& url = request->url().spec();
- URLInterceptorMap::const_iterator it = url_interceptor_map_.find(url);
- if (it != url_interceptor_map_.end())
- job = it->second->MaybeInterceptRequest(request, network_delegate);
+ URLInterceptorMap::const_iterator url_it = url_interceptor_map_.find(url);
eroman 2015/02/20 07:36:45 or alternately put curlies around the preceding |i
scottmg 2015/02/20 19:19:41 Sure, done.
+ if (url_it != url_interceptor_map_.end())
+ job = url_it->second->MaybeInterceptRequest(request, network_delegate);
}
if (job) {
DVLOG(1) << "URLRequestFilter hit for " << request->url().spec();
« no previous file with comments | « no previous file | net/url_request/url_request_http_job.cc » ('j') | net/url_request/url_request_http_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698