summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-22 06:07:03 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-22 06:07:03 +0000
commit2134efb0a545408fa04ba635e313d3bb2e88427b (patch)
tree587171cecf8a2d2fe66528293df52f07fabc85ce /chrome/browser
parent998e51f6531af4f086aaaf5a43373f06b8dbcbe5 (diff)
downloadchromium_src-2134efb0a545408fa04ba635e313d3bb2e88427b.zip
chromium_src-2134efb0a545408fa04ba635e313d3bb2e88427b.tar.gz
chromium_src-2134efb0a545408fa04ba635e313d3bb2e88427b.tar.bz2
Possible fix / workaround for issue where infobar fails to show
BUG=41712 TEST=as per bug comment 8 http://crbug.com/41712#c8 Review URL: http://codereview.chromium.org/1679002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45295 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/cocoa/infobar_container_controller.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/infobar_container_controller.mm b/chrome/browser/cocoa/infobar_container_controller.mm
index 2d8fdd5..174c76b 100644
--- a/chrome/browser/cocoa/infobar_container_controller.mm
+++ b/chrome/browser/cocoa/infobar_container_controller.mm
@@ -123,7 +123,8 @@ class InfoBarNotificationObserver : public NotificationObserver {
- (void)tabDetachedWithContents:(TabContents*)contents
atIndex:(NSInteger)index {
- [self changeTabContents:NULL];
+ if (currentTabContents_ == contents)
+ [self changeTabContents:NULL];
}
- (void)resizeView:(NSView*)view newHeight:(CGFloat)height {