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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 breakpad::InitNonBrowserCrashReporterForAndroid(process_type); | 797 breakpad::InitNonBrowserCrashReporterForAndroid(process_type); |
798 } | 798 } |
799 #else // !defined(OS_ANDROID) | 799 #else // !defined(OS_ANDROID) |
800 breakpad::InitCrashReporter(process_type); | 800 breakpad::InitCrashReporter(process_type); |
801 #endif // defined(OS_ANDROID) | 801 #endif // defined(OS_ANDROID) |
802 } | 802 } |
803 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) | 803 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
804 | 804 |
805 // After all the platform Breakpads have been initialized, store the command | 805 // After all the platform Breakpads have been initialized, store the command |
806 // line for crash reporting. | 806 // line for crash reporting. |
807 crash_keys::SetSwitchesFromCommandLine(&command_line); | 807 crash_keys::SetCrashKeysFromCommandLine(command_line); |
808 } | 808 } |
809 | 809 |
810 void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) { | 810 void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) { |
811 // Note: If you are adding a new process type below, be sure to adjust the | 811 // Note: If you are adding a new process type below, be sure to adjust the |
812 // AdjustLinuxOOMScore function too. | 812 // AdjustLinuxOOMScore function too. |
813 #if defined(OS_LINUX) | 813 #if defined(OS_LINUX) |
814 AdjustLinuxOOMScore(process_type); | 814 AdjustLinuxOOMScore(process_type); |
815 #endif | 815 #endif |
816 #if defined(OS_WIN) | 816 #if defined(OS_WIN) |
817 InitLogging(process_type); | 817 InitLogging(process_type); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 case version_info::Channel::CANARY: | 980 case version_info::Channel::CANARY: |
981 return true; | 981 return true; |
982 case version_info::Channel::DEV: | 982 case version_info::Channel::DEV: |
983 case version_info::Channel::BETA: | 983 case version_info::Channel::BETA: |
984 case version_info::Channel::STABLE: | 984 case version_info::Channel::STABLE: |
985 default: | 985 default: |
986 // Don't enable instrumentation. | 986 // Don't enable instrumentation. |
987 return false; | 987 return false; |
988 } | 988 } |
989 } | 989 } |
OLD | NEW |