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

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

Issue 2123073002: Switch chrome_elf exception handling from breakpad to crashpad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to tip and git cl format Created 4 years, 5 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 | « chrome/common/chrome_constants.cc ('k') | chrome/install_static/install_util.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/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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #endif 82 #endif
83 83
84 const char kViewCount[] = "view-count"; 84 const char kViewCount[] = "view-count";
85 85
86 const char kZeroEncodeDetails[] = "zero-encode-details"; 86 const char kZeroEncodeDetails[] = "zero-encode-details";
87 87
88 size_t RegisterChromeCrashKeys() { 88 size_t RegisterChromeCrashKeys() {
89 // The following keys may be chunked by the underlying crash logging system, 89 // The following keys may be chunked by the underlying crash logging system,
90 // but ultimately constitute a single key-value pair. 90 // but ultimately constitute a single key-value pair.
91 // 91 //
92 // If you're adding keys here, please also add them to the list in 92 // If you're adding keys here, please also add them to the following lists:
93 // //blimp/engine/app/blimp_engine_crash_keys.cc 93 // 1. //blimp/engine/app/blimp_engine_crash_keys.cc and
94 // 2. //chrome/app/chrome_crash_reporter_client_win.cc::
95 // RegisterCrashKeysHelper().
94 base::debug::CrashKey fixed_keys[] = { 96 base::debug::CrashKey fixed_keys[] = {
95 #if defined(OS_MACOSX) || defined(OS_WIN) 97 #if defined(OS_MACOSX) || defined(OS_WIN)
96 { kMetricsClientId, kSmallSize }, 98 { kMetricsClientId, kSmallSize },
97 #else 99 #else
98 { kClientId, kSmallSize }, 100 { kClientId, kSmallSize },
99 #endif 101 #endif
100 { kChannel, kSmallSize }, 102 { kChannel, kSmallSize },
101 { kActiveURL, kLargeSize }, 103 { kActiveURL, kLargeSize },
102 { kNumVariations, kSmallSize }, 104 { kNumVariations, kSmallSize },
103 { kVariations, kLargeSize }, 105 { kVariations, kLargeSize },
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 339 }
338 340
339 ScopedPrinterInfo::~ScopedPrinterInfo() { 341 ScopedPrinterInfo::~ScopedPrinterInfo() {
340 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 342 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
341 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 343 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
342 base::debug::ClearCrashKey(key); 344 base::debug::ClearCrashKey(key);
343 } 345 }
344 } 346 }
345 347
346 } // namespace crash_keys 348 } // namespace crash_keys
OLDNEW
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | chrome/install_static/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698