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

Issue 678023002: TabSpecificContentSettings no longer knows about MediaStreamDeviceController (Closed)

Created:
6 years, 1 month ago by vabr (Chromium)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, markusheintz_, wjia+watch_chromium.org, mcasas+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

TabSpecificContentSettings no longer knows about MediaStreamDeviceController To prepare TSCS for componentising, this CL removes the knowledge about MSDS out of TSCS, by pulling out MSDS-specific processing from TSCS to MSDS. Some tests had to be changed in a non-trivial way to preserve the coverage, in particular, some TSCS unit-tests needed to become MSDS browsertests (as wiring up everything needed for MSDS would be too messy in a unit test). BUG=387075, 395060 Committed: https://crrev.com/b3a93a6794477a270de3eadccc7d12485649b861 Cr-Commit-Position: refs/heads/master@{#302068}

Patch Set 1 : #

Patch Set 2 : Fix Win complilation error C4800 #

Total comments: 18

Patch Set 3 : Auto #

Patch Set 4 : Ternary operator reformatted #

Patch Set 5 : Remaining style nits addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+600 lines, -264 lines) Patch
M chrome/browser/content_settings/tab_specific_content_settings.h View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 1 chunk +19 lines, -37 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings_unittest.cc View 2 chunks +11 lines, -163 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 4 3 chunks +63 lines, -4 lines 0 comments Download
A chrome/browser/media/media_stream_devices_controller_browsertest.cc View 1 2 3 4 1 chunk +398 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 15 chunks +102 lines, -54 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
vabr (Chromium)
Bernhard, Could you please review this CL, especially the content_settings parts? Shijing, Could you please ...
6 years, 1 month ago (2014-10-28 19:22:33 UTC) #4
vabr (Chromium)
https://codereview.chromium.org/678023002/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/678023002/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode543 chrome/browser/content_settings/tab_specific_content_settings.cc:543: bool mic_blocked = (new_microphone_camera_state & MICROPHONE_BLOCKED) != 0; This ...
6 years, 1 month ago (2014-10-28 20:48:43 UTC) #5
Bernhard Bauer
lgtm https://codereview.chromium.org/678023002/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/678023002/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode543 chrome/browser/content_settings/tab_specific_content_settings.cc:543: bool mic_blocked = (new_microphone_camera_state & MICROPHONE_BLOCKED) != 0; ...
6 years, 1 month ago (2014-10-29 09:35:18 UTC) #6
no longer working on chromium
some nits, looks a good refactoring to TabSpecificContentSettings. https://codereview.chromium.org/678023002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/678023002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc#newcode105 chrome/browser/media/media_stream_devices_controller.cc:105: web_contents->GetBrowserContext())->GetPrefs(); ...
6 years, 1 month ago (2014-10-29 10:09:43 UTC) #7
no longer working on chromium
lgtm after you address the nits.
6 years, 1 month ago (2014-10-29 10:10:07 UTC) #8
vabr (Chromium)
Thanks both of you for the review! Shijing, I pushed back on one of the ...
6 years, 1 month ago (2014-10-29 10:30:23 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/678023002/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/678023002/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode543 chrome/browser/content_settings/tab_specific_content_settings.cc:543: bool mic_blocked = (new_microphone_camera_state & MICROPHONE_BLOCKED) != 0; On ...
6 years, 1 month ago (2014-10-29 13:56:59 UTC) #10
vabr (Chromium)
Shijing, If you find time to consider my reply to the only style comment I ...
6 years, 1 month ago (2014-10-30 09:37:19 UTC) #11
no longer working on chromium
HI vabr, please see reply in line. They are nits, so I don't have strong ...
6 years, 1 month ago (2014-10-30 09:59:19 UTC) #12
vabr (Chromium)
Thank you, Shijing! Given your response, I followed your guidance for the remaining two places ...
6 years, 1 month ago (2014-10-30 10:28:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/678023002/120001
6 years, 1 month ago (2014-10-30 10:29:37 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:120001)
6 years, 1 month ago (2014-10-30 11:14:24 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 11:14:58 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b3a93a6794477a270de3eadccc7d12485649b861
Cr-Commit-Position: refs/heads/master@{#302068}

Powered by Google App Engine
This is Rietveld 408576698