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 "chrome/app/chrome_main.h" | 5 #include "chrome/app/chrome_main.h" |
6 | 6 |
7 #include "app/app_paths.h" | 7 #include "app/app_paths.h" |
8 #include "app/app_switches.h" | 8 #include "app/app_switches.h" |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/platform_util.h" | 26 #include "chrome/browser/platform_util.h" |
27 #include "chrome/common/chrome_constants.h" | 27 #include "chrome/common/chrome_constants.h" |
28 #include "chrome/common/chrome_content_client.h" | 28 #include "chrome/common/chrome_content_client.h" |
29 #include "chrome/common/chrome_counters.h" | 29 #include "chrome/common/chrome_counters.h" |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
31 #include "chrome/common/chrome_paths_internal.h" | 31 #include "chrome/common/chrome_paths_internal.h" |
32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/chrome_version_info.h" | 33 #include "chrome/common/chrome_version_info.h" |
34 #include "chrome/common/logging_chrome.h" | 34 #include "chrome/common/logging_chrome.h" |
35 #include "chrome/common/profiling.h" | 35 #include "chrome/common/profiling.h" |
36 #include "chrome/common/set_process_title.h" | |
37 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
38 #include "content/browser/renderer_host/render_process_host.h" | 37 #include "content/browser/renderer_host/render_process_host.h" |
39 #include "content/common/content_client.h" | 38 #include "content/common/content_client.h" |
40 #include "content/common/content_paths.h" | 39 #include "content/common/content_paths.h" |
41 #include "content/common/main_function_params.h" | 40 #include "content/common/main_function_params.h" |
42 #include "content/common/sandbox_init_wrapper.h" | 41 #include "content/common/sandbox_init_wrapper.h" |
| 42 #include "content/common/set_process_title.h" |
43 #include "ipc/ipc_switches.h" | 43 #include "ipc/ipc_switches.h" |
44 #include "ui/base/resource/resource_bundle.h" | 44 #include "ui/base/resource/resource_bundle.h" |
45 #include "ui/base/ui_base_paths.h" | 45 #include "ui/base/ui_base_paths.h" |
46 #include "ui/base/ui_base_switches.h" | 46 #include "ui/base/ui_base_switches.h" |
47 | 47 |
48 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
49 #include <algorithm> | 49 #include <algorithm> |
50 #include <malloc.h> | 50 #include <malloc.h> |
51 #include "base/win/registry.h" | 51 #include "base/win/registry.h" |
52 #include "sandbox/src/sandbox.h" | 52 #include "sandbox/src/sandbox.h" |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 | 773 |
774 if (SubprocessNeedsResourceBundle(process_type)) | 774 if (SubprocessNeedsResourceBundle(process_type)) |
775 ResourceBundle::CleanupSharedInstance(); | 775 ResourceBundle::CleanupSharedInstance(); |
776 | 776 |
777 logging::CleanupChromeLogging(); | 777 logging::CleanupChromeLogging(); |
778 | 778 |
779 chrome_main::LowLevelShutdown(); | 779 chrome_main::LowLevelShutdown(); |
780 | 780 |
781 return exit_code; | 781 return exit_code; |
782 } | 782 } |
OLD | NEW |