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

Issue 1600263002: Post a task to the IO thread to add a ResourceContext in ResourceDispatcherHostImpl. (Closed)

Created:
4 years, 11 months ago by Anand Mistry (off Chromium)
Modified:
4 years, 11 months ago
Reviewers:
kinuko, mmenke
CC:
chromium-reviews, loading-reviews_chromium.org, darin-cc_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Post a task to the IO thread to add a ResourceContext in ResourceDispatcherHostImpl. ResourceDispatcherHostImpl::AddResourceContext() is called on the UI thread, but all other users of |active_resource_contexts_| access it on the IO thread. Committed: https://crrev.com/3f29b4056e85ed6259b679e9858134422caaf72f Cr-Commit-Position: refs/heads/master@{#371687}

Patch Set 1 #

Patch Set 2 : Post task instead of using lock. #

Patch Set 3 : Move task posting to call site. #

Total comments: 2

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (12 generated)
Anand Mistry (off Chromium)
I found this using tsan. It was happening when an incognito profile was being created. ...
4 years, 11 months ago (2016-01-18 23:28:05 UTC) #2
mmenke
On 2016/01/18 23:28:05, Anand Mistry wrote: > I found this using tsan. It was happening ...
4 years, 11 months ago (2016-01-19 16:55:57 UTC) #3
Anand Mistry (off Chromium)
On 2016/01/19 16:55:57, mmenke wrote: > On 2016/01/18 23:28:05, Anand Mistry wrote: > > I ...
4 years, 11 months ago (2016-01-19 23:03:22 UTC) #4
mmenke
On 2016/01/19 23:03:22, Anand Mistry wrote: > On 2016/01/19 16:55:57, mmenke wrote: > > On ...
4 years, 11 months ago (2016-01-19 23:25:14 UTC) #5
Anand Mistry (off Chromium)
On 2016/01/19 23:25:14, mmenke wrote: > On 2016/01/19 23:03:22, Anand Mistry wrote: > > On ...
4 years, 11 months ago (2016-01-19 23:41:54 UTC) #6
mmenke
On 2016/01/19 23:41:54, Anand Mistry wrote: > On 2016/01/19 23:25:14, mmenke wrote: > > On ...
4 years, 11 months ago (2016-01-20 00:09:59 UTC) #7
Anand Mistry (off Chromium)
On 2016/01/20 00:09:59, mmenke wrote: > On 2016/01/19 23:41:54, Anand Mistry wrote: > > On ...
4 years, 11 months ago (2016-01-20 02:31:29 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1600263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1600263002/20001
4 years, 11 months ago (2016-01-20 02:34:41 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/81614) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 11 months ago (2016-01-20 02:48:57 UTC) #14
mmenke
Seems to me like the PostTask should really be in ResourceContext::ResourceContext - every other method ...
4 years, 11 months ago (2016-01-20 15:48:03 UTC) #15
Anand Mistry (off Chromium)
On 2016/01/20 15:48:03, mmenke wrote: > Seems to me like the PostTask should really be ...
4 years, 11 months ago (2016-01-21 00:00:44 UTC) #16
mmenke
LGTM! https://codereview.chromium.org/1600263002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1600263002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode546 content/browser/loader/resource_dispatcher_host_impl.cc:546: DCHECK_CURRENTLY_ON(BrowserThread::IO); May want to add a DCHECK to ...
4 years, 11 months ago (2016-01-21 16:33:34 UTC) #17
Anand Mistry (off Chromium)
https://codereview.chromium.org/1600263002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1600263002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode546 content/browser/loader/resource_dispatcher_host_impl.cc:546: DCHECK_CURRENTLY_ON(BrowserThread::IO); On 2016/01/21 16:33:34, mmenke wrote: > May want ...
4 years, 11 months ago (2016-01-21 19:41:52 UTC) #18
mmenke
On 2016/01/21 19:41:52, Anand Mistry wrote: > https://codereview.chromium.org/1600263002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc > File content/browser/loader/resource_dispatcher_host_impl.cc (right): > > https://codereview.chromium.org/1600263002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode546 ...
4 years, 11 months ago (2016-01-21 19:45:14 UTC) #19
mmenke
On 2016/01/21 19:45:14, mmenke wrote: > On 2016/01/21 19:41:52, Anand Mistry wrote: > > > ...
4 years, 11 months ago (2016-01-21 19:46:40 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1600263002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1600263002/40001
4 years, 11 months ago (2016-01-21 20:04:45 UTC) #22
Anand Mistry (off Chromium)
On 2016/01/21 19:46:40, mmenke wrote: > On 2016/01/21 19:45:14, mmenke wrote: > > On 2016/01/21 ...
4 years, 11 months ago (2016-01-21 20:04:46 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 21:10:20 UTC) #25
Anand Mistry (off Chromium)
kinuko@chromium.org: For content OWNERS approval.
4 years, 11 months ago (2016-01-21 22:28:15 UTC) #27
kinuko
lgtm
4 years, 11 months ago (2016-01-26 09:14:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1600263002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1600263002/60001
4 years, 11 months ago (2016-01-27 00:41:26 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-27 01:56:32 UTC) #33
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 01:57:59 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3f29b4056e85ed6259b679e9858134422caaf72f
Cr-Commit-Position: refs/heads/master@{#371687}

Powered by Google App Engine
This is Rietveld 408576698