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

Issue 131503006: Initialization of audio manager for Android is now done on the audio thread (Closed)

Created:
6 years, 11 months ago by henrika (OOO until Aug 14)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Initialization of audio manager for Android is now done on the audio thread. Goal is to move heavy initialization tasks from the IO thread to the audio thread instead. This CL also ensures that the Android audio unit test calls audio manager methods on the audio thread to ensure the same behavior as in Chrome. In addition, all input/output-streams will be created and used on the audio thread. BUG=337867 TEST=Manual getSources demos, media_unittests, content_unittests and WebRTC apprtc demo Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252614

Patch Set 1 #

Total comments: 10

Patch Set 2 : tommi@ #

Patch Set 3 : improved version #

Patch Set 4 : Moved more calls to the audio thread in C++ #

Total comments: 1

Patch Set 5 : Now passes findbugs #

Total comments: 25

Patch Set 6 : tommi@ #

Total comments: 4

Patch Set 7 : improved unit test pattern #

Total comments: 2

Patch Set 8 : improved structure of all input unittests #

Total comments: 7

Patch Set 9 : Moved ctor+init and dtor of manager to audio thread #

Total comments: 7

Patch Set 10 : Added use of CreateAndInit in more methods #

Total comments: 13

Patch Set 11 : tommi@ #

Patch Set 12 : Fixed all unit tests #

Total comments: 12

Patch Set 13 : Render message filter now posts audio messaged on audio thread #

Patch Set 14 : No more use of wait in Android audio manager #

Patch Set 15 : All methods in unit tests should now be on the audio thread #

Total comments: 24

Patch Set 16 : tommi@ #

Total comments: 4

Patch Set 17 : Removed bad getter in unit test #

Total comments: 4

Patch Set 18 : DEBUG=false #

Patch Set 19 : No dangling pointers now #

Total comments: 12

Patch Set 20 : bulach@ #

Total comments: 2

Patch Set 21 : nit #

Total comments: 9

Patch Set 22 : dalecurtis@ #

Patch Set 23 : Modified AudioInputTest #

Total comments: 6

Patch Set 24 : non-trivial rebase #

Patch Set 25 : nits #

Patch Set 26 : AudioInputTest now runs on audio thread #

Patch Set 27 : AudioManagerTest now works on Android as well #

Patch Set 28 : Removed two DCHECKs to avoid non-trivial fixes in content_unittests #

Patch Set 29 : DEBUG=false #

Patch Set 30 : Restored DCHECKs and disabled unit test in content_unittessts instead #

Total comments: 6

Patch Set 31 : tommi@ #

Patch Set 32 : now compiles #

Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -317 lines) Patch
M content/browser/renderer_host/media/audio_input_device_manager_unittest.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 25 26 27 28 29 7 chunks +18 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -3 lines 0 comments Download
M media/audio/android/audio_android_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 21 chunks +262 lines, -134 lines 0 comments Download
M media/audio/android/audio_manager_android.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 3 chunks +4 lines, -9 lines 0 comments Download
M media/audio/android/audio_manager_android.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 25 26 27 28 29 30 31 12 chunks +79 lines, -48 lines 0 comments Download
M media/audio/audio_input_unittest.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 25 26 27 28 29 30 7 chunks +149 lines, -94 lines 0 comments Download
M media/audio/audio_manager_unittest.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 25 26 5 chunks +34 lines, -4 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 11 chunks +70 lines, -16 lines 0 comments Download

Messages

