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

Unified Diff: chrome/browser/media/webrtc/media_stream_devices_controller.cc

Issue 2909453002: Support persist toggle in PermissionRequestManager path on Android (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/permissions/grouped_permission_infobar_delegate_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc/media_stream_devices_controller.cc
diff --git a/chrome/browser/media/webrtc/media_stream_devices_controller.cc b/chrome/browser/media/webrtc/media_stream_devices_controller.cc
index ba0bd3de283e51792fd1fab73d56f099e0844b23..ca998fe3a4a2e74f03c6f1bb56f869c233433346 100644
--- a/chrome/browser/media/webrtc/media_stream_devices_controller.cc
+++ b/chrome/browser/media/webrtc/media_stream_devices_controller.cc
@@ -293,7 +293,11 @@ MediaStreamDevicesController::Request::GetPermissionRequestType() const {
bool MediaStreamDevicesController::Request::ShouldShowPersistenceToggle()
const {
- return PermissionUtil::ShouldShowPersistenceToggle();
+ // Camera and Mic are handled the same w.r.t. showing the persistence toggle,
+ // just check camera here for simplicity (this class will be removed once the
+ // Android and media refactorings are finished).
+ return PermissionUtil::ShouldShowPersistenceToggle(
+ CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA);
}
// Implementation of PermissionPromptDelegate which actually shows a permission
« no previous file with comments | « no previous file | chrome/browser/permissions/grouped_permission_infobar_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698