OLD | NEW |
---|---|
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 const char kChannel[] = "channel"; | 57 const char kChannel[] = "channel"; |
58 | 58 |
59 const char kActiveURL[] = "url-chunk"; | 59 const char kActiveURL[] = "url-chunk"; |
60 | 60 |
61 const char kSwitch[] = "switch-%" PRIuS; | 61 const char kSwitch[] = "switch-%" PRIuS; |
62 const char kNumSwitches[] = "num-switches"; | 62 const char kNumSwitches[] = "num-switches"; |
63 | 63 |
64 const char kNumVariations[] = "num-experiments"; | 64 const char kNumVariations[] = "num-experiments"; |
65 const char kVariations[] = "variations"; | 65 const char kVariations[] = "variations"; |
66 | 66 |
67 #if defined(OS_CHROMEOS) | |
Robert Sesek
2014/01/16 17:26:00
Same.
Mr4D (OOO till 08-26)
2014/01/16 17:51:02
Done.
| |
68 const char kNumberOfUsers[] = "num-users"; | |
69 #endif | |
70 | |
67 const char kExtensionID[] = "extension-%" PRIuS; | 71 const char kExtensionID[] = "extension-%" PRIuS; |
68 const char kNumExtensionsCount[] = "num-extensions"; | 72 const char kNumExtensionsCount[] = "num-extensions"; |
69 | 73 |
70 const char kNumberOfViews[] = "num-views"; | 74 const char kNumberOfViews[] = "num-views"; |
71 | 75 |
72 #if !defined(OS_ANDROID) | 76 #if !defined(OS_ANDROID) |
73 const char kGPUVendorID[] = "gpu-venid"; | 77 const char kGPUVendorID[] = "gpu-venid"; |
74 const char kGPUDeviceID[] = "gpu-devid"; | 78 const char kGPUDeviceID[] = "gpu-devid"; |
75 #endif | 79 #endif |
76 const char kGPUDriverVersion[] = "gpu-driver"; | 80 const char kGPUDriverVersion[] = "gpu-driver"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 // The following keys may be chunked by the underlying crash logging system, | 113 // The following keys may be chunked by the underlying crash logging system, |
110 // but ultimately constitute a single key-value pair. | 114 // but ultimately constitute a single key-value pair. |
111 base::debug::CrashKey fixed_keys[] = { | 115 base::debug::CrashKey fixed_keys[] = { |
112 { kClientID, kSmallSize }, | 116 { kClientID, kSmallSize }, |
113 { kChannel, kSmallSize }, | 117 { kChannel, kSmallSize }, |
114 { kActiveURL, kLargeSize }, | 118 { kActiveURL, kLargeSize }, |
115 { kNumSwitches, kSmallSize }, | 119 { kNumSwitches, kSmallSize }, |
116 { kNumVariations, kSmallSize }, | 120 { kNumVariations, kSmallSize }, |
117 { kVariations, kLargeSize }, | 121 { kVariations, kLargeSize }, |
118 { kNumExtensionsCount, kSmallSize }, | 122 { kNumExtensionsCount, kSmallSize }, |
123 #if defined(OS_CHROMEOS) | |
Robert Sesek
2014/01/16 17:26:00
Same.
Mr4D (OOO till 08-26)
2014/01/16 17:51:02
Done.
| |
124 { kNumberOfUsers, kSmallSize }, | |
125 #endif | |
119 { kNumberOfViews, kSmallSize }, | 126 { kNumberOfViews, kSmallSize }, |
120 #if !defined(OS_ANDROID) | 127 #if !defined(OS_ANDROID) |
121 { kGPUVendorID, kSmallSize }, | 128 { kGPUVendorID, kSmallSize }, |
122 { kGPUDeviceID, kSmallSize }, | 129 { kGPUDeviceID, kSmallSize }, |
123 #endif | 130 #endif |
124 { kGPUDriverVersion, kSmallSize }, | 131 { kGPUDriverVersion, kSmallSize }, |
125 { kGPUPixelShaderVersion, kSmallSize }, | 132 { kGPUPixelShaderVersion, kSmallSize }, |
126 { kGPUVertexShaderVersion, kSmallSize }, | 133 { kGPUVertexShaderVersion, kSmallSize }, |
127 #if defined(OS_MACOSX) | 134 #if defined(OS_MACOSX) |
128 { kGPUGLVersion, kSmallSize }, | 135 { kGPUGLVersion, kSmallSize }, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 |
OLD | NEW |