| 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 "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "sandbox/win/src/sandbox.h" | 57 #include "sandbox/win/src/sandbox.h" |
| 58 #include "ui/base/resource/resource_bundle_win.h" | 58 #include "ui/base/resource/resource_bundle_win.h" |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
| 62 #include "base/mac/foundation_util.h" | 62 #include "base/mac/foundation_util.h" |
| 63 #include "chrome/app/chrome_main_mac.h" | 63 #include "chrome/app/chrome_main_mac.h" |
| 64 #include "chrome/browser/mac/relauncher.h" | 64 #include "chrome/browser/mac/relauncher.h" |
| 65 #include "chrome/common/mac/cfbundle_blocker.h" | 65 #include "chrome/common/mac/cfbundle_blocker.h" |
| 66 #include "chrome/common/mac/objc_zombie.h" | 66 #include "chrome/common/mac/objc_zombie.h" |
| 67 #include "components/crash/content/app/crashpad_mac.h" | 67 #include "components/crash/app/crashpad_mac.h" |
| 68 #include "ui/base/l10n/l10n_util_mac.h" | 68 #include "ui/base/l10n/l10n_util_mac.h" |
| 69 #endif | 69 #endif |
| 70 | 70 |
| 71 #if defined(OS_POSIX) | 71 #if defined(OS_POSIX) |
| 72 #include <locale.h> | 72 #include <locale.h> |
| 73 #include <signal.h> | 73 #include <signal.h> |
| 74 #include "chrome/app/chrome_crash_reporter_client.h" | 74 #include "chrome/app/chrome_crash_reporter_client.h" |
| 75 #include "components/crash/content/app/crash_reporter_client.h" | 75 #include "components/crash/app/crash_reporter_client.h" |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 #if !defined(DISABLE_NACL) && defined(OS_LINUX) | 78 #if !defined(DISABLE_NACL) && defined(OS_LINUX) |
| 79 #include "components/nacl/common/nacl_paths.h" | 79 #include "components/nacl/common/nacl_paths.h" |
| 80 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" | 80 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 #if defined(OS_CHROMEOS) | 83 #if defined(OS_CHROMEOS) |
| 84 #include "base/sys_info.h" | 84 #include "base/sys_info.h" |
| 85 #include "chrome/browser/chromeos/boot_times_recorder.h" | 85 #include "chrome/browser/chromeos/boot_times_recorder.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 96 #include "chrome/browser/diagnostics/diagnostics_writer.h" | 96 #include "chrome/browser/diagnostics/diagnostics_writer.h" |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 #if defined(USE_X11) | 99 #if defined(USE_X11) |
| 100 #include <stdlib.h> | 100 #include <stdlib.h> |
| 101 #include <string.h> | 101 #include <string.h> |
| 102 #include "ui/base/x/x11_util.h" | 102 #include "ui/base/x/x11_util.h" |
| 103 #endif | 103 #endif |
| 104 | 104 |
| 105 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 105 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 106 #include "components/crash/content/app/breakpad_linux.h" | 106 #include "components/crash/app/breakpad_linux.h" |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 #if defined(OS_LINUX) | 109 #if defined(OS_LINUX) |
| 110 #include "base/environment.h" | 110 #include "base/environment.h" |
| 111 #endif | 111 #endif |
| 112 | 112 |
| 113 #if defined(OS_MACOSX) || defined(OS_WIN) | 113 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 114 #include "chrome/browser/policy/policy_path_parser.h" | 114 #include "chrome/browser/policy/policy_path_parser.h" |
| 115 #endif | 115 #endif |
| 116 | 116 |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 case version_info::Channel::CANARY: | 945 case version_info::Channel::CANARY: |
| 946 return true; | 946 return true; |
| 947 case version_info::Channel::DEV: | 947 case version_info::Channel::DEV: |
| 948 case version_info::Channel::BETA: | 948 case version_info::Channel::BETA: |
| 949 case version_info::Channel::STABLE: | 949 case version_info::Channel::STABLE: |
| 950 default: | 950 default: |
| 951 // Don't enable instrumentation. | 951 // Don't enable instrumentation. |
| 952 return false; | 952 return false; |
| 953 } | 953 } |
| 954 } | 954 } |
| OLD | NEW |