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

Unified Diff: chrome/browser/permissions/grouped_permission_infobar_delegate.cc

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI tweaking and rebase Created 4 years, 4 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/permissions/grouped_permission_infobar_delegate.cc
diff --git a/chrome/browser/permissions/grouped_permission_infobar_delegate.cc b/chrome/browser/permissions/grouped_permission_infobar_delegate.cc
index 46795c43fa3350fc94c9536e35f385514b60bdf6..1081e9bdeee6b20500cdfe1f285ced66bd44b097 100644
--- a/chrome/browser/permissions/grouped_permission_infobar_delegate.cc
+++ b/chrome/browser/permissions/grouped_permission_infobar_delegate.cc
@@ -62,6 +62,8 @@ int GroupedPermissionInfoBarDelegate::GetIconIdForPermission(int index) const {
return IDR_INFOBAR_MEDIA_STREAM_MIC;
} else if (type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA) {
return IDR_INFOBAR_MEDIA_STREAM_CAMERA;
+ } else if (type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_SCREEN) {
+ return IDR_INFOBAR_MEDIA_STREAM_SCREEN;
}
return IDR_INFOBAR_WARNING;
}
@@ -71,7 +73,9 @@ base::string16 GroupedPermissionInfoBarDelegate::GetMessageTextFragment(
DCHECK(index >= 0 && index < static_cast<int>(types_.size()));
ContentSettingsType type = types_[index];
int message_id;
- if (type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC) {
+ if (type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_SCREEN) {
+ message_id = IDS_MEDIA_CAPTURE_SCREEN_PERMISSION_FRAGMENT;
+ } else if (type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC) {
message_id = IDS_MEDIA_CAPTURE_AUDIO_ONLY_PERMISSION_FRAGMENT;
} else if (type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA) {
message_id = IDS_MEDIA_CAPTURE_VIDEO_ONLY_PERMISSION_FRAGMENT;

Powered by Google App Engine
This is Rietveld 408576698