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

Side by Side Diff: chrome/profile_import/profile_import_main.cc

Issue 7529003: Make base::MessageLoops have names at construction time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make message loop name optional. Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/nacl/nacl_main.cc ('k') | chrome/service/service_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/threading/platform_thread.h"
7 #include "chrome/profile_import/profile_import_thread.h" 6 #include "chrome/profile_import/profile_import_thread.h"
8 #include "content/common/child_process.h" 7 #include "content/common/child_process.h"
9 8
10 struct MainFunctionParams; 9 struct MainFunctionParams;
11 10
12 // Mainline routine for running as the profile import process. 11 // Mainline routine for running as the profile import process.
13 int ProfileImportMain(const MainFunctionParams& parameters) { 12 int ProfileImportMain(const MainFunctionParams& parameters) {
14 // The main message loop of the profile import process. 13 // The main message loop of the profile import process.
15 MessageLoop main_message_loop; 14 MessageLoop main_message_loop("CrProfileImportMain");
16 base::PlatformThread::SetName("CrProfileImportMain");
17 15
18 ChildProcess profile_import_process; 16 ChildProcess profile_import_process;
19 profile_import_process.set_main_thread(new ProfileImportThread()); 17 profile_import_process.set_main_thread(new ProfileImportThread());
20 18
21 MessageLoop::current()->Run(); 19 MessageLoop::current()->Run();
22 20
23 return 0; 21 return 0;
24 } 22 }
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_main.cc ('k') | chrome/service/service_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698