Commit 0111ab07 authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Fix shadowed variables in the content layer.

Shadowed variables can make code harder to read. Don't support them
in the content layer.

BUG=794619

This CL was uploaded by git cl split.

R=kinuko@chromium.org

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I496a5dbfd270826969deea1edb01dd572dff2d99
Reviewed-on: https://chromium-review.googlesource.com/923353Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537665}
parent 1c0d3de1
......@@ -1095,9 +1095,9 @@ void ResourceScheduler::OnClientDeleted(int child_id, int route_id) {
// navigations, async revalidations and detachable requests after
// OnClientDeleted() returns.
RequestSet client_unowned_requests = client->StartAndRemoveAllRequests();
for (RequestSet::iterator it = client_unowned_requests.begin();
it != client_unowned_requests.end(); ++it) {
unowned_requests_.insert(*it);
for (RequestSet::iterator request_it = client_unowned_requests.begin();
request_it != client_unowned_requests.end(); ++request_it) {
unowned_requests_.insert(*request_it);
}
delete client;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment