Commit 8b653e79 authored by Yutaka Hirano's avatar Yutaka Hirano Committed by Commit Bot

Add CHECKs to investigate ResourceScheduler crashes

Bug: 873959
Change-Id: I00d1350390d8e9083cf6dcb6fb0d5d8556d49c0e
Reviewed-on: https://chromium-review.googlesource.com/c/1309395Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604169}
parent 7cdaafca
......@@ -1088,9 +1088,13 @@ void ResourceScheduler::OnClientDeleted(int child_id, int route_id) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
ClientId client_id = MakeClientId(child_id, route_id);
ClientMap::iterator it = client_map_.find(client_id);
DCHECK(it != client_map_.end());
// TODO(crbug.com/873959): Turns this CHECK to DCHECK once the investigation
// is done.
CHECK(it != client_map_.end());
Client* client = it->second.get();
// TODO(crbug.com/873959): Remove this CHECK once the investigation is done.
CHECK(client);
// ResourceDispatcherHost cancels all requests except for cross-renderer
// navigations, async revalidations and detachable requests after
// OnClientDeleted() returns.
......
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