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 13486004: Audio extension API. (Closed)

Created:
7 years, 8 months ago by hshi1
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Audio extension API. Extension API to query and control audio device state. The design doc is available at https://docs.google.com/a/google.com/document/d/1szQEkGggTScHP8Ahum8ZrN7QxmHaCsF83XTq2AcsU-g/ This CL is not yet complete, but is compiling and working for the portion that is finished. It contains most of the stubs and implements the audio.onDeviceChanged event as well as part of the audio.getInfo. I would like to land this to trunk ASAP and hand over the work to Rahul. BUG=175798 TEST=Trybots, local test app exercising audio API. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195743

Patch Set 1 #

Patch Set 2 : More files with trivial changes. #

Patch Set 3 : Rebased at 192589. #

Patch Set 4 : Skeleton is now compiling. #

Patch Set 5 : Rebased at trunk@194221. #

Patch Set 6 : Refine audio.setProperties(). #

Patch Set 7 : ProfileKeyedAPI. #

Patch Set 8 : Fix compile. #

Patch Set 9 : Wire up the audio.onDeviceChanged event. #

Patch Set 10 : Fix permissions. #

Patch Set 11 : Fix up the gypi file, verify that audio event is working. #

Patch Set 12 : Wire up audio.GetInfo to CrasAudioClient::GetNodes. Still missing volume state. #

Patch Set 13 : Fix typo. #

Patch Set 14 : Use weak pointers. #

Patch Set 15 : Leaving AudioApiTest.Audio empty (TODO). #

Patch Set 16 : Rebased at trunk@195533, resolved conflicts, applied Rahul's patch for test failures. #

Patch Set 17 : Update chrome/test/DEPS. #

Total comments: 10

Patch Set 18 : Add a DBusThreadManager::Shutdown in the dtor of TestingProfile. Also rebase to trunk@195611 and re… #

Patch Set 19 : Address Rahul's comments. #

Total comments: 5

Patch Set 20 : Address Matt's comment. #

Total comments: 3

Patch Set 21 : Add TODO for audio.onDeviceChanged. #

Patch Set 22 : Fix the CHECK failure in DBusThreadManager::Get(). #

Patch Set 23 : Fix uninitialized pointer cras_audio_client_. #

Patch Set 24 : Remove the DCHECK - it can be NULL if the client is mocked. #

