Chromium Code Reviews| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 188 {"swdh_register_cannot_scope_url", crash_keys::kLargeSize}, | 188 {"swdh_register_cannot_scope_url", crash_keys::kLargeSize}, |
| 189 {"swdh_register_cannot_script_url", crash_keys::kLargeSize}, | 189 {"swdh_register_cannot_script_url", crash_keys::kLargeSize}, |
| 190 | 190 |
| 191 // Temporary for https://crbug.com/619294. | 191 // Temporary for https://crbug.com/619294. |
| 192 {"swdh_unregister_cannot_host_url", crash_keys::kLargeSize}, | 192 {"swdh_unregister_cannot_host_url", crash_keys::kLargeSize}, |
| 193 {"swdh_unregister_cannot_scope_url", crash_keys::kLargeSize}, | 193 {"swdh_unregister_cannot_scope_url", crash_keys::kLargeSize}, |
| 194 | 194 |
| 195 // Temporary for https://crbug.com/630496. | 195 // Temporary for https://crbug.com/630496. |
| 196 {"swdh_get_registration_cannot_host_url", crash_keys::kLargeSize}, | 196 {"swdh_get_registration_cannot_host_url", crash_keys::kLargeSize}, |
| 197 {"swdh_get_registration_cannot_document_url", crash_keys::kLargeSize}, | 197 {"swdh_get_registration_cannot_document_url", crash_keys::kLargeSize}, |
| 198 | |
| 199 // Temporary for https://crbug.com/660427 | |
|
scottmg
2016/11/01 21:58:57
nit; Trailing . on comments.
alex clarke (OOO till 29th)
2016/11/02 13:41:36
Done.
| |
| 200 {"blink_scheduler_task_function_name", crash_keys::kMediumSize}, | |
| 201 {"blink_scheduler_task_file_name", crash_keys::kMediumSize}, | |
| 198 }; | 202 }; |
| 199 | 203 |
| 200 // 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 |
| 201 // a collection of data, like command line switches or extension IDs. | 205 // a collection of data, like command line switches or extension IDs. |
| 202 std::vector<base::debug::CrashKey> keys(fixed_keys, | 206 std::vector<base::debug::CrashKey> keys(fixed_keys, |
| 203 fixed_keys + arraysize(fixed_keys)); | 207 fixed_keys + arraysize(fixed_keys)); |
| 204 | 208 |
| 205 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 209 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| 206 | 210 |
| 207 // Register the extension IDs. | 211 // Register the extension IDs. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 397 bool ChromeCrashReporterClient::GetCollectStatsInSample() { | 401 bool ChromeCrashReporterClient::GetCollectStatsInSample() { |
| 398 return install_static::GetCollectStatsInSample(); | 402 return install_static::GetCollectStatsInSample(); |
| 399 } | 403 } |
| 400 | 404 |
| 401 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 405 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 402 const std::string& process_type) { | 406 const std::string& process_type) { |
| 403 return process_type == install_static::kRendererProcess || | 407 return process_type == install_static::kRendererProcess || |
| 404 process_type == install_static::kPpapiPluginProcess || | 408 process_type == install_static::kPpapiPluginProcess || |
| 405 process_type == install_static::kGpuProcess; | 409 process_type == install_static::kGpuProcess; |
| 406 } | 410 } |
| OLD | NEW |