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

Unified Diff: chrome/browser/infobars/infobar_delegate.h

Issue 230453004: Remove InfoBarDelegate::web_contents() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/infobars/infobar_delegate.h
diff --git a/chrome/browser/infobars/infobar_delegate.h b/chrome/browser/infobars/infobar_delegate.h
index 48b4e27694b47f167419934d10f33ecb11e7f042..3411967c26ad6aeecf8b99a28631a03df02f6174 100644
--- a/chrome/browser/infobars/infobar_delegate.h
+++ b/chrome/browser/infobars/infobar_delegate.h
@@ -22,10 +22,6 @@ class ThemeInstalledInfoBarDelegate;
class ThreeDAPIInfoBarDelegate;
class TranslateInfoBarDelegate;
-namespace content {
-class WebContents;
-}
-
namespace gfx {
class Image;
}
@@ -125,12 +121,6 @@ class InfoBarDelegate {
// empty, no icon is shown.
virtual gfx::Image GetIcon() const;
- // This trivial getter is defined out-of-line in order to avoid needing to
- // #include infobar.h, which would lead to circular #includes.
- // TODO(droger): Remove this function and have callers use
- // InfoBarService::WebContentsFromInfoBar() instead.
- content::WebContents* web_contents();
-
protected:
InfoBarDelegate();

Powered by Google App Engine
This is Rietveld 408576698