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

Issue 584383002: Stricter default RequestMediaAccessPermission and CheckMediaAccessPermission implementations (Closed)

Created:
6 years, 3 months ago by Henrik Grunell
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Stricter default RequestMediaAccessPermission and CheckMediaAccessPermission implementations. We should not end up in the default implementation and want to track if this happens. * Add new media stream result, "not supported". * Add an error log in RenderFrameHostDelegate and WebContentsDelegate default implementations of the above functions and in Request... also use the new result. BUG=416233 NOTRY=true Committed: https://crrev.com/dea7b93642a46bdaaecad4a438bba1bfc8cc8516 Cr-Commit-Position: refs/heads/master@{#296779}

Patch Set 1 #

Patch Set 2 : Add comments. #

Total comments: 4

Patch Set 3 : Code review: made delegate interface functions pure virtual. #

Patch Set 4 : Rebase #

Patch Set 5 : Back to patch set #2. Also rebased. #

Patch Set 6 : New result for not supported. #

Total comments: 6

Patch Set 7 : Code review. Rebase. #

Total comments: 4

Patch Set 8 : Fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M content/browser/frame_host/render_frame_host_delegate.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M content/public/common/media_stream_request.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
Henrik Grunell
jam@ as owner. tommi@ as media request/check knowledgeable. The idea behind this change is the ...
6 years, 3 months ago (2014-09-20 12:10:08 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/584383002/diff/20001/content/browser/frame_host/render_frame_host_delegate.cc File content/browser/frame_host/render_frame_host_delegate.cc (right): https://codereview.chromium.org/584383002/diff/20001/content/browser/frame_host/render_frame_host_delegate.cc#newcode42 content/browser/frame_host/render_frame_host_delegate.cc:42: NOTREACHED(); I'm not sure about this since there is ...
6 years, 3 months ago (2014-09-20 14:25:38 UTC) #3
Henrik Grunell
Wow, that was a lot of classes inheriting from WebContentsDelegate. Given the large amount, I'm ...
6 years, 3 months ago (2014-09-22 08:49:52 UTC) #4
jam
this runs counter to the content api guidelines: http://www.chromium.org/developers/content-module/content-api which is that interfaces implemented by ...
6 years, 3 months ago (2014-09-23 05:06:40 UTC) #5
tommi (sloooow) - chröme
Sounds like you're saying that there are two things going against the guidelines: - pure ...
6 years, 3 months ago (2014-09-23 08:45:43 UTC) #6
Henrik Grunell
Hmm, it's clearly against the guidelines to have WebContentsDelegate functions pure virtual. Two options: 1. ...
6 years, 3 months ago (2014-09-23 13:05:09 UTC) #7
tommi (sloooow) - chröme
On 2014/09/23 13:05:09, Henrik Grunell wrote: > Hmm, it's clearly against the guidelines to have ...
6 years, 3 months ago (2014-09-23 13:16:58 UTC) #8
Henrik Grunell
Went back to patch set #2 and introduced new result "not supported". Added isherman@ for ...
6 years, 3 months ago (2014-09-24 20:08:53 UTC) #10
jam
https://codereview.chromium.org/584383002/diff/100001/content/browser/frame_host/render_frame_host_delegate.h File content/browser/frame_host/render_frame_host_delegate.h (right): https://codereview.chromium.org/584383002/diff/100001/content/browser/frame_host/render_frame_host_delegate.h#newcode129 content/browser/frame_host/render_frame_host_delegate.h:129: // Delegates that expect this to be ever called, ...
6 years, 3 months ago (2014-09-24 20:50:04 UTC) #11
Ilya Sherman
histograms.xml lgtm
6 years, 3 months ago (2014-09-24 23:15:38 UTC) #12
Henrik Grunell
John, ptal. https://codereview.chromium.org/584383002/diff/100001/content/browser/frame_host/render_frame_host_delegate.h File content/browser/frame_host/render_frame_host_delegate.h (right): https://codereview.chromium.org/584383002/diff/100001/content/browser/frame_host/render_frame_host_delegate.h#newcode129 content/browser/frame_host/render_frame_host_delegate.h:129: // Delegates that expect this to be ...
6 years, 2 months ago (2014-09-25 18:28:38 UTC) #13
jam
lgtm with comments https://codereview.chromium.org/584383002/diff/120001/content/browser/frame_host/render_frame_host_delegate.cc File content/browser/frame_host/render_frame_host_delegate.cc (right): https://codereview.chromium.org/584383002/diff/120001/content/browser/frame_host/render_frame_host_delegate.cc#newcode42 content/browser/frame_host/render_frame_host_delegate.cc:42: LOG_F(ERROR) << "Not supported."; this looks ...
6 years, 2 months ago (2014-09-25 18:50:27 UTC) #14
Henrik Grunell
https://codereview.chromium.org/584383002/diff/120001/content/browser/frame_host/render_frame_host_delegate.cc File content/browser/frame_host/render_frame_host_delegate.cc (right): https://codereview.chromium.org/584383002/diff/120001/content/browser/frame_host/render_frame_host_delegate.cc#newcode42 content/browser/frame_host/render_frame_host_delegate.cc:42: LOG_F(ERROR) << "Not supported."; On 2014/09/25 18:50:27, jam wrote: ...
6 years, 2 months ago (2014-09-25 18:54:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584383002/140001
6 years, 2 months ago (2014-09-25 18:55:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584383002/140001
6 years, 2 months ago (2014-09-25 20:13:19 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:140001) as b723372ef4505f5cd50f62ada92f0d3451994082
6 years, 2 months ago (2014-09-25 20:14:43 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 20:15:22 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/dea7b93642a46bdaaecad4a438bba1bfc8cc8516
Cr-Commit-Position: refs/heads/master@{#296779}

Powered by Google App Engine
This is Rietveld 408576698