summaryrefslogtreecommitdiffstats
path: root/chrome/browser/infobars/infobar_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/infobars/infobar_delegate.cc')
-rw-r--r--chrome/browser/infobars/infobar_delegate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/infobars/infobar_delegate.cc b/chrome/browser/infobars/infobar_delegate.cc
index 5a69707..db645f2 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) {