Index: chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
diff --git a/chrome/browser/extensions/extension_disabled_infobar_delegate.cc b/chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
index 6dbd444786c310ba51304f068b1fb7c567eab72c..ef8999e27af0697240849eb21fb4d4df99d00650 100644 |
--- a/chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
+++ b/chrome/browser/extensions/extension_disabled_infobar_delegate.cc |
@@ -9,6 +9,7 @@ |
#include "base/utf_string_conversions.h" |
#include "chrome/browser/extensions/extension_install_ui.h" |
#include "chrome/browser/extensions/extension_service.h" |
+#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
@@ -183,8 +184,8 @@ void ShowExtensionDisabledUI(ExtensionService* service, Profile* profile, |
if (!tab_contents) |
return; |
- tab_contents->AddInfoBar(new ExtensionDisabledInfobarDelegate( |
- tab_contents, service, extension)); |
+ tab_contents->infobar_tab_helper()->AddInfoBar( |
+ new ExtensionDisabledInfobarDelegate(tab_contents, service, extension)); |
} |
void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile, |