OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/app_paths.h" | 5 #include "app/app_paths.h" |
6 #include "app/app_switches.h" | 6 #include "app/app_switches.h" |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
69 #include "chrome/browser/chromeos/boot_times_loader.h" | 69 #include "chrome/browser/chromeos/boot_times_loader.h" |
70 #endif | 70 #endif |
71 | 71 |
72 #if defined(USE_X11) | 72 #if defined(USE_X11) |
73 #include <gdk/gdk.h> | 73 #include <gdk/gdk.h> |
74 #include <glib.h> | 74 #include <glib.h> |
75 #include <gtk/gtk.h> | 75 #include <gtk/gtk.h> |
76 #include <stdlib.h> | 76 #include <stdlib.h> |
77 #include <string.h> | 77 #include <string.h> |
78 #include "app/x11_util.h" | 78 #include "ui/base/x/x11_util.h" |
79 #endif | 79 #endif |
80 | 80 |
81 #if defined(USE_TCMALLOC) | 81 #if defined(USE_TCMALLOC) |
82 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" | 82 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" |
83 #endif | 83 #endif |
84 | 84 |
85 extern int BrowserMain(const MainFunctionParams&); | 85 extern int BrowserMain(const MainFunctionParams&); |
86 extern int RendererMain(const MainFunctionParams&); | 86 extern int RendererMain(const MainFunctionParams&); |
87 extern int GpuMain(const MainFunctionParams&); | 87 extern int GpuMain(const MainFunctionParams&); |
88 extern int PluginMain(const MainFunctionParams&); | 88 extern int PluginMain(const MainFunctionParams&); |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 | 918 |
919 int exit_code = RunNamedProcessTypeMain(process_type, main_params); | 919 int exit_code = RunNamedProcessTypeMain(process_type, main_params); |
920 | 920 |
921 if (SubprocessNeedsResourceBundle(process_type)) | 921 if (SubprocessNeedsResourceBundle(process_type)) |
922 ResourceBundle::CleanupSharedInstance(); | 922 ResourceBundle::CleanupSharedInstance(); |
923 | 923 |
924 LowLevelShutdown(); | 924 LowLevelShutdown(); |
925 | 925 |
926 return exit_code; | 926 return exit_code; |
927 } | 927 } |
OLD | NEW |