| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 {"postmessage_dst_origin", kMediumSize}, | 190 {"postmessage_dst_origin", kMediumSize}, |
| 191 {"postmessage_dst_url", kLargeSize}, | 191 {"postmessage_dst_url", kLargeSize}, |
| 192 {"postmessage_script_info", kLargeSize}, | 192 {"postmessage_script_info", kLargeSize}, |
| 193 | 193 |
| 194 // Temporary for https://crbug.com/616149. | 194 // Temporary for https://crbug.com/616149. |
| 195 {"existing_extension_pref_value_type", crash_keys::kSmallSize}, | 195 {"existing_extension_pref_value_type", crash_keys::kSmallSize}, |
| 196 | 196 |
| 197 // Temporary for https://crbug.com/668633. | 197 // Temporary for https://crbug.com/668633. |
| 198 {"swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize}, | 198 {"swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize}, |
| 199 {"swdh_set_hosted_version_host_pid", crash_keys::kSmallSize}, | 199 {"swdh_set_hosted_version_host_pid", crash_keys::kSmallSize}, |
| 200 {"swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize}, |
| 201 {"swdh_set_hosted_version_restart_count", crash_keys::kSmallSize}, |
| 200 }; | 202 }; |
| 201 | 203 |
| 202 // This dynamic set of keys is used for sets of key value pairs when gathering | 204 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 203 // a collection of data, like command line switches or extension IDs. | 205 // a collection of data, like command line switches or extension IDs. |
| 204 std::vector<base::debug::CrashKey> keys(fixed_keys, | 206 std::vector<base::debug::CrashKey> keys(fixed_keys, |
| 205 fixed_keys + arraysize(fixed_keys)); | 207 fixed_keys + arraysize(fixed_keys)); |
| 206 | 208 |
| 207 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 209 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| 208 | 210 |
| 209 // Register the extension IDs. | 211 // Register the extension IDs. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 bool ChromeCrashReporterClient::GetCollectStatsInSample() { | 397 bool ChromeCrashReporterClient::GetCollectStatsInSample() { |
| 396 return install_static::GetCollectStatsInSample(); | 398 return install_static::GetCollectStatsInSample(); |
| 397 } | 399 } |
| 398 | 400 |
| 399 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 401 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 400 const std::string& process_type) { | 402 const std::string& process_type) { |
| 401 // This is not used by Crashpad (at least on Windows). | 403 // This is not used by Crashpad (at least on Windows). |
| 402 NOTREACHED(); | 404 NOTREACHED(); |
| 403 return true; | 405 return true; |
| 404 } | 406 } |
| OLD | NEW |