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

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

Issue 230453004: Remove InfoBarDelegate::web_contents() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android 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.h
diff --git a/chrome/browser/extensions/extension_infobar_delegate.h b/chrome/browser/extensions/extension_infobar_delegate.h
index b9a337f7401e894867c89bd8db152edfc316a85f..5d8488c1ece4621ce3a57ff5d2b128d5a0161b8b 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.h
+++ b/chrome/browser/extensions/extension_infobar_delegate.h
@@ -13,6 +13,10 @@
class Browser;
class GURL;
+namespace content {
+class WebContents;
+}
+
namespace extensions {
class Extension;
class ExtensionViewHost;
@@ -41,6 +45,9 @@ class ExtensionInfoBarDelegate : public InfoBarDelegate,
bool closing() const { return closing_; }
+ // Returns the WebContents associated with the ExtensionInfoBarDelegate.
+ content::WebContents* GetWebContents();
+
private:
ExtensionInfoBarDelegate(Browser* browser,
const extensions::Extension* extension,

Powered by Google App Engine
This is Rietveld 408576698