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

Side by Side Diff: ios/chrome/browser/crash_report/crash_keys.cc

Issue 1544743002: Switch to standard integer types in ios/. (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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/crash_report/crash_keys.h" 5 #include "ios/chrome/browser/crash_report/crash_keys.h"
6 6
7 #include <stddef.h>
8
7 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "components/crash/core/common/crash_keys.h" 11 #include "components/crash/core/common/crash_keys.h"
10 12
11 size_t RegisterChromeIOSCrashKeys() { 13 size_t RegisterChromeIOSCrashKeys() {
12 // The following keys may be chunked by the underlying crash logging system, 14 // The following keys may be chunked by the underlying crash logging system,
13 // but ultimately constitute a single key-value pair. 15 // but ultimately constitute a single key-value pair.
14 base::debug::CrashKey fixed_keys[] = { 16 base::debug::CrashKey fixed_keys[] = {
15 {crash_keys::kBug464926CrashKey, crash_keys::kSmallSize}, 17 {crash_keys::kBug464926CrashKey, crash_keys::kSmallSize},
16 {crash_keys::kChannel, crash_keys::kSmallSize}, 18 {crash_keys::kChannel, crash_keys::kSmallSize},
17 {crash_keys::kMetricsClientId, crash_keys::kSmallSize}, 19 {crash_keys::kMetricsClientId, crash_keys::kSmallSize},
18 {crash_keys::kNumVariations, crash_keys::kSmallSize}, 20 {crash_keys::kNumVariations, crash_keys::kSmallSize},
19 {crash_keys::kVariations, crash_keys::kLargeSize}, 21 {crash_keys::kVariations, crash_keys::kLargeSize},
20 {crash_keys::mac::kZombie, crash_keys::kMediumSize}, 22 {crash_keys::mac::kZombie, crash_keys::kMediumSize},
21 {crash_keys::mac::kZombieTrace, crash_keys::kMediumSize}, 23 {crash_keys::mac::kZombieTrace, crash_keys::kMediumSize},
22 }; 24 };
23 25
24 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys), 26 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys),
25 crash_keys::kChunkMaxLength); 27 crash_keys::kChunkMaxLength);
26 } 28 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/crash_report/breakpad_helper.mm ('k') | ios/chrome/browser/dom_distiller/distiller_viewer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698