| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_crash_reporter_client.h" | 5 #include "chrome/app/chrome_crash_reporter_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/environment.h" | 8 #include "base/environment.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 185 } |
| 186 | 186 |
| 187 int ChromeCrashReporterClient::GetResultCodeRespawnFailed() { | 187 int ChromeCrashReporterClient::GetResultCodeRespawnFailed() { |
| 188 return chrome::RESULT_CODE_RESPAWN_FAILED; | 188 return chrome::RESULT_CODE_RESPAWN_FAILED; |
| 189 } | 189 } |
| 190 | 190 |
| 191 void ChromeCrashReporterClient::InitBrowserCrashDumpsRegKey() { | 191 void ChromeCrashReporterClient::InitBrowserCrashDumpsRegKey() { |
| 192 #if !defined(NACL_WIN64) | 192 #if !defined(NACL_WIN64) |
| 193 if (GetCollectStatsConsent()){ | 193 if (GetCollectStatsConsent()){ |
| 194 crash_reporting_metrics_.reset(new browser_watcher::CrashReportingMetrics( | 194 crash_reporting_metrics_.reset(new browser_watcher::CrashReportingMetrics( |
| 195 InstallUtil::IsChromeSxSProcess() | 195 chrome::GetBrowserCrashDumpAttemptsRegistryPath())); |
| 196 ? chrome::kBrowserCrashDumpAttemptsRegistryPathSxS | |
| 197 : chrome::kBrowserCrashDumpAttemptsRegistryPath)); | |
| 198 } | 196 } |
| 199 #endif | 197 #endif |
| 200 } | 198 } |
| 201 | 199 |
| 202 void ChromeCrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) { | 200 void ChromeCrashReporterClient::RecordCrashDumpAttempt(bool is_real_crash) { |
| 203 #if !defined(NACL_WIN64) | 201 #if !defined(NACL_WIN64) |
| 204 if (!crash_reporting_metrics_) | 202 if (!crash_reporting_metrics_) |
| 205 return; | 203 return; |
| 206 | 204 |
| 207 if (is_real_crash) | 205 if (is_real_crash) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 #endif | 341 #endif |
| 344 | 342 |
| 345 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 343 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 346 const std::string& process_type) { | 344 const std::string& process_type) { |
| 347 return process_type == switches::kRendererProcess || | 345 return process_type == switches::kRendererProcess || |
| 348 process_type == switches::kPluginProcess || | 346 process_type == switches::kPluginProcess || |
| 349 process_type == switches::kPpapiPluginProcess || | 347 process_type == switches::kPpapiPluginProcess || |
| 350 process_type == switches::kZygoteProcess || | 348 process_type == switches::kZygoteProcess || |
| 351 process_type == switches::kGpuProcess; | 349 process_type == switches::kGpuProcess; |
| 352 } | 350 } |
| OLD | NEW |