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

Issue 588153003: Remove MediaSettingChangedInfobar and show latest state in bubble (Closed)

Created:
6 years, 3 months ago by robwu
Modified:
6 years, 2 months ago
CC:
chromium-reviews, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove MediaSettingChanged infobar and show the latest state of the media stream settings in the content settings bubble. The reload infobar is no longer displayed when the media stream content settings change. Instead, a small hint is displayed in the bubble when it is re-opened after changing a media stream setting. This hint is always displayed when the camera/microphone permission changes. When the media device preference changes, the hint is only displayed if there was at least one active media capture. Also added a bunch of tests for the media menu because they had no test coverage. BUG=405522 TEST=ContentSettingBubbleModelTest.*Media* Committed: https://crrev.com/1fb9a9bdf67911afcd8579c446daed6015a86103 Cr-Commit-Position: refs/heads/master@{#296913}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Address nits, add tests, refactor to use bitmask instead of enum. #

Total comments: 24

Patch Set 3 : nits. Cleanup #

Patch Set 4 : nits #

Patch Set 5 : Remove redundant is_cam #

Total comments: 8

Patch Set 6 : Small nits #

Patch Set 7 : Fix test failures #

Patch Set 8 : Fix MSVC warning C4800 #

Patch Set 9 : Fix MSVC warning C4800 #2 #

Patch Set 10 : switch -> if #

Messages

Total messages: 34 (12 generated)
robwu
6 years, 3 months ago (2014-09-22 20:33:01 UTC) #2
Peter Kasting
Optional: We could perhaps simplify some of this code even more if e.g. the MicrophoneCameraState ...
6 years, 3 months ago (2014-09-22 23:11:23 UTC) #3
robwu
Addressed all nits, added more tests and refactored to use bitmask instead of enums. https://codereview.chromium.org/588153003/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc ...
6 years, 3 months ago (2014-09-24 00:03:05 UTC) #4
Peter Kasting
https://codereview.chromium.org/588153003/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/588153003/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode287 chrome/browser/content_settings/tab_specific_content_settings.cc:287: // setting to kick in without reloading the page, ...
6 years, 3 months ago (2014-09-24 01:33:00 UTC) #5
robwu
https://codereview.chromium.org/588153003/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/588153003/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode287 chrome/browser/content_settings/tab_specific_content_settings.cc:287: // setting to kick in without reloading the page, ...
6 years, 3 months ago (2014-09-24 23:38:45 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/588153003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/588153003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode485 chrome/browser/content_settings/tab_specific_content_settings.cc:485: if (microphone_camera_state_ == MICROPHONE_CAMERA_NOT_ACCESSED) On 2014/09/24 23:38:44, robwu ...
6 years, 3 months ago (2014-09-25 00:53:25 UTC) #7
robwu
+bauerb for OWNERS review of chrome/browser/content_settings/tab_specific_content*.cc https://codereview.chromium.org/588153003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/588153003/diff/20001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode485 chrome/browser/content_settings/tab_specific_content_settings.cc:485: if (microphone_camera_state_ == ...
6 years, 3 months ago (2014-09-25 08:57:57 UTC) #9
Peter Kasting
https://codereview.chromium.org/588153003/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model.cc File chrome/browser/ui/content_settings/content_setting_bubble_model.cc (right): https://codereview.chromium.org/588153003/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model.cc#newcode687 chrome/browser/ui/content_settings/content_setting_bubble_model.cc:687: else if (is_cam) On 2014/09/25 08:57:57, robwu wrote: > ...
6 years, 3 months ago (2014-09-25 09:00:06 UTC) #10
robwu
https://codereview.chromium.org/588153003/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model.cc File chrome/browser/ui/content_settings/content_setting_bubble_model.cc (right): https://codereview.chromium.org/588153003/diff/20001/chrome/browser/ui/content_settings/content_setting_bubble_model.cc#newcode687 chrome/browser/ui/content_settings/content_setting_bubble_model.cc:687: else if (is_cam) On 2014/09/25 09:00:06, Peter Kasting wrote: ...
6 years, 3 months ago (2014-09-25 09:12:18 UTC) #11
Bernhard Bauer
lgtm https://codereview.chromium.org/588153003/diff/80001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/588153003/diff/80001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode539 chrome/browser/content_settings/tab_specific_content_settings.cc:539: unsigned prev_microphone_camera_state = microphone_camera_state_; Unsigned what? I thought ...
6 years, 2 months ago (2014-09-25 16:18:27 UTC) #12
robwu
https://codereview.chromium.org/588153003/diff/80001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/588153003/diff/80001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode539 chrome/browser/content_settings/tab_specific_content_settings.cc:539: unsigned prev_microphone_camera_state = microphone_camera_state_; On 2014/09/25 16:18:27, Bernhard Bauer ...
6 years, 2 months ago (2014-09-25 19:15:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153003/100001
6 years, 2 months ago (2014-09-25 19:16:27 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/12527)
6 years, 2 months ago (2014-09-25 20:16:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153003/120001
6 years, 2 months ago (2014-09-25 21:44:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153003/120001
6 years, 2 months ago (2014-09-25 21:46:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/65790)
6 years, 2 months ago (2014-09-25 22:47:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153003/140001
6 years, 2 months ago (2014-09-25 22:59:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153003/160001
6 years, 2 months ago (2014-09-26 00:21:29 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/16338) win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/13275)
6 years, 2 months ago (2014-09-26 01:28:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588153003/180001
6 years, 2 months ago (2014-09-26 09:07:42 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:180001) as 5650f22797a286677ec472e4de42ded8f2d5e67f
6 years, 2 months ago (2014-09-26 10:10:14 UTC) #33
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 10:10:47 UTC) #34
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1fb9a9bdf67911afcd8579c446daed6015a86103
Cr-Commit-Position: refs/heads/master@{#296913}

Powered by Google App Engine
This is Rietveld 408576698