summaryrefslogtreecommitdiffstats
path: root/chrome/worker/worker_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/worker/worker_main.cc')
-rw-r--r--chrome/worker/worker_main.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/worker/worker_main.cc b/chrome/worker/worker_main.cc
index d6304ab..03831b8b 100644
--- a/chrome/worker/worker_main.cc
+++ b/chrome/worker/worker_main.cc
@@ -20,16 +20,15 @@
// Mainline routine for running as the worker process.
int WorkerMain(const MainFunctionParams& parameters) {
- // The main message loop of the worker process.
- MessageLoop main_message_loop;
+ // The main thread of the render process.
+ MessageLoopForIO main_message_loop;
std::wstring app_name = chrome::kBrowserAppName;
PlatformThread::SetName(WideToASCII(app_name + L"_WorkerMain").c_str());
// Initialize the SystemMonitor
base::SystemMonitor::Start();
- ChildProcess worker_process;
- worker_process.set_main_thread(new WorkerThread());
+ ChildProcess worker_process(new WorkerThread());
#if defined(OS_WIN)
sandbox::TargetServices* target_services =
parameters.sandbox_info_.TargetServices();