OLD | NEW |
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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/system_monitor/system_monitor.h" | 7 #include "base/system_monitor/system_monitor.h" |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 #include "content/common/child_process.h" | 9 #include "content/common/child_process.h" |
10 #include "content/common/content_switches.h" | |
11 #include "content/common/hi_res_timer_manager.h" | 10 #include "content/common/hi_res_timer_manager.h" |
12 #include "content/common/main_function_params.h" | 11 #include "content/common/main_function_params.h" |
| 12 #include "content/public/common/content_switches.h" |
13 #include "content/utility/utility_thread.h" | 13 #include "content/utility/utility_thread.h" |
14 | 14 |
15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
16 #include "sandbox/src/sandbox.h" | 16 #include "sandbox/src/sandbox.h" |
17 #endif | 17 #endif |
18 | 18 |
19 // Mainline routine for running as the utility process. | 19 // Mainline routine for running as the utility process. |
20 int UtilityMain(const MainFunctionParams& parameters) { | 20 int UtilityMain(const MainFunctionParams& parameters) { |
21 // The main message loop of the utility process. | 21 // The main message loop of the utility process. |
22 MessageLoop main_message_loop; | 22 MessageLoop main_message_loop; |
(...skipping 13 matching lines...) Expand all Loading... |
36 if (!target_services) | 36 if (!target_services) |
37 return false; | 37 return false; |
38 target_services->LowerToken(); | 38 target_services->LowerToken(); |
39 } | 39 } |
40 #endif | 40 #endif |
41 | 41 |
42 MessageLoop::current()->Run(); | 42 MessageLoop::current()->Run(); |
43 | 43 |
44 return 0; | 44 return 0; |
45 } | 45 } |
OLD | NEW |