diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 18:48:33 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 18:48:33 +0000 |
commit | f6cd4c9c51a22a6e4b2f73c9bcb924e3013283a2 (patch) | |
tree | 22f5ed74463daaca5b1d7ec27bea7a4c631631e3 /chrome/browser/cocoa | |
parent | f0eb8fe0a5426d157b02326d94c6c76ff6f6b7bc (diff) | |
download | chromium_src-f6cd4c9c51a22a6e4b2f73c9bcb924e3013283a2.zip chromium_src-f6cd4c9c51a22a6e4b2f73c9bcb924e3013283a2.tar.gz chromium_src-f6cd4c9c51a22a6e4b2f73c9bcb924e3013283a2.tar.bz2 |
[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
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/infobar_controller.mm | 5 |
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_]; } |