Index: chrome/browser/media/media_stream_infobar_delegate_android.cc |
diff --git a/chrome/browser/media/media_stream_infobar_delegate_android.cc b/chrome/browser/media/media_stream_infobar_delegate_android.cc |
index 2bfc3a0671589675ffa7ebc652f38a7ccaf25811..5a806fb93d257b1fec10a080201cfb922bbbcb57 100644 |
--- a/chrome/browser/media/media_stream_infobar_delegate_android.cc |
+++ b/chrome/browser/media/media_stream_infobar_delegate_android.cc |
@@ -38,6 +38,8 @@ std::vector<ContentSettingsType> GetContentSettingsTypes( |
types.push_back(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC); |
if (controller->IsAskingForVideo()) |
types.push_back(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA); |
+ if (controller->IsAskingForScreenCapture()) |
+ types.push_back(CONTENT_SETTINGS_TYPE_MEDIASTREAM_SCREEN); |
return types; |
} |
@@ -85,7 +87,8 @@ MediaStreamInfoBarDelegateAndroid::MediaStreamInfoBarDelegateAndroid( |
GetContentSettingsTypes(controller.get())), |
controller_(std::move(controller)) { |
DCHECK(controller_.get()); |
- DCHECK(controller_->IsAskingForAudio() || controller_->IsAskingForVideo()); |
+ DCHECK(controller_->IsAskingForAudio() || controller_->IsAskingForVideo() || |
+ controller_->IsAskingForScreenCapture()); |
} |
void MediaStreamInfoBarDelegateAndroid::InfoBarDismissed() { |