DescriptionPrevent imbalanced keepalive counts in ProcessManager
URLRequests can be canceled (e.g. on destruction) before
they're ever started, meaning that a NetworkDelegate
may be notified of request completion without ever being
notified of request start.
extensions::ProcessManager was making the incorrect assumption
that this couldn't happen (i.e. that a completion notification
must always follow a corresponding start notification), and was
indiscriminately decrementing keepalive count on all URLRequest
completion notifications.
This CL fixes the glitch.
BUG=535716
R=rdevlin.cronin@chromium.org
Committed: https://crrev.com/e570329ab73fd7a9fffba9466295cf2d0c010285
Cr-Commit-Position: refs/heads/master@{#351198}
Patch Set 1 #Patch Set 2 : add a test! #
Total comments: 4
Patch Set 3 : nits #
Messages
Total messages: 14 (3 generated)
|