| 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);
|
| }
|
|
|
|
|