diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 05:55:10 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 05:55:10 +0000 |
commit | ab820df141e6ab45fd8a095d2f57f91df44e6c9c (patch) | |
tree | 20ae83601c4a484cd74c908b62bc9d702ef27996 /chrome/browser/browser_process_impl.cc | |
parent | 4d9bdfafcd1393385860bc9fe947e0c07719c0f4 (diff) | |
download | chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.zip chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.tar.gz chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.tar.bz2 |
Chrome changes corresponding to my message_loop_type CL.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r-- | chrome/browser/browser_process_impl.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index 57c0d71..5c218ca 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -269,8 +269,11 @@ void BrowserProcessImpl::CreateIOThread() { // invoke the io_thread() accessor. PluginService::GetInstance(); - scoped_ptr<Thread> thread(new BrowserProcessSubThread(ChromeThread::IO)); - if (!thread->Start()) + scoped_ptr<base::Thread> thread( + new BrowserProcessSubThread(ChromeThread::IO)); + base::Thread::Options options; + options.message_loop_type = MessageLoop::TYPE_IO; + if (!thread->StartWithOptions(options)) return; io_thread_.swap(thread); } @@ -279,7 +282,8 @@ void BrowserProcessImpl::CreateFileThread() { DCHECK(!created_file_thread_ && file_thread_.get() == NULL); created_file_thread_ = true; - scoped_ptr<Thread> thread(new BrowserProcessSubThread(ChromeThread::FILE)); + scoped_ptr<base::Thread> thread( + new BrowserProcessSubThread(ChromeThread::FILE)); if (!thread->Start()) return; file_thread_.swap(thread); @@ -289,7 +293,8 @@ void BrowserProcessImpl::CreateDBThread() { DCHECK(!created_db_thread_ && db_thread_.get() == NULL); created_db_thread_ = true; - scoped_ptr<Thread> thread(new BrowserProcessSubThread(ChromeThread::DB)); + scoped_ptr<base::Thread> thread( + new BrowserProcessSubThread(ChromeThread::DB)); if (!thread->Start()) return; db_thread_.swap(thread); |