Reviewers: Ben Goodger,
Fix issue 6520 by ensuring that InfoBarClosed is called whenever a tab
is closed or a navigation to a URL that is not supported by the current
TabContentsType takes place by invoking it on all InfoBarDelegates from
TabContents::Destroy(), which is the best least-common-denominator I've
found for doing this work. Alternatively I could have made
InfoBarDelegate listen for TAB_CONTENTS_DESTROYED and self-invoke
InfoBarClosed but that seemed unorthodox (relatively speaking).
This prevents InfoBarDelegates from leaking in these cases.
Please review this at http://codereview.chromium.org/18381
SVN Base: svn://chrome-svn/chrome/trunk/src/