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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // The following keys may be chunked by the underlying crash logging system, | 87 // The following keys may be chunked by the underlying crash logging system, |
88 // but ultimately constitute a single key-value pair. | 88 // but ultimately constitute a single key-value pair. |
89 // | 89 // |
90 // For now these need to be kept relatively up to date with those in | 90 // For now these need to be kept relatively up to date with those in |
91 // chrome/common/crash_keys.cc::RegisterChromeCrashKeys(). | 91 // chrome/common/crash_keys.cc::RegisterChromeCrashKeys(). |
92 constexpr base::debug::CrashKey fixed_keys[] = { | 92 constexpr base::debug::CrashKey fixed_keys[] = { |
93 {kMetricsClientId, kSmallSize}, | 93 {kMetricsClientId, kSmallSize}, |
94 {kChannel, kSmallSize}, | 94 {kChannel, kSmallSize}, |
95 {kActiveURL, kLargeSize}, | 95 {kActiveURL, kLargeSize}, |
96 {kNumVariations, kSmallSize}, | 96 {kNumVariations, kSmallSize}, |
97 {kVariations, kLargeSize}, | 97 {kVariations, kHugeSize}, |
98 {kNumExtensionsCount, kSmallSize}, | 98 {kNumExtensionsCount, kSmallSize}, |
99 {kShutdownType, kSmallSize}, | 99 {kShutdownType, kSmallSize}, |
100 {kBrowserUnpinTrace, kMediumSize}, | 100 {kBrowserUnpinTrace, kMediumSize}, |
101 {kGPUVendorID, kSmallSize}, | 101 {kGPUVendorID, kSmallSize}, |
102 {kGPUDeviceID, kSmallSize}, | 102 {kGPUDeviceID, kSmallSize}, |
103 {kGPUDriverVersion, kSmallSize}, | 103 {kGPUDriverVersion, kSmallSize}, |
104 {kGPUPixelShaderVersion, kSmallSize}, | 104 {kGPUPixelShaderVersion, kSmallSize}, |
105 {kGPUVertexShaderVersion, kSmallSize}, | 105 {kGPUVertexShaderVersion, kSmallSize}, |
106 | 106 |
107 // browser/: | 107 // browser/: |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 bool ChromeCrashReporterClient::GetCollectStatsInSample() { | 399 bool ChromeCrashReporterClient::GetCollectStatsInSample() { |
400 return install_static::GetCollectStatsInSample(); | 400 return install_static::GetCollectStatsInSample(); |
401 } | 401 } |
402 | 402 |
403 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 403 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
404 const std::string& process_type) { | 404 const std::string& process_type) { |
405 // This is not used by Crashpad (at least on Windows). | 405 // This is not used by Crashpad (at least on Windows). |
406 NOTREACHED(); | 406 NOTREACHED(); |
407 return true; | 407 return true; |
408 } | 408 } |
OLD | NEW |