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

Side by Side Diff: chrome/service/service_main.cc

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_platform_delegate_win.cc ('k') | content/app/content_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/debug/debugger.h" 5 #include "base/debug/debugger.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "chrome/common/service_process_util.h" 8 #include "chrome/common/service_process_util.h"
9 #include "chrome/service/service_process.h" 9 #include "chrome/service/service_process.h"
10 #include "content/common/main_function_params.h" 10 #include "content/public/common/main_function_params.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include "content/common/sandbox_policy.h" 13 #include "content/common/sandbox_policy.h"
14 #include "sandbox/src/sandbox_types.h" 14 #include "sandbox/src/sandbox_types.h"
15 #elif defined(OS_MACOSX) 15 #elif defined(OS_MACOSX)
16 #include "chrome/service/chrome_service_application_mac.h" 16 #include "chrome/service/chrome_service_application_mac.h"
17 #endif // defined(OS_WIN) 17 #endif // defined(OS_WIN)
18 18
19 // Mainline routine for running as the service process. 19 // Mainline routine for running as the service process.
20 int ServiceProcessMain(const MainFunctionParams& parameters) { 20 int ServiceProcessMain(const content::MainFunctionParams& parameters) {
21 MessageLoopForUI main_message_loop; 21 MessageLoopForUI main_message_loop;
22 main_message_loop.set_thread_name("MainThread"); 22 main_message_loop.set_thread_name("MainThread");
23 if (parameters.command_line.HasSwitch(switches::kWaitForDebugger)) { 23 if (parameters.command_line.HasSwitch(switches::kWaitForDebugger)) {
24 base::debug::WaitForDebugger(60, true); 24 base::debug::WaitForDebugger(60, true);
25 } 25 }
26 26
27 VLOG(1) << "Service process launched: " 27 VLOG(1) << "Service process launched: "
28 << parameters.command_line.GetCommandLineString(); 28 << parameters.command_line.GetCommandLineString();
29 29
30 #if defined(OS_MACOSX) 30 #if defined(OS_MACOSX)
(...skipping 18 matching lines...) Expand all
49 if (service_process.Initialize(&main_message_loop, 49 if (service_process.Initialize(&main_message_loop,
50 parameters.command_line, 50 parameters.command_line,
51 state.release())) { 51 state.release())) {
52 MessageLoop::current()->Run(); 52 MessageLoop::current()->Run();
53 } else { 53 } else {
54 LOG(ERROR) << "Service process failed to initialize"; 54 LOG(ERROR) << "Service process failed to initialize";
55 } 55 }
56 service_process.Teardown(); 56 service_process.Teardown();
57 return 0; 57 return 0;
58 } 58 }
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_main_platform_delegate_win.cc ('k') | content/app/content_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698