summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/resource_dispatcher_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/resource_dispatcher_host.cc b/chrome/browser/resource_dispatcher_host.cc
index 4b986bc..fa7f1fb 100644
--- a/chrome/browser/resource_dispatcher_host.cc
+++ b/chrome/browser/resource_dispatcher_host.cc
@@ -1933,6 +1933,8 @@ void ResourceDispatcherHost::RemovePendingRequest(int render_process_host_id,
void ResourceDispatcherHost::RemovePendingRequest(
const PendingRequestList::iterator& iter) {
+ size_t num_requests_before = pending_requests_.size();
+
// Notify the login handler that this request object is going away.
ExtraRequestInfo* info = ExtraInfoForRequest(iter->second);
if (info && info->login_handler)
@@ -1944,6 +1946,9 @@ void ResourceDispatcherHost::RemovePendingRequest(
// If we have no more pending requests, then stop the load state monitor
if (pending_requests_.empty())
update_load_states_timer_.Stop();
+
+ size_t num_requests_after = pending_requests_.size();
+ CHECK(num_requests_after == num_requests_before - 1);
}
// URLRequest::Delegate -------------------------------------------------------