| OLD | NEW |
| 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 } |
| OLD | NEW |