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

Unified Diff: chrome/browser/media/protected_media_identifier_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/media/protected_media_identifier_infobar_delegate.cc
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate.cc b/chrome/browser/media/protected_media_identifier_infobar_delegate.cc
index daccea1a23c283ad5ee64297a22079dc95a2cce8..d0337c5db2e2a88d9c14ee371fbc525cf58a2189 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate.cc
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate.cc
@@ -62,8 +62,10 @@ bool ProtectedMediaIdentifierInfoBarDelegate::Accept() {
void ProtectedMediaIdentifierInfoBarDelegate::SetPermission(
bool update_content_setting,
bool allowed) {
+ content::WebContents* web_contents =
+ InfoBarService::WebContentsFromInfoBar(infobar());
controller_->OnPermissionSet(id_, requesting_frame_,
- web_contents()->GetLastCommittedURL(),
+ web_contents->GetLastCommittedURL(),
update_content_setting, allowed);
}
« no previous file with comments | « chrome/browser/media/midi_permission_infobar_delegate.cc ('k') | chrome/browser/nacl_host/nacl_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698