| OLD | NEW |
| 1 // Copyright (c) 2010 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/hi_res_timer_manager.h" | 11 #include "app/hi_res_timer_manager.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #include <windows.h> | 127 #include <windows.h> |
| 128 #include <commctrl.h> | 128 #include <commctrl.h> |
| 129 #include <shellapi.h> | 129 #include <shellapi.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/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" |
| 140 #include "chrome/installer/util/install_util.h" | 140 #include "chrome/installer/util/install_util.h" |
| 141 #include "chrome/installer/util/shell_util.h" | 141 #include "chrome/installer/util/shell_util.h" |
| 142 #include "gfx/platform_font_win.h" | 142 #include "gfx/platform_font_win.h" |
| 143 #include "net/base/net_util.h" | 143 #include "net/base/net_util.h" |
| 144 #include "net/base/sdch_manager.h" | 144 #include "net/base/sdch_manager.h" |
| 145 #include "printing/printed_document.h" | 145 #include "printing/printed_document.h" |
| 146 #include "sandbox/src/sandbox.h" | 146 #include "sandbox/src/sandbox.h" |
| 147 #endif // defined(OS_WIN) | 147 #endif // defined(OS_WIN) |
| 148 | 148 |
| 149 #if defined(OS_MACOSX) | 149 #if defined(OS_MACOSX) |
| 150 #include <Security/Security.h> | 150 #include <Security/Security.h> |
| 151 #include "chrome/browser/ui/cocoa/install_from_dmg.h" | 151 #include "chrome/browser/ui/cocoa/install_from_dmg.h" |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 #if defined(TOOLKIT_VIEWS) | 154 #if defined(TOOLKIT_VIEWS) |
| 155 #include "chrome/browser/views/chrome_views_delegate.h" | 155 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
| 156 #include "views/focus/accelerator_handler.h" | 156 #include "views/focus/accelerator_handler.h" |
| 157 #endif | 157 #endif |
| 158 | 158 |
| 159 #if defined(OS_CHROMEOS) | 159 #if defined(OS_CHROMEOS) |
| 160 #include "chrome/browser/chromeos/cros/cros_library.h" | 160 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 161 #include "chrome/browser/chromeos/cros/screen_lock_library.h" | 161 #include "chrome/browser/chromeos/cros/screen_lock_library.h" |
| 162 #include "chrome/browser/chromeos/customization_document.h" | 162 #include "chrome/browser/chromeos/customization_document.h" |
| 163 #include "chrome/browser/chromeos/external_metrics.h" | 163 #include "chrome/browser/chromeos/external_metrics.h" |
| 164 #include "chrome/browser/chromeos/login/authenticator.h" | 164 #include "chrome/browser/chromeos/login/authenticator.h" |
| 165 #include "chrome/browser/chromeos/login/login_utils.h" | 165 #include "chrome/browser/chromeos/login/login_utils.h" |
| 166 #include "chrome/browser/chromeos/login/screen_locker.h" | 166 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 167 #include "chrome/browser/chromeos/login/user_manager.h" | 167 #include "chrome/browser/chromeos/login/user_manager.h" |
| 168 #include "chrome/browser/chromeos/metrics_cros_settings_provider.h" | 168 #include "chrome/browser/chromeos/metrics_cros_settings_provider.h" |
| 169 #include "chrome/browser/views/browser_dialogs.h" | 169 #include "chrome/browser/ui/views/browser_dialogs.h" |
| 170 #endif | 170 #endif |
| 171 | 171 |
| 172 #if defined(TOOLKIT_USES_GTK) | 172 #if defined(TOOLKIT_USES_GTK) |
| 173 #include "gfx/gtk_util.h" | 173 #include "gfx/gtk_util.h" |
| 174 #endif | 174 #endif |
| 175 | 175 |
| 176 // BrowserMainParts ------------------------------------------------------------ | 176 // BrowserMainParts ------------------------------------------------------------ |
| 177 | 177 |
| 178 BrowserMainParts::BrowserMainParts(const MainFunctionParams& parameters) | 178 BrowserMainParts::BrowserMainParts(const MainFunctionParams& parameters) |
| 179 : parameters_(parameters), | 179 : parameters_(parameters), |
| (...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 #if defined(OS_CHROMEOS) | 1735 #if defined(OS_CHROMEOS) |
| 1736 // To be precise, logout (browser shutdown) is not yet done, but the | 1736 // To be precise, logout (browser shutdown) is not yet done, but the |
| 1737 // remaining work is negligible, hence we say LogoutDone here. | 1737 // remaining work is negligible, hence we say LogoutDone here. |
| 1738 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", | 1738 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", |
| 1739 false); | 1739 false); |
| 1740 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); | 1740 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); |
| 1741 #endif | 1741 #endif |
| 1742 TRACE_EVENT_END("BrowserMain", 0, 0); | 1742 TRACE_EVENT_END("BrowserMain", 0, 0); |
| 1743 return result_code; | 1743 return result_code; |
| 1744 } | 1744 } |
| OLD | NEW |