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

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

Issue 508393002: Adding more checking and some debugging information in Custom Font Collection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | content/renderer/renderer_font_platform_win.cc » ('j') | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 COMPILE_ASSERT(kMediumSize <= kSingleChunkLength, 54 COMPILE_ASSERT(kMediumSize <= kSingleChunkLength,
55 mac_has_medium_size_crash_key_chunks); 55 mac_has_medium_size_crash_key_chunks);
56 #endif 56 #endif
57 57
58 const char kClientId[] = "guid"; 58 const char kClientId[] = "guid";
59 59
60 const char kChannel[] = "channel"; 60 const char kChannel[] = "channel";
61 61
62 const char kActiveURL[] = "url-chunk"; 62 const char kActiveURL[] = "url-chunk";
63 63
64 const char kFontKeyName[] = "font_key_name";
65
64 const char kSwitch[] = "switch-%" PRIuS; 66 const char kSwitch[] = "switch-%" PRIuS;
65 const char kNumSwitches[] = "num-switches"; 67 const char kNumSwitches[] = "num-switches";
66 68
67 const char kNumVariations[] = "num-experiments"; 69 const char kNumVariations[] = "num-experiments";
68 const char kVariations[] = "variations"; 70 const char kVariations[] = "variations";
69 71
70 const char kExtensionID[] = "extension-%" PRIuS; 72 const char kExtensionID[] = "extension-%" PRIuS;
71 const char kNumExtensionsCount[] = "num-extensions"; 73 const char kNumExtensionsCount[] = "num-extensions";
72 74
73 const char kNumberOfViews[] = "num-views"; 75 const char kNumberOfViews[] = "num-views";
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #if defined(OS_MACOSX) 139 #if defined(OS_MACOSX)
138 { kGPUGLVersion, kSmallSize }, 140 { kGPUGLVersion, kSmallSize },
139 #elif defined(OS_POSIX) 141 #elif defined(OS_POSIX)
140 { kGPUVendor, kSmallSize }, 142 { kGPUVendor, kSmallSize },
141 { kGPURenderer, kSmallSize }, 143 { kGPURenderer, kSmallSize },
142 #endif 144 #endif
143 145
144 // base/: 146 // base/:
145 { "dm-usage", kSmallSize }, 147 { "dm-usage", kSmallSize },
146 // content/: 148 // content/:
149 { kFontKeyName, kSmallSize},
147 { "ppapi_path", kMediumSize }, 150 { "ppapi_path", kMediumSize },
148 { "subresource_url", kLargeSize }, 151 { "subresource_url", kLargeSize },
149 #if defined(OS_CHROMEOS) 152 #if defined(OS_CHROMEOS)
150 { kNumberOfUsers, kSmallSize }, 153 { kNumberOfUsers, kSmallSize },
151 #endif 154 #endif
152 #if defined(OS_MACOSX) 155 #if defined(OS_MACOSX)
153 { mac::kFirstNSException, kMediumSize }, 156 { mac::kFirstNSException, kMediumSize },
154 { mac::kFirstNSExceptionTrace, kMediumSize }, 157 { mac::kFirstNSExceptionTrace, kMediumSize },
155 { mac::kLastNSException, kMediumSize }, 158 { mac::kLastNSException, kMediumSize },
156 { mac::kLastNSExceptionTrace, kMediumSize }, 159 { mac::kLastNSExceptionTrace, kMediumSize },
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 395 }
393 396
394 ScopedPrinterInfo::~ScopedPrinterInfo() { 397 ScopedPrinterInfo::~ScopedPrinterInfo() {
395 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 398 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
396 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 399 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
397 base::debug::ClearCrashKey(key); 400 base::debug::ClearCrashKey(key);
398 } 401 }
399 } 402 }
400 403
401 } // namespace crash_keys 404 } // namespace crash_keys
OLDNEW
« no previous file with comments | « no previous file | content/renderer/renderer_font_platform_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698