Patch Set 25 : Rebased to trunk@195702 and fix conflicts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+537 lines, -0 lines) Patch
A chrome/browser/extensions/api/audio/audio_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/audio/audio_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +77 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/audio/audio_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/audio/audio_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/audio/audio_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/audio/audio_service_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +163 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/audio.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_message.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
hshi1
PTAL (starting with Rahul... will add OWNERs later).
7 years, 8 months ago (2013-04-22 21:04:34 UTC) #1
rkc
LGTM with nits. https://codereview.chromium.org/13486004/diff/29020/chrome/browser/extensions/api/audio/audio_api.cc File chrome/browser/extensions/api/audio/audio_api.cc (right): https://codereview.chromium.org/13486004/diff/29020/chrome/browser/extensions/api/audio/audio_api.cc#newcode69 chrome/browser/extensions/api/audio/audio_api.cc:69: return false; Add TODO here and ...
7 years, 8 months ago (2013-04-22 22:54:19 UTC) #2
hshi1
https://codereview.chromium.org/13486004/diff/29020/chrome/browser/extensions/api/audio/audio_api.cc File chrome/browser/extensions/api/audio/audio_api.cc (right): https://codereview.chromium.org/13486004/diff/29020/chrome/browser/extensions/api/audio/audio_api.cc#newcode69 chrome/browser/extensions/api/audio/audio_api.cc:69: return false; On 2013/04/22 22:54:19, Rahul Chaturvedi wrote: > ...
7 years, 8 months ago (2013-04-22 23:02:16 UTC) #3
hshi1
+mpcomplete@ (OWNER of browser/extensions/ and common/extensions) +phajdan@ (OWNER of chrome/test) Please take a look. Note ...
7 years, 8 months ago (2013-04-22 23:28:41 UTC) #4
Matt Perry
mostly LGTM https://codereview.chromium.org/13486004/diff/91005/chrome/browser/extensions/api/audio/audio_api.cc File chrome/browser/extensions/api/audio/audio_api.cc (right): https://codereview.chromium.org/13486004/diff/91005/chrome/browser/extensions/api/audio/audio_api.cc#newcode41 chrome/browser/extensions/api/audio/audio_api.cc:41: scoped_ptr<extensions::Event> event(new extensions::Event( No need for extensions:: ...
7 years, 8 months ago (2013-04-22 23:57:26 UTC) #5
hshi1
https://codereview.chromium.org/13486004/diff/91005/chrome/browser/extensions/api/audio/audio_api.cc File chrome/browser/extensions/api/audio/audio_api.cc (right): https://codereview.chromium.org/13486004/diff/91005/chrome/browser/extensions/api/audio/audio_api.cc#newcode41 chrome/browser/extensions/api/audio/audio_api.cc:41: scoped_ptr<extensions::Event> event(new extensions::Event( On 2013/04/22 23:57:26, Matt Perry wrote: ...
7 years, 8 months ago (2013-04-23 00:07:34 UTC) #6
hshi1
+thakis (missing OWNER reviewer for: chrome/chrome_browser_extensions.gypi and chrome/browser/profiles/profile_dependency_manager.cc)
7 years, 8 months ago (2013-04-23 00:10:21 UTC) #7
Matt Perry
https://codereview.chromium.org/13486004/diff/91005/chrome/common/extensions/api/audio.idl File chrome/common/extensions/api/audio.idl (right): https://codereview.chromium.org/13486004/diff/91005/chrome/common/extensions/api/audio.idl#newcode65 chrome/common/extensions/api/audio.idl:65: static void onDeviceChanged(); On 2013/04/23 00:07:34, hshi1 wrote: > ...
7 years, 8 months ago (2013-04-23 00:12:54 UTC) #8
hshi1
On 2013/04/23 00:12:54, Matt Perry wrote: > https://codereview.chromium.org/13486004/diff/91005/chrome/common/extensions/api/audio.idl > File chrome/common/extensions/api/audio.idl (right): > > https://codereview.chromium.org/13486004/diff/91005/chrome/common/extensions/api/audio.idl#newcode65 ...
7 years, 8 months ago (2013-04-23 00:22:30 UTC) #9
Matt Perry
On 2013/04/23 00:22:30, hshi1 wrote: > On 2013/04/23 00:12:54, Matt Perry wrote: > > > ...
7 years, 8 months ago (2013-04-23 00:27:47 UTC) #10
Nico
My 3 files lgtm with the tweak below. https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi#newcode758 chrome/chrome_browser_extensions.gypi:758: 'browser/extensions/api/audio/audio_service.cc', ...
7 years, 8 months ago (2013-04-23 00:28:17 UTC) #11
hshi1
https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi#newcode758 chrome/chrome_browser_extensions.gypi:758: 'browser/extensions/api/audio/audio_service.cc', I tried to conditionally exclude this file on ...
7 years, 8 months ago (2013-04-23 00:46:55 UTC) #12
hshi1
On 2013/04/23 00:46:55, hshi1 wrote: > https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi > File chrome/chrome_browser_extensions.gypi (right): > > https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi#newcode758 > ...
7 years, 8 months ago (2013-04-23 01:11:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/13486004/101002
7 years, 8 months ago (2013-04-23 01:32:41 UTC) #14
Nico
https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/13486004/diff/89006/chrome/chrome_browser_extensions.gypi#newcode758 chrome/chrome_browser_extensions.gypi:758: 'browser/extensions/api/audio/audio_service.cc', On 2013/04/23 00:46:55, hshi1 wrote: > I tried ...
7 years, 8 months ago (2013-04-23 02:08:46 UTC) #15
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests, compile, content_unittests, crypto_unittests, googleurl_unittests, media_unittests, ...
7 years, 8 months ago (2013-04-23 02:12:50 UTC) #16
hshi1
On 2013/04/23 02:08:46, Nico wrote: > No, you don't have to remove the whole out ...
7 years, 8 months ago (2013-04-23 02:55:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/13486004/100008
7 years, 8 months ago (2013-04-23 03:09:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/13486004/111007
7 years, 8 months ago (2013-04-23 03:31:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/13486004/113001
7 years, 8 months ago (2013-04-23 04:01:31 UTC) #20
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-23 04:03:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/13486004/116005
7 years, 8 months ago (2013-04-23 04:07:28 UTC) #22
commit-bot: I haz the power
Change committed as 195743
7 years, 8 months ago (2013-04-23 06:57:34 UTC) #23
hshi1
7 years, 8 months ago (2013-04-23 16:59:48 UTC) #24
Message was sent while issue was closed.
Change is landed with the ugly gypi (with both 'chromeos==0' and 'chromeos==1'
sections) as I could not figure out how to get the exclusion rule to work.

I've filed GYP bug https://code.google.com/p/gyp/issues/detail?id=335

Powered by Google App Engine
This is Rietveld 408576698