summaryrefslogtreecommitdiffstats
path: root/content/test/webrtc_audio_device_test.cc
diff options
context:
space:
mode:
authormarshall@chromium.org <marshall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 22:26:16 +0000
committermarshall@chromium.org <marshall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 22:26:16 +0000
commit06c694d0cfa60d007b8f22ccdbc69780c52b6d41 (patch)
tree16d1408712c9f4ad681fe39f829dc52202e60065 /content/test/webrtc_audio_device_test.cc
parent858a0f0a7d0d7ee4efff67e10250adb9648a8219 (diff)
downloadchromium_src-06c694d0cfa60d007b8f22ccdbc69780c52b6d41.zip
chromium_src-06c694d0cfa60d007b8f22ccdbc69780c52b6d41.tar.gz
chromium_src-06c694d0cfa60d007b8f22ccdbc69780c52b6d41.tar.bz2
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 Review URL: http://codereview.chromium.org/9297022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/webrtc_audio_device_test.cc')
-rw-r--r--content/test/webrtc_audio_device_test.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc
index 35e13c4..4dc6ec1 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -122,7 +122,6 @@ void WebRTCAudioDeviceTest::SetUp() {
WaitForIOThreadCompletion();
render_thread_ = new RenderThreadImpl(kThreadName);
- mock_process_->set_main_thread(render_thread_);
}
void WebRTCAudioDeviceTest::TearDown() {