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

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

Issue 1490613004: Revert of Reland: Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/chrome_switches.cc ('k') | chrome/installer/setup/BUILD.gn » ('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/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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #endif 80 #endif
81 81
82 const char kViewCount[] = "view-count"; 82 const char kViewCount[] = "view-count";
83 83
84 const char kZeroEncodeDetails[] = "zero-encode-details"; 84 const char kZeroEncodeDetails[] = "zero-encode-details";
85 85
86 size_t RegisterChromeCrashKeys() { 86 size_t RegisterChromeCrashKeys() {
87 // The following keys may be chunked by the underlying crash logging system, 87 // The following keys may be chunked by the underlying crash logging system,
88 // but ultimately constitute a single key-value pair. 88 // but ultimately constitute a single key-value pair.
89 base::debug::CrashKey fixed_keys[] = { 89 base::debug::CrashKey fixed_keys[] = {
90 #if defined(OS_MACOSX) || defined(OS_WIN) 90 #if defined(OS_MACOSX)
91 { kMetricsClientId, kSmallSize }, 91 { kMetricsClientId, kSmallSize },
92 #else 92 #else
93 { kClientId, kSmallSize }, 93 { kClientId, kSmallSize },
94 #endif 94 #endif
95 { kChannel, kSmallSize }, 95 { kChannel, kSmallSize },
96 { kActiveURL, kLargeSize }, 96 { kActiveURL, kLargeSize },
97 { kNumSwitches, kSmallSize }, 97 { kNumSwitches, kSmallSize },
98 { kNumVariations, kSmallSize }, 98 { kNumVariations, kSmallSize },
99 { kVariations, kLargeSize }, 99 { kVariations, kLargeSize },
100 { kNumExtensionsCount, kSmallSize }, 100 { kNumExtensionsCount, kSmallSize },
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } 336 }
337 337
338 ScopedPrinterInfo::~ScopedPrinterInfo() { 338 ScopedPrinterInfo::~ScopedPrinterInfo() {
339 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 339 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
340 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 340 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
341 base::debug::ClearCrashKey(key); 341 base::debug::ClearCrashKey(key);
342 } 342 }
343 } 343 }
344 344
345 } // namespace crash_keys 345 } // namespace crash_keys
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/installer/setup/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698