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

Issue 14801002: Switch Audio Preferences to per device. (Closed)

Created:
7 years, 7 months ago by rkc
Modified:
7 years, 7 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Switch Audio Preferences to per device. Currently Chrome stores one global audio volume pref; if a user switches devices, this value remains the same. Change this so that we remember what volume (and mute setting) a user switched to when on a particular device, so when we switch to that device, we can set the volume/mute setting back to it again. R=brettw@chromium.org, hshi@chromium.org, stevenjb@chromium.org BUG=175798 TEST=Switched between speakers and USB headphones to verify that audio settings were rememebered and switched to correctly. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198011

Patch Set 1 #

Patch Set 2 : merge. #

Total comments: 2

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 12

Patch Set 5 : #

Total comments: 22

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -47 lines) Patch
A chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h View 1 2 3 4 5 1 chunk +74 lines, -0 lines 1 comment Download
A chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc View 1 2 3 4 5 1 chunk +192 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/audio/audio_pref_handler_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +15 lines, -2 lines 0 comments Download
A + chromeos/audio/audio_devices_pref_handler.h View 2 chunks +14 lines, -18 lines 0 comments Download
M chromeos/audio/audio_pref_handler.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/audio/cras_audio_handler.h View 1 2 3 4 5 chunks +9 lines, -7 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 3 4 13 chunks +10 lines, -18 lines 0 comments Download
M chromeos/audio/mock_cras_audio_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/chromeos.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rkc
7 years, 7 months ago (2013-05-01 23:26:51 UTC) #1
hshi1
https://codereview.chromium.org/14801002/diff/3001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/14801002/diff/3001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode19 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:19: using std::min; I don't think you're using std::max and ...
7 years, 7 months ago (2013-05-02 00:57:05 UTC) #2
rkc
https://codereview.chromium.org/14801002/diff/3001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/14801002/diff/3001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode19 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:19: using std::min; On 2013/05/02 00:57:05, hshi1 wrote: > I ...
7 years, 7 months ago (2013-05-02 01:53:36 UTC) #3
rkc
Added stevenjb@ and pam@ for OWNER's reviews. Need owners reviews for, src/chromeos/ (stevenjb@) src/chrome/browser/chromeos (stevenjb@) ...
7 years, 7 months ago (2013-05-02 02:02:11 UTC) #4
hshi1
https://codereview.chromium.org/14801002/diff/6001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/14801002/diff/6001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode114 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:114: pref_change_registrar_.Add(::prefs::kAudioCaptureAllowed, callback); why the "::prefs"? https://codereview.chromium.org/14801002/diff/6001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode187 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:187: registry->RegisterBooleanPref(::prefs::kAudioCaptureAllowed, true); ...
7 years, 7 months ago (2013-05-02 02:59:56 UTC) #5
rkc
https://codereview.chromium.org/14801002/diff/6001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/14801002/diff/6001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode114 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:114: pref_change_registrar_.Add(::prefs::kAudioCaptureAllowed, callback); On 2013/05/02 02:59:56, hshi1 wrote: > why ...
7 years, 7 months ago (2013-05-02 06:34:21 UTC) #6
Pam (message me for reviews)
https://codereview.chromium.org/14801002/diff/14001/chrome/browser/chromeos/audio/audio_pref_handler_impl.h File chrome/browser/chromeos/audio/audio_pref_handler_impl.h (right): https://codereview.chromium.org/14801002/diff/14001/chrome/browser/chromeos/audio/audio_pref_handler_impl.h#newcode17 chrome/browser/chromeos/audio/audio_pref_handler_impl.h:17: // NOTE: This class will be removed once we ...
7 years, 7 months ago (2013-05-02 15:11:40 UTC) #7
rkc
https://codereview.chromium.org/14801002/diff/14001/chrome/browser/chromeos/audio/audio_pref_handler_impl.h File chrome/browser/chromeos/audio/audio_pref_handler_impl.h (right): https://codereview.chromium.org/14801002/diff/14001/chrome/browser/chromeos/audio/audio_pref_handler_impl.h#newcode17 chrome/browser/chromeos/audio/audio_pref_handler_impl.h:17: // NOTE: This class will be removed once we ...
7 years, 7 months ago (2013-05-02 18:46:09 UTC) #8
hshi1
lgtm
7 years, 7 months ago (2013-05-02 18:55:40 UTC) #9
brettw
owners lgtm rubberstamp
7 years, 7 months ago (2013-05-02 19:09:48 UTC) #10
stevenjb
https://codereview.chromium.org/14801002/diff/22001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/14801002/diff/22001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode40 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:40: } nit: no {} https://codereview.chromium.org/14801002/diff/22001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode41 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:41: double volume; Needs ...
7 years, 7 months ago (2013-05-02 19:29:47 UTC) #11
rkc
https://codereview.chromium.org/14801002/diff/22001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc (right): https://codereview.chromium.org/14801002/diff/22001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc#newcode40 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.cc:40: } On 2013/05/02 19:29:47, stevenjb (chromium) wrote: > nit: ...
7 years, 7 months ago (2013-05-02 19:43:44 UTC) #12
stevenjb
lgtm
7 years, 7 months ago (2013-05-02 20:16:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/14801002/31001
7 years, 7 months ago (2013-05-02 20:24:00 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=123419
7 years, 7 months ago (2013-05-02 21:18:22 UTC) #15
dgreid
https://codereview.chromium.org/14801002/diff/31001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h File chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h (right): https://codereview.chromium.org/14801002/diff/31001/chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h#newcode62 chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h:62: scoped_ptr<base::DictionaryValue> device_mute_settings_; Is this keyed based on device ids ...
7 years, 7 months ago (2013-05-02 21:21:49 UTC) #16
rkc
Committed patchset #6 manually as r198011 (presubmit successful).
7 years, 7 months ago (2013-05-02 23:45:59 UTC) #17
Pam (message me for reviews)
7 years, 7 months ago (2013-05-03 07:33:32 UTC) #18
Message was sent while issue was closed.
Post-facto LGTM for browser/prefs/ (brettw's LGTM covered it from
chrome/OWNERS).

- Pam

Powered by Google App Engine
This is Rietveld 408576698