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

Issue 2951813002: Make URLRequestContextBuilder use base/task_scheduler/ (Closed)

Created:
3 years, 6 months ago by mmenke
Modified:
3 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make URLRequestContextBuilder use base/task_scheduler/ when no file thread is specified. When no thread was input, it used to create a single thread itself and run most file operations on that. Now it creates [Sequenced]TaskRunners for the TransportSecurityPersister and to handle file URLs. It also creates a SingleThreadedTaskRunner for the cache, if enabled. This makes it more friendly to use in Chrome, without causing extra threads to be created. If this behavior is not desired, the consumer can still pass in a SingleThreadedTaskRunner, and that will be used instead. The properties it uses do not exactly match what ProfileIOData is using - file URLs now use a USER_BLOCKING TaskRunner instead of USER_VISIBLE. This is a followup to https://codereview.chromium.org/2929153002/. BUG=715695 Review-Url: https://codereview.chromium.org/2951813002 Cr-Commit-Position: refs/heads/master@{#482746} Committed: https://chromium.googlesource.com/chromium/src/+/8d890ab33ea80c5a4b903f7717c77043525088ab

Patch Set 1 #

Patch Set 2 : Fix #

Total comments: 13

Patch Set 3 : Response to comments #

Total comments: 3

Patch Set 4 : Switch to block shutdown #

Patch Set 5 : Merge #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -31 lines) Patch
M content/network/url_loader_unittest.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 2 4 chunks +15 lines, -2 lines 4 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 9 chunks +42 lines, -26 lines 0 comments Download

Messages

Total messages: 50 (34 generated)
mmenke
This fixes the other "Regression" from the IOThread CL, though you pointed out this on ...
3 years, 6 months ago (2017-06-20 23:14:26 UTC) #20
mmenke
On 2017/06/20 23:14:26, mmenke wrote: > This fixes the other "Regression" from the IOThread CL, ...
3 years, 6 months ago (2017-06-20 23:18:08 UTC) #24
Randy Smith (Not in Mondays)
On 2017/06/20 23:18:08, mmenke wrote: > On 2017/06/20 23:14:26, mmenke wrote: > > This fixes ...
3 years, 6 months ago (2017-06-21 12:23:29 UTC) #25
Randy Smith (Not in Mondays)
First round of comments. https://codereview.chromium.org/2951813002/diff/80001/net/url_request/url_request_context_builder.cc File net/url_request/url_request_context_builder.cc (right): https://codereview.chromium.org/2951813002/diff/80001/net/url_request/url_request_context_builder.cc#newcode419 net/url_request/url_request_context_builder.cc:419: GetSingleThreadTaskRunner( When I first looked ...
3 years, 6 months ago (2017-06-21 12:56:27 UTC) #26
mmenke
On 2017/06/21 12:23:29, Randy Smith (Not in Mondays) wrote: > On 2017/06/20 23:18:08, mmenke wrote: ...
3 years, 6 months ago (2017-06-21 15:13:47 UTC) #28
mmenke
https://codereview.chromium.org/2951813002/diff/80001/net/url_request/url_request_context_builder.cc File net/url_request/url_request_context_builder.cc (right): https://codereview.chromium.org/2951813002/diff/80001/net/url_request/url_request_context_builder.cc#newcode419 net/url_request/url_request_context_builder.cc:419: GetSingleThreadTaskRunner( On 2017/06/21 12:56:26, Randy Smith (Not in Mondays) ...
3 years, 6 months ago (2017-06-21 15:13:56 UTC) #29
mmenke
I don't know if you were listening in to my conversation, but I think we're ...
3 years, 6 months ago (2017-06-21 15:45:55 UTC) #32
Randy Smith (Not in Mondays)
Sorry this is taking so many rounds; trying to do them quickly. More high level ...
3 years, 6 months ago (2017-06-21 15:48:52 UTC) #33
Randy Smith (Not in Mondays)
On 2017/06/21 15:45:55, mmenke wrote: > I don't know if you were listening in to ...
3 years, 6 months ago (2017-06-21 15:50:27 UTC) #34
Maks Orlovich
https://codereview.chromium.org/2951813002/diff/100001/net/url_request/url_request_context_builder.cc File net/url_request/url_request_context_builder.cc (right): https://codereview.chromium.org/2951813002/diff/100001/net/url_request/url_request_context_builder.cc#newcode456 net/url_request/url_request_context_builder.cc:456: base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}))); In case of simple cache, it's "resilient" in ...
3 years, 6 months ago (2017-06-21 15:58:28 UTC) #35
mmenke
On 2017/06/21 15:48:52, Randy Smith (Not in Mondays) wrote: > Sorry this is taking so ...
3 years, 6 months ago (2017-06-21 16:07:56 UTC) #37
Randy Smith (Not in Mondays)
As we talked about offline, I'd like the CL description to be clear that this ...
3 years, 5 months ago (2017-06-27 21:00:51 UTC) #42
mmenke
Updated description https://codereview.chromium.org/2951813002/diff/140001/net/url_request/url_request_context_builder.h File net/url_request/url_request_context_builder.h (right): https://codereview.chromium.org/2951813002/diff/140001/net/url_request/url_request_context_builder.h#newcode366 net/url_request/url_request_context_builder.h:366: // traits. On 2017/06/27 21:00:51, Randy Smith ...
3 years, 5 months ago (2017-06-27 21:10:25 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2951813002/140001
3 years, 5 months ago (2017-06-27 21:10:51 UTC) #46
commit-bot: I haz the power
Committed patchset #5 (id:140001) as https://chromium.googlesource.com/chromium/src/+/8d890ab33ea80c5a4b903f7717c77043525088ab
3 years, 5 months ago (2017-06-27 21:15:53 UTC) #49
findit-for-me
3 years, 5 months ago (2017-06-28 21:42:28 UTC) #50
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) identified this CL at revision 482746 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698