Chromium Code Reviews| Index: ash/common/accelerators/debug_commands.cc |
| diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc |
| index 1b7d3b20e45b58c9e5805a8c3b88499c3371a49a..c4af569e68041e7b24095a1a2d02f8afd717a4eb 100644 |
| --- a/ash/common/accelerators/debug_commands.cc |
| +++ b/ash/common/accelerators/debug_commands.cc |
| @@ -17,6 +17,7 @@ |
| #include "ash/common/wm_window_property.h" |
| #include "ash/root_window_controller.h" |
| #include "base/command_line.h" |
| +#include "base/debug/crash_logging.h" |
| #include "base/metrics/user_metrics.h" |
| #include "base/metrics/user_metrics_action.h" |
| #include "base/strings/utf_string_conversions.h" |
| @@ -149,6 +150,8 @@ void HandleToggleTouchView() { |
| } |
| void HandleTriggerCrash() { |
| + // Allow manual testing of crash keys. |
| + base::debug::SetCrashKeyValue("url-chunk", "crash-url-chunk-for-testing"); |
|
hashimoto
2017/03/02 07:42:22
This line depends on chrome/common/crash_keys.cc t
|
| CHECK(false) << "Intentional crash via debug accelerator."; |
| } |