Index: chrome/browser/tab_contents/infobar_delegate.cc |
diff --git a/chrome/browser/tab_contents/infobar_delegate.cc b/chrome/browser/tab_contents/infobar_delegate.cc |
index f6d88a808bd487990d9b534fe5ddefb45c33344a..e2b947719d5460db4ec6624ca04af2c577fbe9d8 100644 |
--- a/chrome/browser/tab_contents/infobar_delegate.cc |
+++ b/chrome/browser/tab_contents/infobar_delegate.cc |
@@ -6,6 +6,7 @@ |
#include "base/logging.h" |
#include "build/build_config.h" |
+#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
#include "content/browser/tab_contents/navigation_details.h" |
#include "content/browser/tab_contents/navigation_entry.h" |
@@ -96,6 +97,6 @@ bool InfoBarDelegate::ShouldExpireInternal( |
void InfoBarDelegate::RemoveSelf() { |
if (owner_) { |
TabContentsWrapper::GetCurrentWrapperForContents(owner_)-> |
- RemoveInfoBar(this); // Clears |owner_|. |
+ infobar_tab_helper()->RemoveInfoBar(this); // Clears |owner_|. |
} |
} |