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

Issue 10873085: Implement two new policies to control muting the audio I/O. (Closed)

Created:
8 years, 3 months ago by pastarmovj
Modified:
8 years, 3 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, Nirnimesh, dyu1, anantha, oshima+watch_chromium.org, dennis_jeffrey, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Implement two new policies to control muting the audio I/O. BUG=chromium-os:11263 TEST=Manually set the policies in CPanel and observe that no sound is produced/recored on the device. TBR=nirnimesh@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=154692

Patch Set 1 #

Total comments: 50

Patch Set 2 : Addressed comments. #

Total comments: 14

Patch Set 3 : Addressed comments. #

Total comments: 38

Patch Set 4 : Addressed even more comments. #

Total comments: 17

Patch Set 5 : Renamed both policies s/Enabled/Allowed/. #

Total comments: 16

Patch Set 6 : Final cleanup. #

Patch Set 7 : Rebased to ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -31 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 2 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/chromeos/audio/audio_handler.h View 1 2 3 4 5 3 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/audio/audio_handler.cc View 1 2 3 4 5 6 chunks +69 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/audio/audio_mixer.h View 1 2 3 4 1 chunk +23 lines, -1 line 0 comments Download
M chrome/browser/chromeos/audio/audio_mixer_alsa.h View 1 2 3 4 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/chromeos/audio/audio_mixer_alsa.cc View 1 2 3 4 8 chunks +72 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/audio/audio_mixer_cras.h View 1 2 3 4 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/audio/audio_mixer_cras.cc View 1 2 3 4 4 chunks +68 lines, -5 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/volume_controller_browsertest_chromeos.cc View 1 2 3 1 chunk +29 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 2 chunks +12 lines, -1 line 0 comments Download
M chrome/test/functional/policy_test_cases.py View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
pastarmovj
Hi Daniel&Mattias, Please review this CL which adds two new user policies to control whether ...
8 years, 3 months ago (2012-08-27 16:05:52 UTC) #1
Daniel Erat
http://codereview.chromium.org/10873085/diff/1/chrome/browser/chromeos/audio/audio_mixer.h File chrome/browser/chromeos/audio/audio_mixer.h (right): http://codereview.chromium.org/10873085/diff/1/chrome/browser/chromeos/audio/audio_mixer.h#newcode33 chrome/browser/chromeos/audio/audio_mixer.h:33: virtual void SetMuted(bool mute) = 0; nit: document that ...
8 years, 3 months ago (2012-08-27 17:38:34 UTC) #2
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10873085/diff/1/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/10873085/diff/1/chrome/app/policy/policy_templates.json#newcode3162 chrome/app/policy/policy_templates.json:3162: When this policy is set to true, audio output ...
8 years, 3 months ago (2012-08-28 12:24:23 UTC) #3
pastarmovj
Thanks for the fast review to both of you. I hope I have answered all ...
8 years, 3 months ago (2012-08-28 15:11:49 UTC) #4
Daniel Erat
http://codereview.chromium.org/10873085/diff/15001/chrome/browser/chromeos/audio/audio_mixer.h File chrome/browser/chromeos/audio/audio_mixer.h (right): http://codereview.chromium.org/10873085/diff/15001/chrome/browser/chromeos/audio/audio_mixer.h#newcode45 chrome/browser/chromeos/audio/audio_mixer.h:45: virtual bool IsCaptureMuted() = 0; It's "mic" in AudioHandler ...
8 years, 3 months ago (2012-08-28 20:40:51 UTC) #5
pastarmovj
Addressed second round of comments. http://codereview.chromium.org/10873085/diff/15001/chrome/browser/chromeos/audio/audio_mixer.h File chrome/browser/chromeos/audio/audio_mixer.h (right): http://codereview.chromium.org/10873085/diff/15001/chrome/browser/chromeos/audio/audio_mixer.h#newcode45 chrome/browser/chromeos/audio/audio_mixer.h:45: virtual bool IsCaptureMuted() = ...
8 years, 3 months ago (2012-08-29 08:45:05 UTC) #6
Daniel Erat
This looks pretty good to me -- sorry for all the nits. http://codereview.chromium.org/10873085/diff/7016/chrome/browser/chromeos/audio/audio_handler.cc File chrome/browser/chromeos/audio/audio_handler.cc ...
8 years, 3 months ago (2012-08-29 15:37:00 UTC) #7
pastarmovj
Thanks a lot for the early morning reviews, Daniel! Highly appreciate it! http://codereview.chromium.org/10873085/diff/7016/chrome/browser/chromeos/audio/audio_handler.cc File chrome/browser/chromeos/audio/audio_handler.cc ...
8 years, 3 months ago (2012-08-29 16:15:52 UTC) #8
Daniel Erat
(Sorry for harping on the pref names; it's just very difficult to change them later.) ...
8 years, 3 months ago (2012-08-29 17:35:09 UTC) #9
Mattias Nissler (ping if slow)
Mostly good, just some nits (and the pref name discussion to be resolved). http://codereview.chromium.org/10873085/diff/14002/chrome/app/policy/policy_templates.json File ...
8 years, 3 months ago (2012-08-30 11:51:25 UTC) #10
pastarmovj
http://codereview.chromium.org/10873085/diff/14002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/10873085/diff/14002/chrome/app/policy/policy_templates.json#newcode3160 chrome/app/policy/policy_templates.json:3160: 'desc': '''Disable playing audio. On 2012/08/30 11:51:26, Mattias Nissler ...
8 years, 3 months ago (2012-08-31 07:28:24 UTC) #11
Mattias Nissler (ping if slow)
LGTM with nits http://codereview.chromium.org/10873085/diff/23002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/10873085/diff/23002/chrome/app/policy/policy_templates.json#newcode3164 chrome/app/policy/policy_templates.json:3164: This policy affects all types of ...
8 years, 3 months ago (2012-08-31 08:06:51 UTC) #12
Daniel Erat
LGTM with a few comments. Thanks! http://codereview.chromium.org/10873085/diff/23002/chrome/browser/chromeos/audio/audio_handler.cc File chrome/browser/chromeos/audio/audio_handler.cc (right): http://codereview.chromium.org/10873085/diff/23002/chrome/browser/chromeos/audio/audio_handler.cc#newcode89 chrome/browser/chromeos/audio/audio_handler.cc:89: true, nit: fix ...
8 years, 3 months ago (2012-08-31 14:57:46 UTC) #13
pastarmovj
http://codereview.chromium.org/10873085/diff/23002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/10873085/diff/23002/chrome/app/policy/policy_templates.json#newcode3164 chrome/app/policy/policy_templates.json:3164: This policy affects all types of audio output and ...
8 years, 3 months ago (2012-09-03 09:53:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/10873085/32001
8 years, 3 months ago (2012-09-03 09:55:25 UTC) #15
commit-bot: I haz the power
Presubmit check for 10873085-32001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-03 09:55:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/10873085/32001
8 years, 3 months ago (2012-09-03 10:56:25 UTC) #17
commit-bot: I haz the power
8 years, 3 months ago (2012-09-03 12:48:42 UTC) #18
Try job failure for 10873085-32001 (retry) on win_rel for step "compile"
(clobber build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698