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

Issue 502483002: Check policy when checking device access for enumerating devices. (Closed)

Created:
6 years, 4 months ago by Henrik Grunell
Modified:
6 years, 3 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Check policy when checking device access for enumerating devices. * Move out MediaStreamDevicesController::GetDevicePolicy() to plain function in a helper file. * Use that as a check in ProfileIOData::ResourceContext::Allow{Mic,Camera}Access(). BUG=406094

Patch Set 1 #

Patch Set 2 : Added dchecks #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -75 lines) Patch
M chrome/browser/media/media_stream_devices_controller.h View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 8 chunks +12 lines, -64 lines 0 comments Download
A chrome/browser/media/media_stream_devices_helper.h View 1 chunk +24 lines, -0 lines 1 comment Download
A chrome/browser/media/media_stream_devices_helper.cc View 1 chunk +76 lines, -0 lines 1 comment Download
M chrome/browser/profiles/profile_io_data.h View 2 chunks +3 lines, -0 lines 3 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 4 chunks +18 lines, -0 lines 1 comment Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Henrik Grunell
6 years, 4 months ago (2014-08-22 15:26:48 UTC) #1
tommi (sloooow) - chröme
something about modifying ResourceContext gets me nervous :/ https://codereview.chromium.org/502483002/diff/20001/chrome/browser/media/media_stream_devices_helper.cc File chrome/browser/media/media_stream_devices_helper.cc (right): https://codereview.chromium.org/502483002/diff/20001/chrome/browser/media/media_stream_devices_helper.cc#newcode37 chrome/browser/media/media_stream_devices_helper.cc:37: GURL ...
6 years, 4 months ago (2014-08-22 19:42:57 UTC) #2
mmenke
https://codereview.chromium.org/502483002/diff/20001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/502483002/diff/20001/chrome/browser/profiles/profile_io_data.cc#newcode964 chrome/browser/profiles/profile_io_data.cc:964: prefs::kAudioCaptureAllowedUrls) == ALWAYS_ALLOW) { Erm...Aren't we on the IO ...
6 years, 4 months ago (2014-08-22 20:08:52 UTC) #3
Henrik Grunell
https://codereview.chromium.org/502483002/diff/20001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://codereview.chromium.org/502483002/diff/20001/chrome/browser/profiles/profile_io_data.h#newcode423 chrome/browser/profiles/profile_io_data.h:423: void set_profile(Profile* profile); On 2014/08/22 19:42:56, tommi wrote: > ...
6 years, 4 months ago (2014-08-25 08:21:46 UTC) #4
Henrik Grunell
6 years, 3 months ago (2014-08-28 15:25:34 UTC) #5
Message was sent while issue was closed.
Closing this CL in favor of https://codereview.chromium.org/483523006/.

Powered by Google App Engine
This is Rietveld 408576698