Remove NPChannelBase from cache on error.
commit009e97b748a2fc4a9efc54bfeb48a76120ae2936
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 8 Jun 2012 20:44:31 +0000 (8 20:44 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 8 Jun 2012 20:44:31 +0000 (8 20:44 +0000)
tree51925e2615a2cf0c3a7bb3e4c084e84f70dd56f3
parentb336ce671ca31ac7eb0e32e2a6fb8822bb9bcbd7
Remove NPChannelBase from cache on error.

Normal channel shutdown (as for navigation) goes via RemoveRoute(),
which removes the channel from the cache.  It looks like
OnChannelError() is expected to call RemoveRoute() at some point
during cleanup, but sometimes the channel is left in the cache and
re-vended (as measured by previous instrumentation).  Defensively
rename channels which see an error so that they aren't found in the
cache in the future.

BUG=97285
TEST=no user-visible change

Review URL: https://chromiumcodereview.appspot.com/10544075

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141279 0039d316-1c4b-4281-b951-d872f2087c98
content/common/np_channel_base.cc