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

Unified Diff: chrome/browser/chrome_browser_application_mac.mm

Issue 2545823002: Store the NSEvent.description in a crash key in -[BrowserCrApplication sendEvent:]. (Closed)
Patch Set: Created 4 years 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/common/crash_keys.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_application_mac.mm
diff --git a/chrome/browser/chrome_browser_application_mac.mm b/chrome/browser/chrome_browser_application_mac.mm
index 5b4967e7564bc58e91cae4cec7a0ab3fda63c0c2..5a63b9f03ebecf9a81ed2bf24256cdf933e70347 100644
--- a/chrome/browser/chrome_browser_application_mac.mm
+++ b/chrome/browser/chrome_browser_application_mac.mm
@@ -351,6 +351,9 @@ void CancelTerminate() {
}
- (void)sendEvent:(NSEvent*)event {
+ base::debug::ScopedCrashKey crash_key(
+ crash_keys::mac::kNSEvent, base::SysNSStringToUTF8([event description]));
+
base::mac::CallWithEHFrame(^{
switch (event.type) {
case NSLeftMouseDown:
« no previous file with comments | « no previous file | chrome/common/crash_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698