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

Unified Diff: net/url_request/url_request_job_manager.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
Index: net/url_request/url_request_job_manager.cc
diff --git a/net/url_request/url_request_job_manager.cc b/net/url_request/url_request_job_manager.cc
index 9fc963dd4a867aee45795a38f608e7db2cef201e..61e8bf22840e740efb1a5009adf1003a8cee5d24 100644
--- a/net/url_request/url_request_job_manager.cc
+++ b/net/url_request/url_request_job_manager.cc
@@ -76,10 +76,10 @@ URLRequestJob* URLRequestJobManager::CreateJob(
// See if the request should be handled by a built-in protocol factory.
for (size_t i = 0; i < arraysize(kBuiltinFactories); ++i) {
if (scheme == kBuiltinFactories[i].scheme) {
- URLRequestJob* job = (kBuiltinFactories[i].factory)(
- request, network_delegate, scheme);
- DCHECK(job); // The built-in factories are not expected to fail!
- return job;
+ URLRequestJob* new_job =
+ (kBuiltinFactories[i].factory)(request, network_delegate, scheme);
+ DCHECK(new_job); // The built-in factories are not expected to fail!
+ return new_job;
}
}
« net/url_request/url_request_http_job.cc ('K') | « net/url_request/url_request_http_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698