| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #include "chrome/browser/mac/relauncher.h" | 71 #include "chrome/browser/mac/relauncher.h" |
| 73 #include "chrome/common/mac/cfbundle_blocker.h" | 72 #include "chrome/common/mac/cfbundle_blocker.h" |
| 74 #include "components/crash/content/app/crashpad.h" | 73 #include "components/crash/content/app/crashpad.h" |
| 75 #include "components/crash/core/common/objc_zombie.h" | 74 #include "components/crash/core/common/objc_zombie.h" |
| 76 #include "ui/base/l10n/l10n_util_mac.h" | 75 #include "ui/base/l10n/l10n_util_mac.h" |
| 77 #endif | 76 #endif |
| 78 | 77 |
| 79 #if defined(OS_POSIX) | 78 #if defined(OS_POSIX) |
| 80 #include <locale.h> | 79 #include <locale.h> |
| 81 #include <signal.h> | 80 #include <signal.h> |
| 81 #include "chrome/app/chrome_crash_reporter_client.h" |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 #if !defined(DISABLE_NACL) && defined(OS_LINUX) | 84 #if !defined(DISABLE_NACL) && defined(OS_LINUX) |
| 85 #include "components/nacl/common/nacl_paths.h" | 85 #include "components/nacl/common/nacl_paths.h" |
| 86 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" | 86 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 #if defined(OS_CHROMEOS) | 89 #if defined(OS_CHROMEOS) |
| 90 #include "base/sys_info.h" | 90 #include "base/sys_info.h" |
| 91 #include "chrome/browser/chromeos/boot_times_recorder.h" | 91 #include "chrome/browser/chromeos/boot_times_recorder.h" |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 case version_info::Channel::CANARY: | 1001 case version_info::Channel::CANARY: |
| 1002 return true; | 1002 return true; |
| 1003 case version_info::Channel::DEV: | 1003 case version_info::Channel::DEV: |
| 1004 case version_info::Channel::BETA: | 1004 case version_info::Channel::BETA: |
| 1005 case version_info::Channel::STABLE: | 1005 case version_info::Channel::STABLE: |
| 1006 default: | 1006 default: |
| 1007 // Don't enable instrumentation. | 1007 // Don't enable instrumentation. |
| 1008 return false; | 1008 return false; |
| 1009 } | 1009 } |
| 1010 } | 1010 } |
| OLD | NEW |