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

Side by Side Diff: chrome/common/crash_keys.cc

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 unified diff | Download patch
« no previous file with comments | « chrome/common/crash_keys.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "chrome/common/crash_keys.h" 5 #include "chrome/common/crash_keys.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const char kFirstNSExceptionTrace[] = "firstexception_bt"; 75 const char kFirstNSExceptionTrace[] = "firstexception_bt";
76 76
77 const char kLastNSException[] = "lastexception"; 77 const char kLastNSException[] = "lastexception";
78 const char kLastNSExceptionTrace[] = "lastexception_bt"; 78 const char kLastNSExceptionTrace[] = "lastexception_bt";
79 79
80 const char kNSException[] = "nsexception"; 80 const char kNSException[] = "nsexception";
81 const char kNSExceptionTrace[] = "nsexception_bt"; 81 const char kNSExceptionTrace[] = "nsexception_bt";
82 82
83 const char kSendAction[] = "sendaction"; 83 const char kSendAction[] = "sendaction";
84 84
85 const char kNSEvent[] = "nsevent";
86
85 } // namespace mac 87 } // namespace mac
86 #endif 88 #endif
87 89
88 #if BUILDFLAG(ENABLE_KASKO) 90 #if BUILDFLAG(ENABLE_KASKO)
89 const char kKaskoGuid[] = "kasko-guid"; 91 const char kKaskoGuid[] = "kasko-guid";
90 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid"; 92 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid";
91 #endif 93 #endif
92 94
93 const char kViewCount[] = "view-count"; 95 const char kViewCount[] = "view-count";
94 96
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 { kNumberOfUsers, kSmallSize }, 151 { kNumberOfUsers, kSmallSize },
150 #endif 152 #endif
151 #if defined(OS_MACOSX) 153 #if defined(OS_MACOSX)
152 { mac::kFirstNSException, kMediumSize }, 154 { mac::kFirstNSException, kMediumSize },
153 { mac::kFirstNSExceptionTrace, kMediumSize }, 155 { mac::kFirstNSExceptionTrace, kMediumSize },
154 { mac::kLastNSException, kMediumSize }, 156 { mac::kLastNSException, kMediumSize },
155 { mac::kLastNSExceptionTrace, kMediumSize }, 157 { mac::kLastNSExceptionTrace, kMediumSize },
156 { mac::kNSException, kMediumSize }, 158 { mac::kNSException, kMediumSize },
157 { mac::kNSExceptionTrace, kMediumSize }, 159 { mac::kNSExceptionTrace, kMediumSize },
158 { mac::kSendAction, kMediumSize }, 160 { mac::kSendAction, kMediumSize },
161 { mac::kNSEvent, kMediumSize },
159 { mac::kZombie, kMediumSize }, 162 { mac::kZombie, kMediumSize },
160 { mac::kZombieTrace, kMediumSize }, 163 { mac::kZombieTrace, kMediumSize },
161 // content/: 164 // content/:
162 { "channel_error_bt", kMediumSize }, 165 { "channel_error_bt", kMediumSize },
163 { "remove_route_bt", kMediumSize }, 166 { "remove_route_bt", kMediumSize },
164 { "rwhvm_window", kMediumSize }, 167 { "rwhvm_window", kMediumSize },
165 // media/: 168 // media/:
166 #endif 169 #endif
167 #if BUILDFLAG(ENABLE_KASKO) 170 #if BUILDFLAG(ENABLE_KASKO)
168 { kKaskoGuid, kSmallSize }, 171 { kKaskoGuid, kSmallSize },
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 378 }
376 379
377 ScopedPrinterInfo::~ScopedPrinterInfo() { 380 ScopedPrinterInfo::~ScopedPrinterInfo() {
378 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 381 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
379 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 382 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
380 base::debug::ClearCrashKey(key); 383 base::debug::ClearCrashKey(key);
381 } 384 }
382 } 385 }
383 386
384 } // namespace crash_keys 387 } // namespace crash_keys
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698