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

Unified Diff: chrome/browser/ui/android/content_settings/popup_blocked_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/ui/android/content_settings/popup_blocked_infobar_delegate.cc
diff --git a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
index 62a594066747d9cfc24a7b66cb7ca501f862bc94..6fd09d84fa12ad39b1416ce434e278e5c641bbb6 100644
--- a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
+++ b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
@@ -99,8 +99,10 @@ bool PopupBlockedInfoBarDelegate::Accept() {
url_, url_, CONTENT_SETTINGS_TYPE_POPUPS, CONTENT_SETTING_ALLOW);
// Launch popups.
+ content::WebContents* web_contents =
+ InfoBarService::WebContentsFromInfoBar(infobar());
PopupBlockerTabHelper* popup_blocker_helper =
- PopupBlockerTabHelper::FromWebContents(web_contents());
+ PopupBlockerTabHelper::FromWebContents(web_contents);
DCHECK(popup_blocker_helper);
PopupBlockerTabHelper::PopupIdMap blocked_popups =
popup_blocker_helper->GetBlockedPopupRequests();

Powered by Google App Engine
This is Rietveld 408576698