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

Unified Diff: chrome/worker/worker_main.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/worker/worker_main.cc
===================================================================
--- chrome/worker/worker_main.cc (revision 21342)
+++ chrome/worker/worker_main.cc (working copy)
@@ -20,15 +20,16 @@
// Mainline routine for running as the worker process.
int WorkerMain(const MainFunctionParams& parameters) {
- // The main thread of the render process.
- MessageLoopForIO main_message_loop;
+ // The main message loop of the worker process.
+ MessageLoop 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(new WorkerThread());
+ ChildProcess worker_process;
+ worker_process.set_main_thread(new WorkerThread());
#if defined(OS_WIN)
sandbox::TargetServices* target_services =
parameters.sandbox_info_.TargetServices();

Powered by Google App Engine
This is Rietveld 408576698