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

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

Issue 2569953003: [bgmode] Log the unpin stack trace to Crash Keys (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 15 matching lines...) Expand all
26 namespace crash_keys { 26 namespace crash_keys {
27 27
28 const char kActiveURL[] = "url-chunk"; 28 const char kActiveURL[] = "url-chunk";
29 29
30 const char kFontKeyName[] = "font_key_name"; 30 const char kFontKeyName[] = "font_key_name";
31 31
32 const char kExtensionID[] = "extension-%" PRIuS; 32 const char kExtensionID[] = "extension-%" PRIuS;
33 const char kNumExtensionsCount[] = "num-extensions"; 33 const char kNumExtensionsCount[] = "num-extensions";
34 34
35 const char kShutdownType[] = "shutdown-type"; 35 const char kShutdownType[] = "shutdown-type";
36 const char kBrowserUnpinTrace[] = "browser-unpin-trace";
36 37
37 #if !defined(OS_ANDROID) 38 #if !defined(OS_ANDROID)
38 const char kGPUVendorID[] = "gpu-venid"; 39 const char kGPUVendorID[] = "gpu-venid";
39 const char kGPUDeviceID[] = "gpu-devid"; 40 const char kGPUDeviceID[] = "gpu-devid";
40 #endif 41 #endif
41 const char kGPUDriverVersion[] = "gpu-driver"; 42 const char kGPUDriverVersion[] = "gpu-driver";
42 const char kGPUPixelShaderVersion[] = "gpu-psver"; 43 const char kGPUPixelShaderVersion[] = "gpu-psver";
43 const char kGPUVertexShaderVersion[] = "gpu-vsver"; 44 const char kGPUVertexShaderVersion[] = "gpu-vsver";
44 #if defined(OS_MACOSX) 45 #if defined(OS_MACOSX)
45 const char kGPUGLVersion[] = "gpu-glver"; 46 const char kGPUGLVersion[] = "gpu-glver";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 { kMetricsClientId, kSmallSize }, 112 { kMetricsClientId, kSmallSize },
112 #else 113 #else
113 { kClientId, kSmallSize }, 114 { kClientId, kSmallSize },
114 #endif 115 #endif
115 { kChannel, kSmallSize }, 116 { kChannel, kSmallSize },
116 { kActiveURL, kLargeSize }, 117 { kActiveURL, kLargeSize },
117 { kNumVariations, kSmallSize }, 118 { kNumVariations, kSmallSize },
118 { kVariations, kLargeSize }, 119 { kVariations, kLargeSize },
119 { kNumExtensionsCount, kSmallSize }, 120 { kNumExtensionsCount, kSmallSize },
120 { kShutdownType, kSmallSize }, 121 { kShutdownType, kSmallSize },
122 { kBrowserUnpinTrace, kMediumSize },
121 #if !defined(OS_ANDROID) 123 #if !defined(OS_ANDROID)
122 { kGPUVendorID, kSmallSize }, 124 { kGPUVendorID, kSmallSize },
123 { kGPUDeviceID, kSmallSize }, 125 { kGPUDeviceID, kSmallSize },
124 #endif 126 #endif
125 { kGPUDriverVersion, kSmallSize }, 127 { kGPUDriverVersion, kSmallSize },
126 { kGPUPixelShaderVersion, kSmallSize }, 128 { kGPUPixelShaderVersion, kSmallSize },
127 { kGPUVertexShaderVersion, kSmallSize }, 129 { kGPUVertexShaderVersion, kSmallSize },
128 #if defined(OS_MACOSX) 130 #if defined(OS_MACOSX)
129 { kGPUGLVersion, kSmallSize }, 131 { kGPUGLVersion, kSmallSize },
130 #elif defined(OS_POSIX) 132 #elif defined(OS_POSIX)
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 384 }
383 385
384 ScopedPrinterInfo::~ScopedPrinterInfo() { 386 ScopedPrinterInfo::~ScopedPrinterInfo() {
385 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 387 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
386 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 388 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
387 base::debug::ClearCrashKey(key); 389 base::debug::ClearCrashKey(key);
388 } 390 }
389 } 391 }
390 392
391 } // namespace crash_keys 393 } // 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