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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 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_infobar_delegate.cc
diff --git a/chrome/browser/extensions/extension_infobar_delegate.cc b/chrome/browser/extensions/extension_infobar_delegate.cc
index 601da471cd15b2afb6a208246c8f5ba950dbf307..5142d5b60a98b6f94bec1dfc4200cb63d54e3c41 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.cc
+++ b/chrome/browser/extensions/extension_infobar_delegate.cc
@@ -40,6 +40,7 @@ ExtensionInfoBarDelegate::ExtensionInfoBarDelegate(
#if defined(TOOLKIT_VIEWS)
browser_(browser),
#endif
+ web_contents_(web_contents),
extension_(extension),
closing_(false) {
extension_view_host_.reset(
@@ -89,6 +90,8 @@ ExtensionInfoBarDelegate*
return this;
}
+void ExtensionInfoBarDelegate::CleanUp() { web_contents_ = NULL; }
+
void ExtensionInfoBarDelegate::Observe(
int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698