summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/infobar_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/infobar_controller.mm')
-rw-r--r--chrome/browser/cocoa/infobar_controller.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/infobar_controller.mm b/chrome/browser/cocoa/infobar_controller.mm
index 3997074..8ccc9c5 100644
--- a/chrome/browser/cocoa/infobar_controller.mm
+++ b/chrome/browser/cocoa/infobar_controller.mm
@@ -244,7 +244,10 @@ const float kAnimateCloseDuration = 0.12;
}
- (void)removeInfoBar {
- DCHECK(delegate_);
+ // TODO(rohitrao): This method can be called even if the infobar has already
+ // been removed and |delegate_| is NULL. Is there a way to rewrite the code
+ // so that inner event loops don't cause us to try and remove the infobar
+ // twice? http://crbug.com/54253
[containerController_ removeDelegate:delegate_];
}