From f6cd4c9c51a22a6e4b2f73c9bcb924e3013283a2 Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Mon, 13 Sep 2010 18:48:33 +0000 Subject: [Mac] Remove an InfobarController DCHECK that doesn't belong. BUG=52524 TEST=Repro steps in bug. DCHECK should not fire in Debug builds. Review URL: http://codereview.chromium.org/3322004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59252 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/infobar_controller.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/browser/cocoa') 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_]; } -- cgit v1.1