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

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

Issue 4767001: Make TabContents own its infobar delegates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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_infobar_delegate.cc
===================================================================
--- chrome/browser/extensions/extension_infobar_delegate.cc (revision 65711)
+++ chrome/browser/extensions/extension_infobar_delegate.cc (working copy)
@@ -18,10 +18,8 @@
const Extension* extension,
const GURL& url)
: InfoBarDelegate(tab_contents),
- observer_(NULL),
extension_(extension),
- tab_contents_(tab_contents),
- closing_(false) {
+ tab_contents_(tab_contents) {
ExtensionProcessManager* manager =
browser->profile()->GetExtensionProcessManager();
extension_host_.reset(manager->CreateInfobar(url, browser));
@@ -34,8 +32,6 @@
}
ExtensionInfoBarDelegate::~ExtensionInfoBarDelegate() {
- if (observer_)
- observer_->OnDelegateDeleted();
}
bool ExtensionInfoBarDelegate::EqualsDelegate(InfoBarDelegate* delegate) const {
@@ -59,7 +55,7 @@
}
ExtensionInfoBarDelegate*
-ExtensionInfoBarDelegate::AsExtensionInfoBarDelegate() {
+ ExtensionInfoBarDelegate::AsExtensionInfoBarDelegate() {
return this;
}

Powered by Google App Engine
This is Rietveld 408576698