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

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

Issue 2753013002: DCHECK that the security origin for a media request isn't empty (Closed)
Patch Set: DCHECK that the security origin for a media request isn't empty Created 3 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
« no previous file with comments | « no previous file | content/public/common/media_stream_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc/media_permission.cc
diff --git a/chrome/browser/media/webrtc/media_permission.cc b/chrome/browser/media/webrtc/media_permission.cc
index c67abc060a7ee9c8e570590173b4dc98444d741f..ef20c24a8eb5af22f2eff93e443e5cbfc0b5bee5 100644
--- a/chrome/browser/media/webrtc/media_permission.cc
+++ b/chrome/browser/media/webrtc/media_permission.cc
@@ -41,12 +41,7 @@ MediaPermission::MediaPermission(ContentSettingsType content_type,
ContentSetting MediaPermission::GetPermissionStatus(
content::MediaStreamRequestResult* denial_reason) const {
- // Deny the request if the security origin is empty, this happens with
- // file access without |--allow-file-access-from-files| flag.
- if (requesting_origin_.is_empty()) {
- *denial_reason = content::MEDIA_DEVICE_INVALID_SECURITY_ORIGIN;
- return CONTENT_SETTING_BLOCK;
- }
+ DCHECK(!requesting_origin_.is_empty());
PermissionManager* permission_manager = PermissionManager::Get(profile_);
« no previous file with comments | « no previous file | content/public/common/media_stream_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698