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

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

Issue 137753007: Adding number of users to crash record (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const char kGPUVertexShaderVersion[] = "gpu-vsver"; 78 const char kGPUVertexShaderVersion[] = "gpu-vsver";
79 #if defined(OS_MACOSX) 79 #if defined(OS_MACOSX)
80 const char kGPUGLVersion[] = "gpu-glver"; 80 const char kGPUGLVersion[] = "gpu-glver";
81 #elif defined(OS_POSIX) 81 #elif defined(OS_POSIX)
82 const char kGPUVendor[] = "gpu-gl-vendor"; 82 const char kGPUVendor[] = "gpu-gl-vendor";
83 const char kGPURenderer[] = "gpu-gl-renderer"; 83 const char kGPURenderer[] = "gpu-gl-renderer";
84 #endif 84 #endif
85 85
86 const char kPrinterInfo[] = "prn-info-%" PRIuS; 86 const char kPrinterInfo[] = "prn-info-%" PRIuS;
87 87
88 #if defined(OS_CHROMEOS)
89 const char kNumberOfUsers[] = "num-users";
90 #endif
91
88 #if defined(OS_MACOSX) 92 #if defined(OS_MACOSX)
89 namespace mac { 93 namespace mac {
90 94
91 const char kFirstNSException[] = "firstexception"; 95 const char kFirstNSException[] = "firstexception";
92 const char kFirstNSExceptionTrace[] = "firstexception_bt"; 96 const char kFirstNSExceptionTrace[] = "firstexception_bt";
93 97
94 const char kLastNSException[] = "lastexception"; 98 const char kLastNSException[] = "lastexception";
95 const char kLastNSExceptionTrace[] = "lastexception_bt"; 99 const char kLastNSExceptionTrace[] = "lastexception_bt";
96 100
97 const char kNSException[] = "nsexception"; 101 const char kNSException[] = "nsexception";
(...skipping 29 matching lines...) Expand all
127 #if defined(OS_MACOSX) 131 #if defined(OS_MACOSX)
128 { kGPUGLVersion, kSmallSize }, 132 { kGPUGLVersion, kSmallSize },
129 #elif defined(OS_POSIX) 133 #elif defined(OS_POSIX)
130 { kGPUVendor, kSmallSize }, 134 { kGPUVendor, kSmallSize },
131 { kGPURenderer, kSmallSize }, 135 { kGPURenderer, kSmallSize },
132 #endif 136 #endif
133 137
134 // content/: 138 // content/:
135 { "ppapi_path", kMediumSize }, 139 { "ppapi_path", kMediumSize },
136 { "subresource_url", kLargeSize }, 140 { "subresource_url", kLargeSize },
141 #if defined(OS_CHROMEOS)
142 { kNumberOfUsers, kSmallSize },
143 #endif
137 #if defined(OS_MACOSX) 144 #if defined(OS_MACOSX)
138 { mac::kFirstNSException, kMediumSize }, 145 { mac::kFirstNSException, kMediumSize },
139 { mac::kFirstNSExceptionTrace, kMediumSize }, 146 { mac::kFirstNSExceptionTrace, kMediumSize },
140 { mac::kLastNSException, kMediumSize }, 147 { mac::kLastNSException, kMediumSize },
141 { mac::kLastNSExceptionTrace, kMediumSize }, 148 { mac::kLastNSExceptionTrace, kMediumSize },
142 { mac::kNSException, kMediumSize }, 149 { mac::kNSException, kMediumSize },
143 { mac::kNSExceptionTrace, kMediumSize }, 150 { mac::kNSExceptionTrace, kMediumSize },
144 { mac::kSendAction, kMediumSize }, 151 { mac::kSendAction, kMediumSize },
145 { mac::kZombie, kMediumSize }, 152 { mac::kZombie, kMediumSize },
146 { mac::kZombieTrace, kMediumSize }, 153 { mac::kZombieTrace, kMediumSize },
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 346 }
340 347
341 ScopedPrinterInfo::~ScopedPrinterInfo() { 348 ScopedPrinterInfo::~ScopedPrinterInfo() {
342 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 349 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
343 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 350 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
344 base::debug::ClearCrashKey(key); 351 base::debug::ClearCrashKey(key);
345 } 352 }
346 } 353 }
347 354
348 } // namespace crash_keys 355 } // 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