Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: ash/common/accelerators/debug_commands.cc

Issue 2718123003: mash: Store chrome --mash crash key metadata in shared memory
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/mash/BUILD.gn » ('j') | chrome/app/mash/mash_crash_keys.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.";
}
« no previous file with comments | « no previous file | chrome/app/mash/BUILD.gn » ('j') | chrome/app/mash/mash_crash_keys.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698