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

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

Issue 230453004: Remove InfoBarDelegate::web_contents() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 8 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 f5ae9680e6535c735dd53e0ce3b47aa78823fe7b..44096ca8af1ccf6517453dcdb9bde4295f63b3dd 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.cc
+++ b/chrome/browser/extensions/extension_infobar_delegate.cc
@@ -57,6 +57,10 @@ ExtensionInfoBarDelegate::ExtensionInfoBarDelegate(
height_ = InfoBar::kDefaultBarTargetHeight;
}
+content::WebContents* ExtensionInfoBarDelegate::GetWebContents() {
+ return InfoBarService::WebContentsFromInfoBar(infobar());
+}
+
// ExtensionInfoBarDelegate::CreateInfoBar() is implemented in platform-specific
// files.
« no previous file with comments | « chrome/browser/extensions/extension_infobar_delegate.h ('k') | chrome/browser/geolocation/geolocation_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698