Don't increment lazy keep alive count on redirects.
commit11444fcf5cdeae74f9ebf6b22525882b4de41206
authormsimonides@opera.com <msimonides@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 10:33:19 +0000 (13 10:33 +0000)
committermsimonides@opera.com <msimonides@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 10:34:32 +0000 (13 10:34 +0000)
tree5032529780eb9768a180998162a3f2cb497f594e
parenta69c12d474826e20e8402423b02d389df1218fc3
Don't increment lazy keep alive count on redirects.

The ChromeExtensionNetworkDelegate::OnBeforeURLRequest is called for new
requests as well as for redirects. This results in the lazy keep alive
count in extensions to be incremented several times if there is a redirect
but then it is decremented only ones when the request finishes. In consequence
the lazy extension page never shuts down because the count never reaches
zero.

With this commit requests that have been redirected at least once are
ignored when incrementing the keep alive count.

BUG=175279

Review URL: https://codereview.chromium.org/464933002

Cr-Commit-Position: refs/heads/master@{#289260}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289260 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/net/chrome_extensions_network_delegate.cc