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

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

Issue 228293004: InfoBarService inherits from InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace 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.cc
diff --git a/chrome/browser/infobars/infobar_delegate.cc b/chrome/browser/infobars/infobar_delegate.cc
index 5a6970758935c1eeae2e58a2472febcb53205db5..db645f2524814effb83aa45db411720550ed346b 100644
--- a/chrome/browser/infobars/infobar_delegate.cc
+++ b/chrome/browser/infobars/infobar_delegate.cc
@@ -108,8 +108,7 @@ gfx::Image InfoBarDelegate::GetIcon() const {
}
content::WebContents* InfoBarDelegate::web_contents() {
- return (infobar_ && infobar_->owner()) ?
- infobar_->owner()->web_contents() : NULL;
+ return InfoBarService::WebContentsFromInfoBar(infobar_);
}
InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) {

Powered by Google App Engine
This is Rietveld 408576698