| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_delegate.h" | 5 #include "chrome/app/chrome_main_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/cpu.h" | 11 #include "base/cpu.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/metrics/statistics_recorder.h" | 17 #include "base/metrics/statistics_recorder.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/process/memory.h" | 19 #include "base/process/memory.h" |
| 20 #include "base/process/process_handle.h" | 20 #include "base/process/process_handle.h" |
| 21 #include "base/process/process_info.h" | 21 #include "base/process/process_info.h" |
| 22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
| 23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
| 24 #include "base/trace_event/trace_event_impl.h" | 24 #include "base/trace_event/trace_event_impl.h" |
| 25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
| 26 #include "chrome/app/chrome_crash_reporter_client.h" | |
| 27 #include "chrome/browser/chrome_content_browser_client.h" | 26 #include "chrome/browser/chrome_content_browser_client.h" |
| 28 #include "chrome/browser/defaults.h" | 27 #include "chrome/browser/defaults.h" |
| 29 #include "chrome/common/channel_info.h" | 28 #include "chrome/common/channel_info.h" |
| 30 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 31 #include "chrome/common/chrome_content_client.h" | 30 #include "chrome/common/chrome_content_client.h" |
| 32 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
| 33 #include "chrome/common/chrome_paths_internal.h" | 32 #include "chrome/common/chrome_paths_internal.h" |
| 34 #include "chrome/common/chrome_result_codes.h" | 33 #include "chrome/common/chrome_result_codes.h" |
| 35 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 36 #include "chrome/common/crash_keys.h" | 35 #include "chrome/common/crash_keys.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "chrome/browser/mac/relauncher.h" | 72 #include "chrome/browser/mac/relauncher.h" |
| 74 #include "chrome/common/mac/cfbundle_blocker.h" | 73 #include "chrome/common/mac/cfbundle_blocker.h" |
| 75 #include "components/crash/content/app/crashpad.h" | 74 #include "components/crash/content/app/crashpad.h" |
| 76 #include "components/crash/core/common/objc_zombie.h" | 75 #include "components/crash/core/common/objc_zombie.h" |
| 77 #include "ui/base/l10n/l10n_util_mac.h" | 76 #include "ui/base/l10n/l10n_util_mac.h" |
| 78 #endif | 77 #endif |
| 79 | 78 |
| 80 #if defined(OS_POSIX) | 79 #if defined(OS_POSIX) |
| 81 #include <locale.h> | 80 #include <locale.h> |
| 82 #include <signal.h> | 81 #include <signal.h> |
| 82 #include "chrome/app/chrome_crash_reporter_client.h" |
| 83 #endif | 83 #endif |
| 84 | 84 |
| 85 #if !defined(DISABLE_NACL) && defined(OS_LINUX) | 85 #if !defined(DISABLE_NACL) && defined(OS_LINUX) |
| 86 #include "components/nacl/common/nacl_paths.h" | 86 #include "components/nacl/common/nacl_paths.h" |
| 87 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" | 87 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" |
| 88 #endif | 88 #endif |
| 89 | 89 |
| 90 #if defined(OS_CHROMEOS) | 90 #if defined(OS_CHROMEOS) |
| 91 #include "base/sys_info.h" | 91 #include "base/sys_info.h" |
| 92 #include "chrome/browser/chromeos/boot_times_recorder.h" | 92 #include "chrome/browser/chromeos/boot_times_recorder.h" |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 case version_info::Channel::CANARY: | 1012 case version_info::Channel::CANARY: |
| 1013 return true; | 1013 return true; |
| 1014 case version_info::Channel::DEV: | 1014 case version_info::Channel::DEV: |
| 1015 case version_info::Channel::BETA: | 1015 case version_info::Channel::BETA: |
| 1016 case version_info::Channel::STABLE: | 1016 case version_info::Channel::STABLE: |
| 1017 default: | 1017 default: |
| 1018 // Don't enable instrumentation. | 1018 // Don't enable instrumentation. |
| 1019 return false; | 1019 return false; |
| 1020 } | 1020 } |
| 1021 } | 1021 } |
| OLD | NEW |