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

Issue 1113053002: Set the AudioManager factory before the browser main loop. (Closed)

Created:
5 years, 7 months ago by slan
Modified:
5 years, 7 months ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set the AudioManager factory before the browser main loop. Adds a function to set the AudioManagerFactory for the browser, and a trivial implementation of this which does not set a factory, opting instead to use the statically-linked factory method in Chrome. Change-Id: I1a2df165fbd5c166a13b440876d031c937558cbb BUG=None Committed: https://crrev.com/830b0c5dda907f2560ab003e588172c43768293a Cr-Commit-Position: refs/heads/master@{#327751}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add getter for factory. #

Total comments: 6

Patch Set 3 : Cleanup + naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -4 lines) Patch
M chromecast/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/cast_browser_main_parts.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M chromecast/browser/cast_browser_main_parts.cc View 1 2 4 chunks +11 lines, -2 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chromecast/browser/cast_content_browser_client_simple.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
slan
Chrome-branded builds will need to link in an implementation of ::chromecast::media::SetAudioManagerFactory() before they will build ...
5 years, 7 months ago (2015-04-30 15:47:19 UTC) #2
gunsch
https://codereview.chromium.org/1113053002/diff/1/chromecast/browser/cast_browser_main_parts.cc File chromecast/browser/cast_browser_main_parts.cc (right): https://codereview.chromium.org/1113053002/diff/1/chromecast/browser/cast_browser_main_parts.cc#newcode148 chromecast/browser/cast_browser_main_parts.cc:148: void SetPlatformAudioManagerFactory(); This interface probably lives better somewhere like ...
5 years, 7 months ago (2015-04-30 15:50:38 UTC) #3
slan
On 2015/04/30 15:50:38, gunsch wrote: > https://codereview.chromium.org/1113053002/diff/1/chromecast/browser/cast_browser_main_parts.cc > File chromecast/browser/cast_browser_main_parts.cc (right): > > https://codereview.chromium.org/1113053002/diff/1/chromecast/browser/cast_browser_main_parts.cc#newcode148 > ...
5 years, 7 months ago (2015-04-30 17:20:57 UTC) #4
gunsch
https://codereview.chromium.org/1113053002/diff/20001/chromecast/browser/cast_browser_main_parts.h File chromecast/browser/cast_browser_main_parts.h (right): https://codereview.chromium.org/1113053002/diff/20001/chromecast/browser/cast_browser_main_parts.h#newcode23 chromecast/browser/cast_browser_main_parts.h:23: // AudioManagerFactory is a platform factory used to create ...
5 years, 7 months ago (2015-04-30 17:29:36 UTC) #5
gunsch
lgtm, the other comments are just nits.
5 years, 7 months ago (2015-04-30 17:29:46 UTC) #6
derekjchow1
https://codereview.chromium.org/1113053002/diff/20001/chromecast/browser/cast_browser_main_parts.h File chromecast/browser/cast_browser_main_parts.h (right): https://codereview.chromium.org/1113053002/diff/20001/chromecast/browser/cast_browser_main_parts.h#newcode13 chromecast/browser/cast_browser_main_parts.h:13: #include "media/audio/audio_manager_factory.h" Don't include. Forward declare ::media::AudioManagerFactory.
5 years, 7 months ago (2015-04-30 17:33:15 UTC) #7
slan
https://codereview.chromium.org/1113053002/diff/20001/chromecast/browser/cast_browser_main_parts.h File chromecast/browser/cast_browser_main_parts.h (right): https://codereview.chromium.org/1113053002/diff/20001/chromecast/browser/cast_browser_main_parts.h#newcode13 chromecast/browser/cast_browser_main_parts.h:13: #include "media/audio/audio_manager_factory.h" On 2015/04/30 17:33:15, derekjchow1 wrote: > Don't ...
5 years, 7 months ago (2015-04-30 17:52:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113053002/40001
5 years, 7 months ago (2015-04-30 17:54:38 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/60282)
5 years, 7 months ago (2015-04-30 18:05:03 UTC) #13
slan
Hey tommi@, We depend on media/audio to set the AudioManager for the browser process. Please ...
5 years, 7 months ago (2015-04-30 18:23:14 UTC) #15
slan
tommi@, dalecurtis@ originally reviewed the underlying code for this patch, so I will have him ...
5 years, 7 months ago (2015-04-30 18:29:14 UTC) #17
DaleCurtis
lgtm
5 years, 7 months ago (2015-04-30 18:37:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113053002/40001
5 years, 7 months ago (2015-04-30 18:46:39 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-04-30 18:51:16 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 18:52:16 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/830b0c5dda907f2560ab003e588172c43768293a
Cr-Commit-Position: refs/heads/master@{#327751}

Powered by Google App Engine
This is Rietveld 408576698