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

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

Issue 2733123002: [Chromecast] Add new crash keys from chrome/common. (Closed)
Patch Set: Fix gn header check Created 3 years, 9 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 | chromecast/crash/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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 const char kZeroEncodeDetails[] = "zero-encode-details"; 97 const char kZeroEncodeDetails[] = "zero-encode-details";
98 98
99 size_t RegisterChromeCrashKeys() { 99 size_t RegisterChromeCrashKeys() {
100 // The following keys may be chunked by the underlying crash logging system, 100 // The following keys may be chunked by the underlying crash logging system,
101 // but ultimately constitute a single key-value pair. 101 // but ultimately constitute a single key-value pair.
102 // 102 //
103 // If you're adding keys here, please also add them to the following lists: 103 // If you're adding keys here, please also add them to the following lists:
104 // chrome/app/chrome_crash_reporter_client_win.cc::RegisterCrashKeysHelper(), 104 // chrome/app/chrome_crash_reporter_client_win.cc::RegisterCrashKeysHelper(),
105 // android_webview/common/crash_reporter/crash_keys.cc:: 105 // android_webview/common/crash_reporter/crash_keys.cc::
106 // RegisterWebViewCrashKeys(). 106 // RegisterWebViewCrashKeys(),
107 // chromecast/crash/cast_crash_keys.cc::RegisterCastCrashKeys().
107 base::debug::CrashKey fixed_keys[] = { 108 base::debug::CrashKey fixed_keys[] = {
108 #if defined(OS_MACOSX) || defined(OS_WIN) 109 #if defined(OS_MACOSX) || defined(OS_WIN)
109 {kMetricsClientId, kSmallSize}, 110 {kMetricsClientId, kSmallSize},
110 #else 111 #else
111 {kClientId, kSmallSize}, 112 {kClientId, kSmallSize},
112 #endif 113 #endif
113 {kChannel, kSmallSize}, 114 {kChannel, kSmallSize},
114 {kActiveURL, kLargeSize}, 115 {kActiveURL, kLargeSize},
115 {kNumVariations, kSmallSize}, 116 {kNumVariations, kSmallSize},
116 {kVariations, kHugeSize}, 117 {kVariations, kHugeSize},
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 } 377 }
377 378
378 ScopedPrinterInfo::~ScopedPrinterInfo() { 379 ScopedPrinterInfo::~ScopedPrinterInfo() {
379 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 380 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
380 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 381 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
381 base::debug::ClearCrashKey(key); 382 base::debug::ClearCrashKey(key);
382 } 383 }
383 } 384 }
384 385
385 } // namespace crash_keys 386 } // namespace crash_keys
OLDNEW
« no previous file with comments | « no previous file | chromecast/crash/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698