summaryrefslogtreecommitdiffstats
path: root/chrome/utility/utility_thread.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 22:20:20 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 22:20:20 +0000
commitf717ea6403554cc60a5dd9312fe585cdf64a8815 (patch)
tree523186875fe4c36bcc1c6905b3da36943a174318 /chrome/utility/utility_thread.cc
parente74b81de4f2785b5cff5cb0cc85e76b3d434248e (diff)
downloadchromium_src-f717ea6403554cc60a5dd9312fe585cdf64a8815.zip
chromium_src-f717ea6403554cc60a5dd9312fe585cdf64a8815.tar.gz
chromium_src-f717ea6403554cc60a5dd9312fe585cdf64a8815.tar.bz2
Switch the first thread in a child process to be the main thread, and make the IO thread be the second thread. The change is needed for plugins on mac.
Review URL: http://codereview.chromium.org/149558 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/utility/utility_thread.cc')
-rw-r--r--chrome/utility/utility_thread.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/chrome/utility/utility_thread.cc b/chrome/utility/utility_thread.cc
index 46815b1..dc9f965 100644
--- a/chrome/utility/utility_thread.cc
+++ b/chrome/utility/utility_thread.cc
@@ -11,20 +11,11 @@
#include "chrome/common/extensions/extension_unpacker.h"
#include "chrome/common/render_messages.h"
-UtilityThread::UtilityThread() : ChildThread(base::Thread::Options()) {
-}
-
-UtilityThread::~UtilityThread() {
-}
-
-void UtilityThread::Init() {
- ChildThread::Init();
+UtilityThread::UtilityThread() {
ChildProcess::current()->AddRefProcess();
}
-void UtilityThread::CleanUp() {
- // Shutdown in reverse of the initialization order.
- ChildThread::CleanUp();
+UtilityThread::~UtilityThread() {
}
void UtilityThread::OnControlMessageReceived(const IPC::Message& msg) {