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

Issue 515573003: app_shell: Do simple audio initialization. (Closed)

Created:
6 years, 3 months ago by Daniel Erat
Modified:
6 years, 3 months ago
Reviewers:
James Cook, jennyz
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

app_shell: Do simple audio initialization. Add a ShellAudioController class that activates audio devices for input and output and requests max volume. Also move chromeos::NetworkHandler initialization into ShellBrowserMainParts so that ShellNetworkController can get tests at some point. BUG=405968 Committed: https://crrev.com/3698adff97208879298ad45a0bb07ea13cc5f49c Cr-Commit-Position: refs/heads/master@{#292643}

Patch Set 1 #

Total comments: 11

Patch Set 2 : add tests #

Total comments: 25

Patch Set 3 : apply review feedback #

Patch Set 4 : wrap line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -77 lines) Patch
M chromeos/audio/audio_device.h View 1 2 chunks +9 lines, -4 lines 0 comments Download
M chromeos/audio/audio_device.cc View 1 2 1 chunk +37 lines, -37 lines 0 comments Download
M chromeos/audio/cras_audio_handler_unittest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/dbus/cras_audio_client.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/dbus/cras_audio_client_stub_impl.h View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M chromeos/dbus/cras_audio_client_stub_impl.cc View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_audio_controller_chromeos.h View 1 1 chunk +72 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_audio_controller_chromeos.cc View 1 2 1 chunk +133 lines, -0 lines 0 comments Download
A extensions/shell/browser/shell_audio_controller_chromeos_unittest.cc View 1 2 1 chunk +134 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 2 5 chunks +20 lines, -12 lines 0 comments Download
M extensions/shell/browser/shell_network_controller_chromeos.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Daniel Erat
derat@chromium.org changed reviewers: + jamescook@chromium.org, jennyz@chromium.org
6 years, 3 months ago (2014-08-27 23:05:29 UTC) #1
Daniel Erat
https://codereview.chromium.org/515573003/diff/1/extensions/shell/browser/shell_browser_main_parts.cc File extensions/shell/browser/shell_browser_main_parts.cc (right): https://codereview.chromium.org/515573003/diff/1/extensions/shell/browser/shell_browser_main_parts.cc#newcode126 extensions/shell/browser/shell_browser_main_parts.cc:126: EnsureBrowserContextKeyedServiceFactoriesBuilt(); i was initially adding some code to the ...
6 years, 3 months ago (2014-08-27 23:05:29 UTC) #2
James Cook
https://codereview.chromium.org/515573003/diff/1/extensions/shell/browser/shell_audio_controller_chromeos.cc File extensions/shell/browser/shell_audio_controller_chromeos.cc (right): https://codereview.chromium.org/515573003/diff/1/extensions/shell/browser/shell_audio_controller_chromeos.cc#newcode107 extensions/shell/browser/shell_audio_controller_chromeos.cc:107: it != devices.rend() && (!best_input || !best_output); ++it) { ...
6 years, 3 months ago (2014-08-27 23:18:34 UTC) #3
Daniel Erat
will reupload and ping after tests are done https://codereview.chromium.org/515573003/diff/1/extensions/shell/browser/shell_audio_controller_chromeos.cc File extensions/shell/browser/shell_audio_controller_chromeos.cc (right): https://codereview.chromium.org/515573003/diff/1/extensions/shell/browser/shell_audio_controller_chromeos.cc#newcode107 extensions/shell/browser/shell_audio_controller_chromeos.cc:107: it ...
6 years, 3 months ago (2014-08-28 00:12:21 UTC) #4
Daniel Erat
added tests. okay, it was a bit more work than i expected due to CrasAudioHandler ...
6 years, 3 months ago (2014-08-28 04:00:29 UTC) #5
jennyz
lgtm with a nit. https://codereview.chromium.org/515573003/diff/20001/chromeos/audio/audio_device.cc File chromeos/audio/audio_device.cc (right): https://codereview.chromium.org/515573003/diff/20001/chromeos/audio/audio_device.cc#newcode46 chromeos/audio/audio_device.cc:46: return "HEADPHONE"; On 2014/08/28 04:00:29, ...
6 years, 3 months ago (2014-08-28 17:42:50 UTC) #6
James Cook
LGTM assuming the DBusThreadManager::Initialize() thing isn't a real issue. https://codereview.chromium.org/515573003/diff/20001/chromeos/audio/audio_device.cc File chromeos/audio/audio_device.cc (right): https://codereview.chromium.org/515573003/diff/20001/chromeos/audio/audio_device.cc#newcode26 chromeos/audio/audio_device.cc:26: ...
6 years, 3 months ago (2014-08-28 18:48:37 UTC) #7
Daniel Erat
https://codereview.chromium.org/515573003/diff/20001/chromeos/audio/audio_device.cc File chromeos/audio/audio_device.cc (right): https://codereview.chromium.org/515573003/diff/20001/chromeos/audio/audio_device.cc#newcode26 chromeos/audio/audio_device.cc:26: // Fall through. On 2014/08/28 18:48:37, James Cook wrote: ...
6 years, 3 months ago (2014-08-28 23:27:57 UTC) #8
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 3 months ago (2014-08-28 23:31:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/515573003/40001
6 years, 3 months ago (2014-08-28 23:32:38 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-29 04:39:36 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 04:43:28 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/7570)
6 years, 3 months ago (2014-08-29 04:43:28 UTC) #13
Daniel Erat
wrap line
6 years, 3 months ago (2014-08-29 14:46:56 UTC) #14
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 3 months ago (2014-08-29 14:48:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/515573003/60001
6 years, 3 months ago (2014-08-29 14:50:02 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 15:54:27 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 637dc4ebfcecabc3d4cd4b7f86124c145c5ad9d5
6 years, 3 months ago (2014-08-29 16:11:03 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:08:58 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3698adff97208879298ad45a0bb07ea13cc5f49c
Cr-Commit-Position: refs/heads/master@{#292643}

Powered by Google App Engine
This is Rietveld 408576698