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

Unified Diff: chrome/utility/utility_thread.cc

Issue 155876: Revert r21117 as it caused reliability failures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/utility/utility_thread.h ('k') | chrome/worker/worker_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/utility_thread.cc
===================================================================
--- chrome/utility/utility_thread.cc (revision 21215)
+++ chrome/utility/utility_thread.cc (working copy)
@@ -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)
« no previous file with comments | « chrome/utility/utility_thread.h ('k') | chrome/worker/worker_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698