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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" | 81 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" |
82 #endif | 82 #endif |
83 | 83 |
84 #if defined(OS_CHROMEOS) | 84 #if defined(OS_CHROMEOS) |
85 #include "base/sys_info.h" | 85 #include "base/sys_info.h" |
86 #include "chrome/browser/chromeos/boot_times_recorder.h" | 86 #include "chrome/browser/chromeos/boot_times_recorder.h" |
87 #include "chromeos/chromeos_paths.h" | 87 #include "chromeos/chromeos_paths.h" |
88 #include "chromeos/chromeos_switches.h" | 88 #include "chromeos/chromeos_switches.h" |
89 #endif | 89 #endif |
90 | 90 |
91 #if defined(ANDROID_JAVA_UI) | |
92 #include "chrome/browser/android/java_exception_reporter.h" | |
93 #endif | |
94 | |
91 #if defined(OS_ANDROID) | 95 #if defined(OS_ANDROID) |
92 #include "chrome/browser/android/java_exception_reporter.h" | |
93 #include "chrome/common/descriptors_android.h" | 96 #include "chrome/common/descriptors_android.h" |
94 #else | 97 #else |
95 // Diagnostics is only available on non-android platforms. | 98 // Diagnostics is only available on non-android platforms. |
96 #include "chrome/browser/diagnostics/diagnostics_controller.h" | 99 #include "chrome/browser/diagnostics/diagnostics_controller.h" |
97 #include "chrome/browser/diagnostics/diagnostics_writer.h" | 100 #include "chrome/browser/diagnostics/diagnostics_writer.h" |
98 #endif | 101 #endif |
99 | 102 |
100 #if defined(USE_X11) | 103 #if defined(USE_X11) |
101 #include <stdlib.h> | 104 #include <stdlib.h> |
102 #include <string.h> | 105 #include <string.h> |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
785 | 788 |
786 chrome::InitializePDF(); | 789 chrome::InitializePDF(); |
787 #endif | 790 #endif |
788 | 791 |
789 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 792 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
790 // Zygote needs to call InitCrashReporter() in RunZygote(). | 793 // Zygote needs to call InitCrashReporter() in RunZygote(). |
791 if (process_type != switches::kZygoteProcess) { | 794 if (process_type != switches::kZygoteProcess) { |
792 #if defined(OS_ANDROID) | 795 #if defined(OS_ANDROID) |
793 if (process_type.empty()) { | 796 if (process_type.empty()) { |
794 breakpad::InitCrashReporter(process_type); | 797 breakpad::InitCrashReporter(process_type); |
798 #if defined(ANDROID_JAVA_UI) | |
Ted C
2015/11/30 19:39:04
You always want this.
no sievers
2015/11/30 23:56:34
Yes, but it wouldn't work as is because I'm removi
| |
795 chrome::android::InitJavaExceptionReporter(); | 799 chrome::android::InitJavaExceptionReporter(); |
800 #endif | |
796 } else { | 801 } else { |
797 breakpad::InitNonBrowserCrashReporterForAndroid(process_type); | 802 breakpad::InitNonBrowserCrashReporterForAndroid(process_type); |
798 } | 803 } |
799 #else // !defined(OS_ANDROID) | 804 #else // !defined(OS_ANDROID) |
800 breakpad::InitCrashReporter(process_type); | 805 breakpad::InitCrashReporter(process_type); |
801 #endif // defined(OS_ANDROID) | 806 #endif // defined(OS_ANDROID) |
802 } | 807 } |
803 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) | 808 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
804 | 809 |
805 // After all the platform Breakpads have been initialized, store the command | 810 // After all the platform Breakpads have been initialized, store the command |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
980 case version_info::Channel::CANARY: | 985 case version_info::Channel::CANARY: |
981 return true; | 986 return true; |
982 case version_info::Channel::DEV: | 987 case version_info::Channel::DEV: |
983 case version_info::Channel::BETA: | 988 case version_info::Channel::BETA: |
984 case version_info::Channel::STABLE: | 989 case version_info::Channel::STABLE: |
985 default: | 990 default: |
986 // Don't enable instrumentation. | 991 // Don't enable instrumentation. |
987 return false; | 992 return false; |
988 } | 993 } |
989 } | 994 } |
OLD | NEW |