Chromium Code Reviews| 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(); |