| 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 "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" |
| 12 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
| 13 #include "app/resource_bundle.h" | 13 #include "app/resource_bundle.h" |
| 14 #include "app/system_monitor.h" | 14 #include "app/system_monitor.h" |
| 15 #include "base/at_exit.h" | 15 #include "base/at_exit.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/debug/trace_event.h" |
| 17 #include "base/file_path.h" | 18 #include "base/file_path.h" |
| 18 #include "base/file_util.h" | 19 #include "base/file_util.h" |
| 19 #include "base/mac/scoped_nsautorelease_pool.h" | 20 #include "base/mac/scoped_nsautorelease_pool.h" |
| 20 #include "base/metrics/field_trial.h" | 21 #include "base/metrics/field_trial.h" |
| 21 #include "base/metrics/histogram.h" | 22 #include "base/metrics/histogram.h" |
| 22 #include "base/path_service.h" | 23 #include "base/path_service.h" |
| 23 #include "base/platform_thread.h" | 24 #include "base/platform_thread.h" |
| 24 #include "base/process_util.h" | 25 #include "base/process_util.h" |
| 25 #include "base/string_number_conversions.h" | 26 #include "base/string_number_conversions.h" |
| 26 #include "base/string_piece.h" | 27 #include "base/string_piece.h" |
| 27 #include "base/string_split.h" | 28 #include "base/string_split.h" |
| 28 #include "base/string_util.h" | 29 #include "base/string_util.h" |
| 29 #include "base/sys_string_conversions.h" | 30 #include "base/sys_string_conversions.h" |
| 30 #include "base/time.h" | 31 #include "base/time.h" |
| 31 #include "base/trace_event.h" | |
| 32 #include "base/utf_string_conversions.h" | 32 #include "base/utf_string_conversions.h" |
| 33 #include "base/values.h" | 33 #include "base/values.h" |
| 34 #include "build/build_config.h" | 34 #include "build/build_config.h" |
| 35 #include "chrome/browser/browser.h" | 35 #include "chrome/browser/browser.h" |
| 36 #include "chrome/browser/browser_main_win.h" | 36 #include "chrome/browser/browser_main_win.h" |
| 37 #include "chrome/browser/browser_init.h" | 37 #include "chrome/browser/browser_init.h" |
| 38 #include "chrome/browser/prefs/browser_prefs.h" | 38 #include "chrome/browser/prefs/browser_prefs.h" |
| 39 #include "chrome/browser/browser_process.h" | 39 #include "chrome/browser/browser_process.h" |
| 40 #include "chrome/browser/browser_process_impl.h" | 40 #include "chrome/browser/browser_process_impl.h" |
| 41 #include "chrome/browser/browser_shutdown.h" | 41 #include "chrome/browser/browser_shutdown.h" |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 metrics->Stop(); | 1549 metrics->Stop(); |
| 1550 | 1550 |
| 1551 // browser_shutdown takes care of deleting browser_process, so we need to | 1551 // browser_shutdown takes care of deleting browser_process, so we need to |
| 1552 // release it. | 1552 // release it. |
| 1553 ignore_result(browser_process.release()); | 1553 ignore_result(browser_process.release()); |
| 1554 browser_shutdown::Shutdown(); | 1554 browser_shutdown::Shutdown(); |
| 1555 | 1555 |
| 1556 TRACE_EVENT_END("BrowserMain", 0, 0); | 1556 TRACE_EVENT_END("BrowserMain", 0, 0); |
| 1557 return result_code; | 1557 return result_code; |
| 1558 } | 1558 } |
| OLD | NEW |