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

Side by Side Diff: chrome/browser/browser_main.cc

Issue 6245006: Update references part 3: remaining files in chrome/...... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/browser/browser_focus_uitest.cc ('k') | chrome/browser/chromeos/frame/browser_view.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 "chrome/browser/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "app/resource_bundle.h" 12 #include "app/resource_bundle.h"
13 #include "base/at_exit.h" 13 #include "base/at_exit.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/debug/trace_event.h" 15 #include "base/debug/trace_event.h"
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/file_util.h" 17 #include "base/file_util.h"
18 #include "base/mac/scoped_nsautorelease_pool.h" 18 #include "base/mac/scoped_nsautorelease_pool.h"
19 #include "base/metrics/field_trial.h" 19 #include "base/metrics/field_trial.h"
20 #include "base/metrics/histogram.h" 20 #include "base/metrics/histogram.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/threading/platform_thread.h"
23 #include "base/process_util.h" 22 #include "base/process_util.h"
24 #include "base/string_number_conversions.h" 23 #include "base/string_number_conversions.h"
25 #include "base/string_piece.h" 24 #include "base/string_piece.h"
26 #include "base/string_split.h" 25 #include "base/string_split.h"
27 #include "base/string_util.h" 26 #include "base/string_util.h"
28 #include "base/sys_string_conversions.h" 27 #include "base/sys_string_conversions.h"
28 #include "base/threading/platform_thread.h"
29 #include "base/threading/thread_restrictions.h" 29 #include "base/threading/thread_restrictions.h"
30 #include "base/time.h" 30 #include "base/time.h"
31 #include "base/utf_string_conversions.h" 31 #include "base/utf_string_conversions.h"
32 #include "base/values.h" 32 #include "base/values.h"
33 #include "build/build_config.h" 33 #include "build/build_config.h"
34 #include "chrome/browser/about_flags.h" 34 #include "chrome/browser/about_flags.h"
35 #include "chrome/browser/browser_main_win.h" 35 #include "chrome/browser/browser_main_win.h"
36 #include "chrome/browser/prefs/browser_prefs.h"
37 #include "chrome/browser/browser_process.h" 36 #include "chrome/browser/browser_process.h"
38 #include "chrome/browser/browser_process_impl.h" 37 #include "chrome/browser/browser_process_impl.h"
39 #include "chrome/browser/browser_shutdown.h" 38 #include "chrome/browser/browser_shutdown.h"
40 #include "chrome/browser/browser_thread.h" 39 #include "chrome/browser/browser_thread.h"
41 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 40 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
42 #include "chrome/browser/extensions/extension_protocols.h" 41 #include "chrome/browser/extensions/extension_protocols.h"
43 #include "chrome/browser/extensions/extension_service.h" 42 #include "chrome/browser/extensions/extension_service.h"
44 #include "chrome/browser/extensions/extensions_startup.h" 43 #include "chrome/browser/extensions/extensions_startup.h"
45 #include "chrome/browser/first_run/first_run.h" 44 #include "chrome/browser/first_run/first_run.h"
46 #include "chrome/browser/jankometer.h" 45 #include "chrome/browser/jankometer.h"
47 #include "chrome/browser/metrics/histogram_synchronizer.h" 46 #include "chrome/browser/metrics/histogram_synchronizer.h"
48 #include "chrome/browser/metrics/metrics_log.h" 47 #include "chrome/browser/metrics/metrics_log.h"
49 #include "chrome/browser/metrics/metrics_service.h" 48 #include "chrome/browser/metrics/metrics_service.h"
50 #include "chrome/browser/net/blob_url_request_job_factory.h" 49 #include "chrome/browser/net/blob_url_request_job_factory.h"
51 #include "chrome/browser/net/chrome_dns_cert_provenance_checker.h" 50 #include "chrome/browser/net/chrome_dns_cert_provenance_checker.h"
52 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h" 51 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h"
53 #include "chrome/browser/net/metadata_url_request.h" 52 #include "chrome/browser/net/metadata_url_request.h"
54 #include "chrome/browser/net/predictor_api.h" 53 #include "chrome/browser/net/predictor_api.h"
55 #include "chrome/browser/net/sdch_dictionary_fetcher.h" 54 #include "chrome/browser/net/sdch_dictionary_fetcher.h"
56 #include "chrome/browser/net/websocket_experiment/websocket_experiment_runner.h" 55 #include "chrome/browser/net/websocket_experiment/websocket_experiment_runner.h"
57 #include "chrome/browser/plugin_service.h" 56 #include "chrome/browser/plugin_service.h"
57 #include "chrome/browser/prefs/browser_prefs.h"
58 #include "chrome/browser/prefs/pref_service.h" 58 #include "chrome/browser/prefs/pref_service.h"
59 #include "chrome/browser/prefs/pref_value_store.h" 59 #include "chrome/browser/prefs/pref_value_store.h"
60 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 60 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
61 #include "chrome/browser/process_singleton.h" 61 #include "chrome/browser/process_singleton.h"
62 #include "chrome/browser/profiles/profile.h" 62 #include "chrome/browser/profiles/profile.h"
63 #include "chrome/browser/profiles/profile_manager.h" 63 #include "chrome/browser/profiles/profile_manager.h"
64 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 64 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
65 #include "chrome/browser/search_engines/search_engine_type.h" 65 #include "chrome/browser/search_engines/search_engine_type.h"
66 #include "chrome/browser/search_engines/template_url.h" 66 #include "chrome/browser/search_engines/template_url.h"
67 #include "chrome/browser/search_engines/template_url_model.h" 67 #include "chrome/browser/search_engines/template_url_model.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 #include "ui/base/system_monitor/system_monitor.h" 103 #include "ui/base/system_monitor/system_monitor.h"
104 104
105 #if defined(USE_LINUX_BREAKPAD) 105 #if defined(USE_LINUX_BREAKPAD)
106 #include "base/linux_util.h" 106 #include "base/linux_util.h"
107 #include "chrome/app/breakpad_linux.h" 107 #include "chrome/app/breakpad_linux.h"
108 #endif 108 #endif
109 109
110 #if defined(OS_POSIX) && !defined(OS_MACOSX) 110 #if defined(OS_POSIX) && !defined(OS_MACOSX)
111 #include <dbus/dbus-glib.h> 111 #include <dbus/dbus-glib.h>
112 #include "chrome/browser/browser_main_gtk.h" 112 #include "chrome/browser/browser_main_gtk.h"
113 #include "chrome/browser/gtk/gtk_util.h" 113 #include "chrome/browser/ui/gtk/gtk_util.h"
114 #endif 114 #endif
115 115
116 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
117 #include "chrome/browser/chromeos/boot_times_loader.h" 117 #include "chrome/browser/chromeos/boot_times_loader.h"
118 #include "chrome/browser/oom_priority_manager.h" 118 #include "chrome/browser/oom_priority_manager.h"
119 #endif 119 #endif
120 120
121 // TODO(port): several win-only methods have been pulled out of this, but 121 // TODO(port): several win-only methods have been pulled out of this, but
122 // BrowserMain() as a whole needs to be broken apart so that it's usable by 122 // BrowserMain() as a whole needs to be broken apart so that it's usable by
123 // other platforms. For now, it's just a stub. This is a serious work in 123 // other platforms. For now, it's just a stub. This is a serious work in
124 // progress and should not be taken as an indication of a real refactoring. 124 // progress and should not be taken as an indication of a real refactoring.
125 125
126 #if defined(OS_WIN) 126 #if defined(OS_WIN)
127 #include <windows.h>
128 #include <commctrl.h> 127 #include <commctrl.h>
129 #include <shellapi.h> 128 #include <shellapi.h>
129 #include <windows.h>
130 130
131 #include "app/l10n_util_win.h" 131 #include "app/l10n_util_win.h"
132 #include "app/win/scoped_com_initializer.h" 132 #include "app/win/scoped_com_initializer.h"
133 #include "chrome/browser/browser_trial.h" 133 #include "chrome/browser/browser_trial.h"
134 #include "chrome/browser/metrics/user_metrics.h" 134 #include "chrome/browser/metrics/user_metrics.h"
135 #include "chrome/browser/net/url_fixer_upper.h" 135 #include "chrome/browser/net/url_fixer_upper.h"
136 #include "chrome/browser/rlz/rlz.h" 136 #include "chrome/browser/rlz/rlz.h"
137 #include "chrome/browser/ui/views/user_data_dir_dialog.h" 137 #include "chrome/browser/ui/views/user_data_dir_dialog.h"
138 #include "chrome/common/sandbox_policy.h" 138 #include "chrome/common/sandbox_policy.h"
139 #include "chrome/installer/util/helper.h" 139 #include "chrome/installer/util/helper.h"
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 #if defined(OS_CHROMEOS) 1746 #if defined(OS_CHROMEOS)
1747 // To be precise, logout (browser shutdown) is not yet done, but the 1747 // To be precise, logout (browser shutdown) is not yet done, but the
1748 // remaining work is negligible, hence we say LogoutDone here. 1748 // remaining work is negligible, hence we say LogoutDone here.
1749 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", 1749 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone",
1750 false); 1750 false);
1751 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); 1751 chromeos::BootTimesLoader::Get()->WriteLogoutTimes();
1752 #endif 1752 #endif
1753 TRACE_EVENT_END("BrowserMain", 0, 0); 1753 TRACE_EVENT_END("BrowserMain", 0, 0);
1754 return result_code; 1754 return result_code;
1755 } 1755 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/browser/chromeos/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698