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

Unified Diff: chrome/browser/media/midi_permission_infobar_delegate.cc

Issue 230453004: Remove InfoBarDelegate::web_contents() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/midi_permission_infobar_delegate.cc
diff --git a/chrome/browser/media/midi_permission_infobar_delegate.cc b/chrome/browser/media/midi_permission_infobar_delegate.cc
index 5b74e4be442a11cc51d43c68fc417c80a0a27b79..28fd7a8c642de0fdc77ac75bd56beb9f44b5cfbf 100644
--- a/chrome/browser/media/midi_permission_infobar_delegate.cc
+++ b/chrome/browser/media/midi_permission_infobar_delegate.cc
@@ -93,6 +93,8 @@ bool MidiPermissionInfoBarDelegate::Cancel() {
void MidiPermissionInfoBarDelegate::SetPermission(bool update_content_setting,
bool allowed) {
- controller_->OnPermissionSet(id_, requesting_frame_, web_contents()->GetURL(),
+ content::WebContents* web_contents =
+ InfoBarService::WebContentsFromInfoBar(infobar());
+ controller_->OnPermissionSet(id_, requesting_frame_, web_contents->GetURL(),
update_content_setting, allowed);
}

Powered by Google App Engine
This is Rietveld 408576698