| 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 // TODO(ananta/scottmg) | 5 // TODO(ananta/scottmg) |
| 6 // Add test coverage for Crashpad. | 6 // Add test coverage for Crashpad. |
| 7 #include "chrome/app/chrome_crash_reporter_client_win.h" | 7 #include "chrome/app/chrome_crash_reporter_client_win.h" |
| 8 | 8 |
| 9 #include <assert.h> | 9 #include <assert.h> |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 } | 349 } |
| 350 | 350 |
| 351 bool ChromeCrashReporterClient::IsRunningUnattended() { | 351 bool ChromeCrashReporterClient::IsRunningUnattended() { |
| 352 return install_static::HasEnvironmentVariable16(install_static::kHeadless); | 352 return install_static::HasEnvironmentVariable16(install_static::kHeadless); |
| 353 } | 353 } |
| 354 | 354 |
| 355 bool ChromeCrashReporterClient::GetCollectStatsConsent() { | 355 bool ChromeCrashReporterClient::GetCollectStatsConsent() { |
| 356 return install_static::GetCollectStatsConsent(); | 356 return install_static::GetCollectStatsConsent(); |
| 357 } | 357 } |
| 358 | 358 |
| 359 bool ChromeCrashReporterClient::GetCollectStatsInSample() { |
| 360 return install_static::GetCollectStatsInSample(); |
| 361 } |
| 362 |
| 359 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 363 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 360 const std::string& process_type) { | 364 const std::string& process_type) { |
| 361 return process_type == install_static::kRendererProcess || | 365 return process_type == install_static::kRendererProcess || |
| 362 process_type == install_static::kPpapiPluginProcess || | 366 process_type == install_static::kPpapiPluginProcess || |
| 363 process_type == install_static::kGpuProcess; | 367 process_type == install_static::kGpuProcess; |
| 364 } | 368 } |
| OLD | NEW |