Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: chrome/utility/utility_thread.cc

Issue 155944: Switch the first thread in a child process to be the main thread... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/utility/utility_thread.cc
===================================================================
--- chrome/utility/utility_thread.cc (revision 21342)
+++ chrome/utility/utility_thread.cc (working copy)
@@ -11,22 +11,13 @@
#include "chrome/common/extensions/extension_unpacker.h"
#include "chrome/common/render_messages.h"
-UtilityThread::UtilityThread() : ChildThread(base::Thread::Options()) {
+UtilityThread::UtilityThread() {
+ ChildProcess::current()->AddRefProcess();
}
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)

Powered by Google App Engine
This is Rietveld 408576698