Index: chrome/browser/media/media_stream_infobar_delegate.cc |
diff --git a/chrome/browser/media/media_stream_infobar_delegate.cc b/chrome/browser/media/media_stream_infobar_delegate.cc |
index 0698d09756be2278ee098168f20a80e30f9cd5e3..f3059d503e965ba2f7f900d9fb1e8ba50106ccfc 100644 |
--- a/chrome/browser/media/media_stream_infobar_delegate.cc |
+++ b/chrome/browser/media/media_stream_infobar_delegate.cc |
@@ -47,7 +47,7 @@ bool MediaStreamInfoBarDelegate::Create( |
if (!infobar_service) { |
// Deny the request if there is no place to show the infobar, e.g. when |
// the request comes from a background extension page. |
- controller->Deny(false); |
+ controller->Deny(false, content::MEDIA_DEVICE_INVALID_STATE); |
return false; |
} |
@@ -78,7 +78,7 @@ void MediaStreamInfoBarDelegate::InfoBarDismissed() { |
// we don't want WebRTC to be waiting for an answer that will never come. |
UMA_HISTOGRAM_ENUMERATION("Media.DevicePermissionActions", |
kCancel, kPermissionActionsMax); |
- controller_->Deny(false); |
+ controller_->Deny(false, content::MEDIA_DEVICE_PERMISSION_DISMISSED); |
} |
int MediaStreamInfoBarDelegate::GetIconID() const { |
@@ -127,7 +127,7 @@ bool MediaStreamInfoBarDelegate::Accept() { |
bool MediaStreamInfoBarDelegate::Cancel() { |
UMA_HISTOGRAM_ENUMERATION("Media.DevicePermissionActions", |
kDeny, kPermissionActionsMax); |
- controller_->Deny(true); |
+ controller_->Deny(true, content::MEDIA_DEVICE_PERMISSION_DENIED); |
return true; |
} |