Total messages: 83 (0 generated)
henrika (OOO until Aug 14)
Tommi, time to take an initial look? I have moved out all complex tasks from ...
6 years, 11 months ago (2014-01-27 13:34:16 UTC) #1
tommi (sloooow) - chröme
please update the description to explain what functionality we're moving out of the 'init' sequence ...
6 years, 11 months ago (2014-01-27 15:09:44 UTC) #2
henrika (OOO until Aug 14)
Added comments on input from tommi@. https://codereview.chromium.org/131503006/diff/1/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/131503006/diff/1/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode41 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:41: private static final ...
6 years, 11 months ago (2014-01-27 15:22:48 UTC) #3
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/1/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/131503006/diff/1/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode433 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:433: for (int i = 0; i < DEVICE_COUNT; ++i) ...
6 years, 11 months ago (2014-01-27 15:26:13 UTC) #4
henrika (OOO until Aug 14)
Changes based on input from tommi@. Also added initial thread checking. tommy@: PTAL. Adding bulach@ ...
6 years, 11 months ago (2014-01-27 16:14:23 UTC) #5
henrika (OOO until Aug 14)
tommi@: as discussed offline, more calls are now on the audio thread and is controlled ...
6 years, 10 months ago (2014-01-29 12:53:35 UTC) #6
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/140001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/131503006/diff/140001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode274 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:274: logd("@AudioManagerAndroid: " + Thread.currentThread().getName()); All these logs will be ...
6 years, 10 months ago (2014-01-29 12:55:41 UTC) #7
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/160001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/160001/media/audio/android/audio_manager_android.cc#newcode84 media/audio/android/audio_manager_android.cc:84: GetTaskRunner()->PostTask( nit: You could avoid calling GetTaskRunner more than ...
6 years, 10 months ago (2014-01-30 12:51:11 UTC) #8
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/160001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/131503006/diff/160001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode125 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:125: private Long mThreadId = null; nit: use 0 instead ...
6 years, 10 months ago (2014-01-30 13:41:27 UTC) #9
henrika (OOO until Aug 14)
Comments only. Will start modifying the unit test next to ensure that those AM calls ...
6 years, 10 months ago (2014-01-30 14:48:24 UTC) #10
tommi (sloooow) - chröme
do you mind uploading the changes that you've marked as "Done" so that reviewing will ...
6 years, 10 months ago (2014-01-30 15:03:31 UTC) #11
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/180001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/180001/media/audio/android/audio_android_unittest.cc#newcode592 media/audio/android/audio_android_unittest.cc:592: base::WaitableEvent event_; This pattern is racy and could throw ...
6 years, 10 months ago (2014-01-30 15:26:04 UTC) #12
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/180001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/180001/media/audio/android/audio_android_unittest.cc#newcode592 media/audio/android/audio_android_unittest.cc:592: base::WaitableEvent event_; Uploaded new and improved version after offline ...
6 years, 10 months ago (2014-01-30 17:20:23 UTC) #13
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/200001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/200001/media/audio/android/audio_android_unittest.cc#newcode598 media/audio/android/audio_android_unittest.cc:598: EXPECT_TRUE(audio_input_stream_->Open()); I think this line should be in OpenAndClose ...
6 years, 10 months ago (2014-01-30 17:34:18 UTC) #14
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/200001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/200001/media/audio/android/audio_android_unittest.cc#newcode598 media/audio/android/audio_android_unittest.cc:598: EXPECT_TRUE(audio_input_stream_->Open()); Ooops ;-) Thanks.
6 years, 10 months ago (2014-01-31 08:06:00 UTC) #15
henrika (OOO until Aug 14)
tommi@: I have a final proposal now for all the input unit tests. They work ...
6 years, 10 months ago (2014-01-31 13:54:13 UTC) #16
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/220001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/220001/media/audio/android/audio_android_unittest.cc#newcode429 media/audio/android/audio_android_unittest.cc:429: base::RunLoop().RunUntilIdle(); what exactly is it that happens during this ...
6 years, 10 months ago (2014-01-31 14:06:58 UTC) #17
henrika (OOO until Aug 14)
Only comments about what will be done. Will upload new version on Monday. https://codereview.chromium.org/131503006/diff/220001/media/audio/android/audio_android_unittest.cc File ...
6 years, 10 months ago (2014-01-31 14:19:05 UTC) #18
DaleCurtis
Follow up question, in the AudioManagerAndroid constructor I see the j_audio_manager_ being attached to the ...
6 years, 10 months ago (2014-01-31 19:18:11 UTC) #19
tommi (sloooow) - chröme
Some of the operations can block for some time but maybe the audio thread isn't ...
6 years, 10 months ago (2014-01-31 20:51:43 UTC) #20
DaleCurtis
Depends on the operation and how long it's blocking for, but in general the audio ...
6 years, 10 months ago (2014-01-31 23:44:17 UTC) #21
tommi (sloooow) - chröme
Henrik, wdyt? Should we move the Java object lifetime and usage completely over to the ...
6 years, 10 months ago (2014-02-01 09:31:01 UTC) #22
henrika (OOO until Aug 14)
On 2014/02/01 09:31:01, tommi wrote: > Henrik, wdyt? Should we move the Java object lifetime ...
6 years, 10 months ago (2014-02-03 08:27:18 UTC) #23
henrika (OOO until Aug 14)
..and, many thanks for your valuable feedback Dale :-)
6 years, 10 months ago (2014-02-03 08:38:05 UTC) #24
henrika (OOO until Aug 14)
tommi@: uploaded an initial version (not complete) where I do create+init first time needed and ...
6 years, 10 months ago (2014-02-03 13:46:25 UTC) #25
DaleCurtis
https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc#newcode67 media/audio/android/audio_manager_android.cc:67: void AudioManagerAndroid::GetAudioInputDeviceNames( Is there no way to move this ...
6 years, 10 months ago (2014-02-03 19:09:15 UTC) #26
henrika (OOO until Aug 14)
Feedback on input from Dale. https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc#newcode67 media/audio/android/audio_manager_android.cc:67: void AudioManagerAndroid::GetAudioInputDeviceNames( It is ...
6 years, 10 months ago (2014-02-03 19:23:41 UTC) #27
henrika (OOO until Aug 14)
Dale, the last round is not inline with your comments (instead I call CreateAndInit from ...
6 years, 10 months ago (2014-02-03 19:26:20 UTC) #28
DaleCurtis
https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc#newcode67 media/audio/android/audio_manager_android.cc:67: void AudioManagerAndroid::GetAudioInputDeviceNames( On 2014/02/03 19:23:42, henrika wrote: > It ...
6 years, 10 months ago (2014-02-03 19:33:15 UTC) #29
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc#newcode67 media/audio/android/audio_manager_android.cc:67: void AudioManagerAndroid::GetAudioInputDeviceNames( I would very much appreciate if you ...
6 years, 10 months ago (2014-02-04 10:09:35 UTC) #30
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/490001/content/browser/renderer_host/media/device_request_message_filter.cc File content/browser/renderer_host/media/device_request_message_filter.cc (right): https://codereview.chromium.org/131503006/diff/490001/content/browser/renderer_host/media/device_request_message_filter.cc#newcode96 content/browser/renderer_host/media/device_request_message_filter.cc:96: // if (!resource_context_->AllowMicAccess(request_it->origin)) fix? https://codereview.chromium.org/131503006/diff/490001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (left): https://codereview.chromium.org/131503006/diff/490001/media/audio/android/audio_manager_android.cc#oldcode51 ...
6 years, 10 months ago (2014-02-04 14:30:11 UTC) #31
DaleCurtis
https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/430001/media/audio/android/audio_manager_android.cc#newcode67 media/audio/android/audio_manager_android.cc:67: void AudioManagerAndroid::GetAudioInputDeviceNames( On 2014/02/04 10:09:36, henrika wrote: > I ...
6 years, 10 months ago (2014-02-04 19:14:10 UTC) #32
henrika (OOO until Aug 14)
Uploaded changes based on input from tommi@. Sorry for all the rounds here but what ...
6 years, 10 months ago (2014-02-05 09:45:57 UTC) #33
henrika (OOO until Aug 14)
Updated TODO-list: 1) Fix deadlock in unittest for input streaming. In progress. 2) Wait one ...
6 years, 10 months ago (2014-02-05 16:50:26 UTC) #34
bulach
https://chromiumcodereview.appspot.com/131503006/diff/640001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://chromiumcodereview.appspot.com/131503006/diff/640001/media/audio/android/audio_manager_android.cc#newcode73 media/audio/android/audio_manager_android.cc:73: // calling thread sees this function call as synchronous. ...
6 years, 10 months ago (2014-02-05 19:29:39 UTC) #35
henrika (OOO until Aug 14)
Thanks Marcus, I understand that you want to break out most parts of this CL ...
6 years, 10 months ago (2014-02-05 21:47:29 UTC) #36
DaleCurtis
https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc#newcode73 media/audio/android/audio_manager_android.cc:73: // calling thread sees this function call as synchronous. ...
6 years, 10 months ago (2014-02-05 21:50:12 UTC) #37
bulach
https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc#newcode73 media/audio/android/audio_manager_android.cc:73: // calling thread sees this function call as synchronous. ...
6 years, 10 months ago (2014-02-06 02:06:55 UTC) #38
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc#newcode73 media/audio/android/audio_manager_android.cc:73: // calling thread sees this function call as synchronous. ...
6 years, 10 months ago (2014-02-06 08:58:56 UTC) #39
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/640001/media/audio/android/audio_manager_android.cc#newcode73 media/audio/android/audio_manager_android.cc:73: // calling thread sees this function call as synchronous. ...
6 years, 10 months ago (2014-02-06 13:52:57 UTC) #40
tommi (sloooow) - chröme
I forgot to add that by fixing that call site, we can remove the thread ...
6 years, 10 months ago (2014-02-06 13:53:58 UTC) #41
henrika (OOO until Aug 14)
Agree. Will continue this work once the "more limited" patch has landed.
6 years, 10 months ago (2014-02-06 15:03:13 UTC) #42
ajm
https://codereview.chromium.org/131503006/diff/640001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/131503006/diff/640001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode473 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:473: return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN && On 2014/02/05 19:29:39, bulach ...
6 years, 10 months ago (2014-02-06 23:04:34 UTC) #43
henrika (OOO until Aug 14)
> I looked into this quite a bit when I wrote the code. My understanding ...
6 years, 10 months ago (2014-02-07 09:09:12 UTC) #44
henrika (OOO until Aug 14)
I have restarted the work on this one again. My plan was to not reply ...
6 years, 10 months ago (2014-02-13 15:00:07 UTC) #45
tommi (sloooow) - chröme
Can you ping back when you've made all the changes? Since I have to go ...
6 years, 10 months ago (2014-02-13 15:06:38 UTC) #46
henrika (OOO until Aug 14)
On 2014/02/13 15:06:38, tommi wrote: > Can you ping back when you've made all the ...
6 years, 10 months ago (2014-02-13 15:08:29 UTC) #47
henrika (OOO until Aug 14)
tommi@: hope you fine it OK to review now. Summary: - Only creates and initialized ...
6 years, 10 months ago (2014-02-17 12:54:35 UTC) #48
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/970001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/970001/media/audio/android/audio_android_unittest.cc#newcode426 media/audio/android/audio_android_unittest.cc:426: AudioParameters audio_output_parameters() const { nit: return const&? https://codereview.chromium.org/131503006/diff/970001/media/audio/android/audio_android_unittest.cc#newcode462 media/audio/android/audio_android_unittest.cc:462: ...
6 years, 10 months ago (2014-02-17 13:24:55 UTC) #49
henrika (OOO until Aug 14)
Thanks Tommi. One more... https://codereview.chromium.org/131503006/diff/970001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/970001/media/audio/android/audio_android_unittest.cc#newcode426 media/audio/android/audio_android_unittest.cc:426: AudioParameters audio_output_parameters() const { On ...
6 years, 10 months ago (2014-02-17 15:14:40 UTC) #50
tommi (sloooow) - chröme
lgtm % getting rid of the dangling pointers in the test https://codereview.chromium.org/131503006/diff/1040001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): ...
6 years, 10 months ago (2014-02-18 12:03:35 UTC) #51
henrika (OOO until Aug 14)
Thanks Tommi. bulach@: I would appreciate some comments from you as owner as well. dalecurtis@: ...
6 years, 10 months ago (2014-02-18 12:34:40 UTC) #52
tommi (sloooow) - chröme
still some dangling pointers... please just search for all places where we call Close() and ...
6 years, 10 months ago (2014-02-18 12:45:39 UTC) #53
henrika (OOO until Aug 14)
Sorry.. now it is perfect. https://codereview.chromium.org/131503006/diff/1130001/media/audio/android/audio_android_unittest.cc File media/audio/android/audio_android_unittest.cc (right): https://codereview.chromium.org/131503006/diff/1130001/media/audio/android/audio_android_unittest.cc#newcode546 media/audio/android/audio_android_unittest.cc:546: audio_output_stream_->Close(); Sorry. Fixed. https://codereview.chromium.org/131503006/diff/1130001/media/audio/android/audio_android_unittest.cc#newcode703 ...
6 years, 10 months ago (2014-02-18 13:05:46 UTC) #54
tommi (sloooow) - chröme
lgtm++
6 years, 10 months ago (2014-02-18 13:13:28 UTC) #55
bulach
lgtm % tiny nits, thanks a lot! https://codereview.chromium.org/131503006/diff/1330001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/1330001/media/audio/android/audio_manager_android.cc#newcode289 media/audio/android/audio_manager_android.cc:289: DCHECK(GetTaskRunner()->BelongsToCurrentThread()); nit: ...
6 years, 10 months ago (2014-02-18 13:32:06 UTC) #56
henrika (OOO until Aug 14)
Great comments Marcus! Dale: any final input? https://codereview.chromium.org/131503006/diff/1330001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/1330001/media/audio/android/audio_manager_android.cc#newcode289 media/audio/android/audio_manager_android.cc:289: DCHECK(GetTaskRunner()->BelongsToCurrentThread()); On ...
6 years, 10 months ago (2014-02-18 14:19:14 UTC) #57
tommi (sloooow) - chröme
noticed one tiny little thing when checking the latest patch set. https://codereview.chromium.org/131503006/diff/1200004/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): ...
6 years, 10 months ago (2014-02-18 14:30:30 UTC) #58
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/1200004/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/131503006/diff/1200004/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode54 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:54: if (mThreadId == 0L) mThreadId = Thread.currentThread().getId(); On 2014/02/18 ...
6 years, 10 months ago (2014-02-18 14:56:07 UTC) #59
bulach
lgtm, thanks!!
6 years, 10 months ago (2014-02-18 15:47:55 UTC) #60
DaleCurtis
https://codereview.chromium.org/131503006/diff/1260003/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/1260003/media/audio/android/audio_manager_android.cc#newcode256 media/audio/android/audio_manager_android.cc:256: CreateAndInitOnAudioThread(); You mention in the description that you wanted ...
6 years, 10 months ago (2014-02-18 19:13:13 UTC) #61
henrika (OOO until Aug 14)
Comments only. Tommi@: are you OK with the proposal from Dale; that I do init ...
6 years, 10 months ago (2014-02-19 10:37:00 UTC) #62
henrika (OOO until Aug 14)
And .... I forgot about all other media unittests which uses the new AM and ...
6 years, 10 months ago (2014-02-19 10:40:20 UTC) #63
tommi (sloooow) - chröme
https://codereview.chromium.org/131503006/diff/1260003/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/1260003/media/audio/android/audio_manager_android.cc#newcode256 media/audio/android/audio_manager_android.cc:256: CreateAndInitOnAudioThread(); On 2014/02/19 10:37:01, henrika wrote: > It started ...
6 years, 10 months ago (2014-02-19 10:48:33 UTC) #64
henrika (OOO until Aug 14)
Done changed based on feedback from Dale. PTAL. Will take a look at the other ...
6 years, 10 months ago (2014-02-19 13:45:12 UTC) #65
DaleCurtis
lgtm % q + nits. https://codereview.chromium.org/131503006/diff/1730002/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/1730002/media/audio/android/audio_manager_android.cc#newcode66 media/audio/android/audio_manager_android.cc:66: GetTaskRunner()->PostTask(FROM_HERE, base::Bind( I'm not ...
6 years, 10 months ago (2014-02-19 19:10:15 UTC) #66
DaleCurtis
You should also update the CL description now; since this does something different. Thanks for ...
6 years, 10 months ago (2014-02-19 19:11:43 UTC) #67
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/1730002/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/1730002/media/audio/android/audio_manager_android.cc#newcode66 media/audio/android/audio_manager_android.cc:66: GetTaskRunner()->PostTask(FROM_HERE, base::Bind( I am unable to see that it ...
6 years, 10 months ago (2014-02-21 11:46:15 UTC) #68
henrika (OOO until Aug 14)
tommi@: one more? Please note that I decided to do https://codereview.chromium.org/131503006/diff2/2230001:2250001/media/audio/android/audio_manager_android.cc since my more strict ...
6 years, 10 months ago (2014-02-21 14:24:05 UTC) #69
henrika (OOO until Aug 14)
sky@: would really appreciate an OK from you as owner in content/browser All I do ...
6 years, 10 months ago (2014-02-21 16:09:45 UTC) #70
tommi (sloooow) - chröme
lgtm. https://codereview.chromium.org/131503006/diff/2560001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/2560001/media/audio/android/audio_manager_android.cc#newcode361 media/audio/android/audio_manager_android.cc:361: } else { nit: just remove the else. ...
6 years, 10 months ago (2014-02-21 16:10:29 UTC) #71
henrika (OOO until Aug 14)
https://codereview.chromium.org/131503006/diff/2560001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/131503006/diff/2560001/media/audio/android/audio_manager_android.cc#newcode361 media/audio/android/audio_manager_android.cc:361: } else { On 2014/02/21 16:10:30, tommi wrote: > ...
6 years, 10 months ago (2014-02-21 16:21:29 UTC) #72
sky
LGTM
6 years, 10 months ago (2014-02-21 17:07:01 UTC) #73
tommi (sloooow) - chröme
The CQ bit was checked by tommi@chromium.org
6 years, 10 months ago (2014-02-21 17:09:26 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/henrika@chromium.org/131503006/2450002
6 years, 10 months ago (2014-02-21 17:10:06 UTC) #75
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 18:23:35 UTC) #76
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 10 months ago (2014-02-21 18:23:36 UTC) #77
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 18:23:46 UTC) #78
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 10 months ago (2014-02-21 18:23:47 UTC) #79
Sergey Berezin
The CQ bit was checked by sergeyberezin@chromium.org
6 years, 10 months ago (2014-02-21 19:30:07 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/henrika@chromium.org/131503006/2450002
6 years, 10 months ago (2014-02-21 19:30:44 UTC) #81
commit-bot: I haz the power
Change committed as 252614
6 years, 10 months ago (2014-02-21 19:32:56 UTC) #82
henrika (OOO until Aug 14)
6 years, 10 months ago (2014-02-23 10:32:11 UTC) #83
Message was sent while issue was closed.
Thanks all!

I think I had OK from valid reviewers.

Powered by Google App Engine
This is Rietveld 408576698