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

Issue 10411028: Fix the volume controlling behaviors. (Closed)

Created:
8 years, 7 months ago by Jun Mukai
Modified:
8 years, 7 months ago
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Fix the volume controlling behaviors. Based on the description of crbug.com/128644: - volume up from muted should be normal up (4%), not 25% - but if the volume up happens after the mute button, it should go back to the original volume BUG=128644 TEST=browser_test passed, manually checked on lumpy Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138278

Patch Set 1 #

Patch Set 2 : add tests #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -15 lines) Patch
M chrome/browser/chromeos/audio/audio_handler.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/audio/audio_handler.cc View 1 2 3 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/ash/volume_controller_chromeos.cc View 1 2 3 4 5 2 chunks +5 lines, -7 lines 0 comments Download
A chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc View 1 2 3 4 5 1 chunk +154 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Jun Mukai
8 years, 7 months ago (2012-05-18 23:33:36 UTC) #1
Daniel Erat
I haven't looked at the tests yet. http://codereview.chromium.org/10411028/diff/5001/chrome/browser/chromeos/audio/audio_handler.cc File chrome/browser/chromeos/audio/audio_handler.cc (right): http://codereview.chromium.org/10411028/diff/5001/chrome/browser/chromeos/audio/audio_handler.cc#newcode94 chrome/browser/chromeos/audio/audio_handler.cc:94: return (mixer_->IsMuted()) ...
8 years, 7 months ago (2012-05-18 23:45:13 UTC) #2
Jun Mukai
http://codereview.chromium.org/10411028/diff/5001/chrome/browser/chromeos/audio/audio_handler.cc File chrome/browser/chromeos/audio/audio_handler.cc (right): http://codereview.chromium.org/10411028/diff/5001/chrome/browser/chromeos/audio/audio_handler.cc#newcode94 chrome/browser/chromeos/audio/audio_handler.cc:94: return (mixer_->IsMuted()) ? 0.0 : mixer_->GetVolumePercent(); On 2012/05/18 23:45:13, ...
8 years, 7 months ago (2012-05-18 23:53:18 UTC) #3
Daniel Erat
LGTM with a few nits. Thanks for adding tests! http://codereview.chromium.org/10411028/diff/7002/chrome/browser/chromeos/audio/audio_handler.h File chrome/browser/chromeos/audio/audio_handler.h (right): http://codereview.chromium.org/10411028/diff/7002/chrome/browser/chromeos/audio/audio_handler.h#newcode36 chrome/browser/chromeos/audio/audio_handler.h:36: ...
8 years, 7 months ago (2012-05-19 00:02:06 UTC) #4
Jun Mukai
Thanks for quick review. I will wait the submit for the confirmation of volume-up to ...
8 years, 7 months ago (2012-05-19 00:18:30 UTC) #5
sky
LGTM http://codereview.chromium.org/10411028/diff/5008/chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc File chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc (right): http://codereview.chromium.org/10411028/diff/5008/chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc#newcode78 chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc:78: private: indentation is off. http://codereview.chromium.org/10411028/diff/5008/chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc#newcode81 chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc:81: }; DISALLOW_...
8 years, 7 months ago (2012-05-21 14:45:23 UTC) #6
Jun Mukai
http://codereview.chromium.org/10411028/diff/5008/chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc File chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc (right): http://codereview.chromium.org/10411028/diff/5008/chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc#newcode78 chrome/browser/ui/views/ash/volume_controller_chromeos_browsertest.cc:78: private: On 2012/05/21 14:45:27, sky wrote: > indentation is ...
8 years, 7 months ago (2012-05-21 17:02:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10411028/9003
8 years, 7 months ago (2012-05-21 17:02:40 UTC) #8
commit-bot: I haz the power
Try job failure for 10411028-9003 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-21 18:14:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10411028/9003
8 years, 7 months ago (2012-05-21 18:19:19 UTC) #10
commit-bot: I haz the power
Try job failure for 10411028-9003 on mac_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=26631 Step "update" is always ...
8 years, 7 months ago (2012-05-21 18:20:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10411028/9003
8 years, 7 months ago (2012-05-21 19:18:33 UTC) #12
commit-bot: I haz the power
Try job failure for 10411028-9003 on win for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=12431 Step "update" is always ...
8 years, 7 months ago (2012-05-21 19:48:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10411028/9003
8 years, 7 months ago (2012-05-21 20:29:51 UTC) #14
commit-bot: I haz the power
8 years, 7 months ago (2012-05-22 04:27:36 UTC) #15
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is win_rel, revision is 138208, job name
was 10411028-9003 (retry) (retry) (retry) (retry).

Powered by Google App Engine
This is Rietveld 408576698