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

Issue 9297022: Change ChildProcess::set_main_thread registration to occur inside the RenderThreadImpl::Init method. (Closed)

Created:
8 years, 11 months ago by Marshall
Modified:
8 years, 10 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Change ChildProcess::set_main_thread registration to occur inside the RenderThreadImpl::Init method. Background: The Init method is currently called from the RenderThreadImpl constructor. If set_main_thread is not called from Init then ContentRendererClient::RenderThreadStarted, which is also called from Init, will not be able to retrieve the current child thread using ChildThread::current. Retrieving the current child thread from inside RenderThreadStarted is necessary for performing actions that must occur before message processing starts such as adding additional MessageFilters to the child thread's channel. BUG=112335 TEST=ChildThread::current() returns non-NULL in ContentRendererClient::RenderThreadStarted Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120112

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/audio_renderer_impl_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/test/render_view_fake_resources_test.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Marshall
Hi John, Please review this preliminary patch set and let me know if you agree ...
8 years, 11 months ago (2012-01-27 19:02:52 UTC) #1
jam
I'm not sure I follow. The callback is from RenderThreadImpl::Init(), so why doesn't RenderThread::current() work?
8 years, 11 months ago (2012-01-27 19:12:06 UTC) #2
Marshall
On 2012/01/27 19:12:06, John Abd-El-Malek wrote: > I'm not sure I follow. The callback is ...
8 years, 11 months ago (2012-01-27 19:14:14 UTC) #3
Marshall
On 2012/01/27 19:14:14, Marshall wrote: > On 2012/01/27 19:12:06, John Abd-El-Malek wrote: > > I'm ...
8 years, 11 months ago (2012-01-27 19:15:31 UTC) #4
Marshall
On 2012/01/27 19:15:31, Marshall wrote: > On 2012/01/27 19:14:14, Marshall wrote: > > On 2012/01/27 ...
8 years, 11 months ago (2012-01-27 19:19:45 UTC) #5
jam
This doesn't make sense to me, can you dig into this deeper? Are you calling ...
8 years, 11 months ago (2012-01-27 19:22:33 UTC) #6
Marshall
On 2012/01/27 19:22:33, John Abd-El-Malek wrote: > This doesn't make sense to me, can you ...
8 years, 11 months ago (2012-01-27 19:34:41 UTC) #7
jam
On 2012/01/27 19:34:41, Marshall wrote: > On 2012/01/27 19:22:33, John Abd-El-Malek wrote: > > This ...
8 years, 11 months ago (2012-01-27 20:20:10 UTC) #8
Marshall
On 2012/01/27 20:20:10, John Abd-El-Malek wrote: > On 2012/01/27 19:34:41, Marshall wrote: > > On ...
8 years, 11 months ago (2012-01-27 20:44:27 UTC) #9
jam
On 2012/01/27 20:44:27, Marshall wrote: > On 2012/01/27 20:20:10, John Abd-El-Malek wrote: > > On ...
8 years, 11 months ago (2012-01-27 21:12:37 UTC) #10
Marshall
On 2012/01/27 21:12:37, John Abd-El-Malek wrote: > On 2012/01/27 20:44:27, Marshall wrote: > > On ...
8 years, 10 months ago (2012-01-30 15:28:42 UTC) #11
jam
http://codereview.chromium.org/9297022/diff/8001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): http://codereview.chromium.org/9297022/diff/8001/content/renderer/render_thread_impl.cc#newcode190 content/renderer/render_thread_impl.cc:190: ChildProcess::current()->set_main_thread(this); nit: can we do this in ChildThread's constructor? ...
8 years, 10 months ago (2012-01-30 19:46:12 UTC) #12
Marshall
On 2012/01/30 19:46:12, John Abd-El-Malek wrote: > http://codereview.chromium.org/9297022/diff/8001/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > > http://codereview.chromium.org/9297022/diff/8001/content/renderer/render_thread_impl.cc#newcode190 ...
8 years, 10 months ago (2012-02-01 15:44:44 UTC) #13
jam
On 2012/02/01 15:44:44, Marshall wrote: > On 2012/01/30 19:46:12, John Abd-El-Malek wrote: > > > ...
8 years, 10 months ago (2012-02-01 17:09:56 UTC) #14
Marshall
On 2012/02/01 17:09:56, John Abd-El-Malek wrote: > On 2012/02/01 15:44:44, Marshall wrote: > > On ...
8 years, 10 months ago (2012-02-01 19:45:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marshall@chromium.org/9297022/21003
8 years, 10 months ago (2012-02-01 19:49:08 UTC) #16
commit-bot: I haz the power
8 years, 10 months ago (2012-02-01 22:26:18 UTC) #17
Change committed as 120112

Powered by Google App Engine
This is Rietveld 408576698