diff options
Diffstat (limited to 'chrome/utility/utility_thread.cc')
-rw-r--r-- | chrome/utility/utility_thread.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/utility/utility_thread.cc b/chrome/utility/utility_thread.cc index dc9f965..46815b1 100644 --- a/chrome/utility/utility_thread.cc +++ b/chrome/utility/utility_thread.cc @@ -11,13 +11,22 @@ #include "chrome/common/extensions/extension_unpacker.h" #include "chrome/common/render_messages.h" -UtilityThread::UtilityThread() { - ChildProcess::current()->AddRefProcess(); +UtilityThread::UtilityThread() : ChildThread(base::Thread::Options()) { } UtilityThread::~UtilityThread() { } +void UtilityThread::Init() { + ChildThread::Init(); + ChildProcess::current()->AddRefProcess(); +} + +void UtilityThread::CleanUp() { + // Shutdown in reverse of the initialization order. + ChildThread::CleanUp(); +} + void UtilityThread::OnControlMessageReceived(const IPC::Message& msg) { IPC_BEGIN_MESSAGE_MAP(UtilityThread, msg) IPC_MESSAGE_HANDLER(UtilityMsg_UnpackExtension, OnUnpackExtension) |