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 2805743003: Allow posting the CronetEngine UI Thread initialization on a custom Ui executor instead of the defa… (Closed)

Created:
3 years, 8 months ago by sobrinho
Modified:
3 years, 6 months ago
Reviewers:
pauljensen, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org, agrieve+watch_chromium.org, net-reviews_chromium.org, kapishnikov
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow posting the CronetEngine UI Thread initialization on a custom Ui executor instead of the default Looper.getMainLooper(). Internal bug: b/32122867 BUG=709336 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester

Patch Set 1 #

Messages

Total messages: 21 (12 generated)
sobrinho
3 years, 8 months ago (2017-04-07 05:30:03 UTC) #3
pauljensen
I don't understand the problem statement: If embedders want to control when UI initialization happens, ...
3 years, 8 months ago (2017-04-07 11:51:41 UTC) #14
kapishnikov
On 2017/04/07 11:51:41, pauljensen wrote: > I don't understand the problem statement: > If embedders ...
3 years, 8 months ago (2017-04-07 15:29:07 UTC) #15
sobrinho
On 2017/04/07 15:29:07, kapishnikov wrote: > On 2017/04/07 11:51:41, pauljensen wrote: > > I don't ...
3 years, 8 months ago (2017-04-07 18:36:28 UTC) #16
pauljensen
I feel somewhat strongly that we shouldn't add a complex API for this, and should ...
3 years, 8 months ago (2017-04-07 19:12:05 UTC) #17
sobrinho
On 2017/04/07 19:12:05, pauljensen wrote: > I feel somewhat strongly that we shouldn't add a ...
3 years, 8 months ago (2017-04-07 20:33:45 UTC) #18
pauljensen
I started work to move a good chunk of Cronet initialization off the UI thread: ...
3 years, 8 months ago (2017-04-10 18:47:48 UTC) #19
pauljensen
I started a new attempt today: https://codereview.chromium.org/2812963002/
3 years, 8 months ago (2017-04-11 17:47:22 UTC) #20
chromium-reviews
3 years, 8 months ago (2017-04-11 18:51:00 UTC) #21
Thanks! Looks good and simple.
One thing I'm not sure is if you need to call the HandlerThread.start().

Also be careful with the Looper.myLooper() == anotherLooper comparison.
IIRC, in some cases, if you haven't called Looper.prepare() then that code
might return null and you might end up comparing null with null and assume
you are in the right thread when you are not.

On Tue, 11 Apr 2017, 10:47 , <pauljensen@chromium.org> wrote:

> I started a new attempt today:
> https://codereview.chromium.org/2812963002/
>
> https://codereview.chromium.org/2805743003/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698