Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: chrome/browser/extensions/extension_disabled_infobar_delegate.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698