Some ui tests would crash when the browser was closed.
The problem was related to an infobar (the default browser one) showing.
When the tab is closed, InfoBarClosed is called on the infobar delegates, triggering a delete of the delegate. Then a notification that the tab is destroyed is sent, causing the tab contents to layout its infobars accessing the deleted delegates.

BUG=12668
TEST=All UI tests should pass (especially the LoginPromptTest ones).
     Make IE your default browser, start Chrome. The default browser infobar should show. Close the tab.

Review URL: http://codereview.chromium.org/113906

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17021 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed