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

Issue 115693004: Added volume adjust sound behind the flag. (Closed)

Created:
7 years ago by ygorshenin1
Modified:
6 years, 11 months ago
Reviewers:
oshima, DaleCurtis, jennyz
CC:
chromium-reviews, sadrul, feature-media-reviews_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Added volume adjust sound behind the flag. Partially based on https://codereview.chromium.org/24618003/. BUG=225886 TEST=media_unittests:AudioStreamHandler* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245342

Patch Set 1 #

Patch Set 2 : Fix. #

Patch Set 3 : Fix. #

Total comments: 6

Patch Set 4 : A lot of variables in WavParser a replaced by a single AudioParameters field. #

Patch Set 5 : Split of WavAudioHandler is rolled back. #

Total comments: 16

Patch Set 6 : Fixes. #

Patch Set 7 : Fixed creation of AudioParameters. #

Total comments: 6

Patch Set 8 : Fix. #

Total comments: 9

Patch Set 9 : Fix. #

Total comments: 4

Patch Set 10 : Fix. #

Total comments: 2

Patch Set 11 : Fix, rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -73 lines) Patch
A + chrome/browser/ui/ash/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/ui/ash/volume_controller_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -2 lines 0 comments Download
M chromeos/audio/chromeos_sounds.h View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/sounds/audio_stream_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -4 lines 0 comments Download
M media/audio/sounds/audio_stream_handler.cc View 1 2 3 4 5 6 7 8 9 9 chunks +66 lines, -30 lines 0 comments Download
M media/audio/sounds/audio_stream_handler_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M media/audio/sounds/sounds_manager.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M media/audio/sounds/sounds_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
D media/audio/sounds/wav_audio_handler.h View 1 2 3 4 5 6 3 chunks +6 lines, -8 lines 0 comments Download
M media/audio/sounds/wav_audio_handler.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -13 lines 0 comments Download
D media/audio/sounds/wav_audio_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
ygorshenin1
7 years ago (2013-12-17 17:40:55 UTC) #1
DaleCurtis
I think the class splitting you've done makes the code harder to follow. I also ...
7 years ago (2013-12-17 19:28:52 UTC) #2
ygorshenin1
This refactoring was made because I didn't see any easy way to implement test for ...
7 years ago (2013-12-18 14:33:12 UTC) #3
DaleCurtis
https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc File media/audio/sounds/audio_stream_handler.cc (right): https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc#newcode39 media/audio/sounds/audio_stream_handler.cc:39: replay_scheduled_(false), I think instead of all this replay_scheduled_ and ...
7 years ago (2013-12-18 21:20:21 UTC) #4
ygorshenin1
PTAL https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc File media/audio/sounds/audio_stream_handler.cc (right): https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc#newcode39 media/audio/sounds/audio_stream_handler.cc:39: replay_scheduled_(false), On 2013/12/18 21:20:21, DaleCurtis wrote: > I ...
7 years ago (2013-12-19 15:42:29 UTC) #5
DaleCurtis
https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc File media/audio/sounds/audio_stream_handler.cc (right): https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc#newcode39 media/audio/sounds/audio_stream_handler.cc:39: replay_scheduled_(false), On 2013/12/19 15:42:29, ygorshenin1 wrote: > On 2013/12/18 ...
7 years ago (2013-12-19 19:44:07 UTC) #6
ygorshenin1
PTAL https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc File media/audio/sounds/audio_stream_handler.cc (right): https://codereview.chromium.org/115693004/diff/100001/media/audio/sounds/audio_stream_handler.cc#newcode39 media/audio/sounds/audio_stream_handler.cc:39: replay_scheduled_(false), You don't need to press a key ...
7 years ago (2013-12-20 09:05:05 UTC) #7
DaleCurtis
Does this functionality sound right? It seems the way you have it now that a ...
6 years, 11 months ago (2014-01-02 20:11:17 UTC) #8
ygorshenin1
I've removed replay logic completely. PTAL. https://codereview.chromium.org/115693004/diff/140001/chrome/browser/ui/ash/volume_controller_chromeos.cc File chrome/browser/ui/ash/volume_controller_chromeos.cc (right): https://codereview.chromium.org/115693004/diff/140001/chrome/browser/ui/ash/volume_controller_chromeos.cc#newcode68 chrome/browser/ui/ash/volume_controller_chromeos.cc:68: PlayVolumeAdjustSound(); On 2014/01/02 ...
6 years, 11 months ago (2014-01-09 19:26:56 UTC) #9
DaleCurtis
https://codereview.chromium.org/115693004/diff/180001/chrome/browser/ui/ash/volume_controller_chromeos.cc File chrome/browser/ui/ash/volume_controller_chromeos.cc (right): https://codereview.chromium.org/115693004/diff/180001/chrome/browser/ui/ash/volume_controller_chromeos.cc#newcode70 chrome/browser/ui/ash/volume_controller_chromeos.cc:70: if (play_sound) Can you just move this into the ...
6 years, 11 months ago (2014-01-09 19:58:26 UTC) #10
ygorshenin1
PTAL https://codereview.chromium.org/115693004/diff/180001/chrome/browser/ui/ash/volume_controller_chromeos.cc File chrome/browser/ui/ash/volume_controller_chromeos.cc (right): https://codereview.chromium.org/115693004/diff/180001/chrome/browser/ui/ash/volume_controller_chromeos.cc#newcode70 chrome/browser/ui/ash/volume_controller_chromeos.cc:70: if (play_sound) On 2014/01/09 19:58:26, DaleCurtis wrote: > ...
6 years, 11 months ago (2014-01-13 10:00:54 UTC) #11
DaleCurtis
lgtm % nits. Thanks for your patience! https://codereview.chromium.org/115693004/diff/250013/media/audio/sounds/audio_stream_handler.cc File media/audio/sounds/audio_stream_handler.cc (right): https://codereview.chromium.org/115693004/diff/250013/media/audio/sounds/audio_stream_handler.cc#newcode77 media/audio/sounds/audio_stream_handler.cc:77: if (started_) ...
6 years, 11 months ago (2014-01-13 18:12:31 UTC) #12
ygorshenin1
Thank you for the review! + oshima for chrome/* and chromeos/* https://codereview.chromium.org/115693004/diff/250013/media/audio/sounds/audio_stream_handler.cc File media/audio/sounds/audio_stream_handler.cc (right): ...
6 years, 11 months ago (2014-01-13 18:30:50 UTC) #13
ygorshenin1
Oshima, friendly ping.
6 years, 11 months ago (2014-01-15 07:05:54 UTC) #14
oshima
lgtm with a nit https://codereview.chromium.org/115693004/diff/760001/media/audio/sounds/wav_audio_handler_unittest.cc File media/audio/sounds/wav_audio_handler_unittest.cc (right): https://codereview.chromium.org/115693004/diff/760001/media/audio/sounds/wav_audio_handler_unittest.cc#newcode25 media/audio/sounds/wav_audio_handler_unittest.cc:25: ASSERT_EQ(static_cast<size_t>(4), handler.data().size()); nit: 4U
6 years, 11 months ago (2014-01-15 18:52:43 UTC) #15
ygorshenin1
Thank you, Mitsuru. Jenny, do you have any comments? https://codereview.chromium.org/115693004/diff/760001/media/audio/sounds/wav_audio_handler_unittest.cc File media/audio/sounds/wav_audio_handler_unittest.cc (right): https://codereview.chromium.org/115693004/diff/760001/media/audio/sounds/wav_audio_handler_unittest.cc#newcode25 media/audio/sounds/wav_audio_handler_unittest.cc:25: ...
6 years, 11 months ago (2014-01-16 11:36:28 UTC) #16
jennyz
lgtm
6 years, 11 months ago (2014-01-16 20:01:50 UTC) #17
ygorshenin1
Many thanks to everybody!
6 years, 11 months ago (2014-01-16 20:04:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/115693004/890001
6 years, 11 months ago (2014-01-16 20:05:39 UTC) #19
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 22:02:49 UTC) #20
Message was sent while issue was closed.
Change committed as 245342

Powered by Google App Engine
This is Rietveld 408576698