diff options
author | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 22:40:12 +0000 |
---|---|---|
committer | chase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 22:40:12 +0000 |
commit | c37f3e0fce65fb28618384916deb712693bfce73 (patch) | |
tree | 3f915db21580364fb5013e3b3c2134b7800745a4 /chrome/browser/renderer_host/resource_dispatcher_host.cc | |
parent | d6d1774e7fe541c36489a5dbbb19ce6acfa097ad (diff) | |
download | chromium_src-c37f3e0fce65fb28618384916deb712693bfce73.zip chromium_src-c37f3e0fce65fb28618384916deb712693bfce73.tar.gz chromium_src-c37f3e0fce65fb28618384916deb712693bfce73.tar.bz2 |
RESUBMIT of http://codereview.chromium.org/404025/show
Start the WebKit thread when we initialize the resource
dispatcher host.
NOTE: It's very possible this will have a startup
performance impact. I'm going to watch the bots after
committing.
TODO: Clean up shutdown logic that exists simply
because we don't know whether or not we'll ever start
the WebKit thread.
Originally landed in r33063, reverted in r33101 due to
coincidence with Modules Linux startup test failures.
TBR=jorlow, darin
TEST=The WebKit thread gets spun up early in the
initialization process.
BUG=24144,28364
Review URL: http://codereview.chromium.org/441025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_dispatcher_host.cc')
-rw-r--r-- | chrome/browser/renderer_host/resource_dispatcher_host.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc index 3b0f99e..7203cd9 100644 --- a/chrome/browser/renderer_host/resource_dispatcher_host.cc +++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc @@ -286,6 +286,7 @@ ResourceDispatcherHost::~ResourceDispatcherHost() { void ResourceDispatcherHost::Initialize() { DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); + webkit_thread_->Initialize(); safe_browsing_->Initialize(); ChromeThread::PostTask( ChromeThread::IO, FROM_HERE, |