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

Issue 2753013002: DCHECK that the security origin for a media request isn't empty (Closed)

Created:
3 years, 9 months ago by raymes
Modified:
3 years, 8 months ago
Reviewers:
Sergey Ulanov, kinuko
CC:
chromium-reviews, chfremer+watch_chromium.org, feature-media-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DCHECK that the security origin for a media request isn't empty Currently we return an error if the origin for a media request is empty. However it doesn't appear that this codepath can be reached even by following the instructions on the comment associated with the code. Add a DCHECK that this can't happen instead. The enum value isn't removed because it's used in a histogram, instead it's renamed with _DEPRECATED. We may also want to use it at a later time. BUG=596786 Review-Url: https://codereview.chromium.org/2753013002 Cr-Commit-Position: refs/heads/master@{#462259} Committed: https://chromium.googlesource.com/chromium/src/+/ba45071136a37deb60e5ce17d25432a7f2e9aeae

Patch Set 1 #

Patch Set 2 : DCHECK that the security origin for a media request isn't empty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -9 lines) Patch
M chrome/browser/media/webrtc/media_permission.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M content/public/common/media_stream_request.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (14 generated)
raymes
3 years, 8 months ago (2017-04-04 03:06:28 UTC) #8
Sergey Ulanov
lgtm
3 years, 8 months ago (2017-04-04 16:59:30 UTC) #12
raymes
+kinuko for content/public. I actually only just realized that the enum lived in content/public. If ...
3 years, 8 months ago (2017-04-04 21:55:29 UTC) #14
kinuko
lgtm
3 years, 8 months ago (2017-04-05 07:53:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2753013002/20001
3 years, 8 months ago (2017-04-05 21:48:53 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 23:11:52 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ba45071136a37deb60e5ce17d254...

Powered by Google App Engine
This is Rietveld 408576698