Chromium Code Reviews| Index: components/crash/content/app/breakpad_linux.cc |
| diff --git a/components/crash/content/app/breakpad_linux.cc b/components/crash/content/app/breakpad_linux.cc |
| index 036424c8368ce07c18eef7f3d03a676c1c78d8a5..0d3de65043a0b66fc1d3bc8fee578ae13179f611 100644 |
| --- a/components/crash/content/app/breakpad_linux.cc |
| +++ b/components/crash/content/app/breakpad_linux.cc |
| @@ -1951,7 +1951,14 @@ void InitCrashReporter(const std::string& process_type) { |
| if (parsed_command_line.HasSwitch(switches::kDisableBreakpad)) |
| return; |
| - if (process_type.empty()) { |
| + bool is_browser_process = |
| +#if defined(OS_ANDROID) |
| + process_type == kWebViewSingleProcessType || |
| + process_type == kBrowserProcessType || |
|
Torne
2017/04/10 14:06:29
How annoying would it be to change all the uses of
Tobias Sargeant
2017/04/10 14:21:14
It seems like it would be worth it. It's not our c
Robert Sesek
2017/04/10 15:17:18
The process_type.empty() meaning browser is a bake
|
| +#endif |
| + process_type.empty(); |
| + |
| + if (is_browser_process) { |
| bool enable_breakpad = GetCrashReporterClient()->GetCollectStatsConsent() || |
| GetCrashReporterClient()->IsRunningUnattended(); |
| enable_breakpad &= |