OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/engine/app/blimp_engine_crash_keys.h" | 5 #include "blimp/engine/app/blimp_engine_crash_keys.h" |
6 | 6 |
7 #include "base/debug/crash_logging.h" | 7 #include "base/debug/crash_logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/crash/core/common/crash_keys.h" | 9 #include "components/crash/core/common/crash_keys.h" |
10 | 10 |
11 namespace blimp { | 11 namespace blimp { |
12 namespace engine { | 12 namespace engine { |
13 | 13 |
14 size_t RegisterEngineCrashKeys() { | 14 size_t RegisterEngineCrashKeys() { |
15 // For now these need to be kept relatively up to date with those in | 15 // For now these need to be kept relatively up to date with those in |
16 // //chrome/common/crash_keys.cc::RegisterChromeCrashKeys() | 16 // //chrome/common/crash_keys.cc::RegisterChromeCrashKeys() |
17 // All of the keys used in //content and //components/crash must show up | 17 // All of the keys used in //content and //components/crash must show up |
18 // here. | 18 // here. |
19 // TODO(marcinjb): Change the approach when http://crbug.com/598854 is | 19 // TODO(marcinjb): Change the approach when http://crbug.com/598854 is |
20 // resolved. | 20 // resolved. |
21 const base::debug::CrashKey engine_keys[] = { | 21 const base::debug::CrashKey engine_keys[] = { |
22 { crash_keys::kClientId, crash_keys::kSmallSize }, | 22 { crash_keys::kClientId, crash_keys::kSmallSize }, |
23 { crash_keys::kChannel, crash_keys::kSmallSize }, | 23 { crash_keys::kChannel, crash_keys::kSmallSize }, |
24 { crash_keys::kNumVariations, crash_keys::kSmallSize }, | 24 { crash_keys::kNumVariations, crash_keys::kSmallSize }, |
25 { crash_keys::kVariations, crash_keys::kLargeSize }, | 25 { crash_keys::kVariations, crash_keys::kLargeSize }, |
26 | 26 |
27 // browser/: | 27 // browser/: |
| 28 { "browser-unpin-trace", crash_keys::kMediumSize}, |
28 { "third-party-modules-loaded", crash_keys::kSmallSize }, | 29 { "third-party-modules-loaded", crash_keys::kSmallSize }, |
29 { "third-party-modules-not-loaded", crash_keys::kSmallSize }, | 30 { "third-party-modules-not-loaded", crash_keys::kSmallSize }, |
30 { "enrolled-to-domain", crash_keys::kSmallSize }, | 31 { "enrolled-to-domain", crash_keys::kSmallSize }, |
31 | 32 |
32 // //content crash keys | 33 // //content crash keys |
33 { "bad_message_reason", crash_keys::kSmallSize }, | 34 { "bad_message_reason", crash_keys::kSmallSize }, |
34 { "channel_error_bt", crash_keys::kMediumSize }, | 35 { "channel_error_bt", crash_keys::kMediumSize }, |
35 { "discardable-memory-allocated", crash_keys::kSmallSize }, | 36 { "discardable-memory-allocated", crash_keys::kSmallSize }, |
36 { "discardable-memory-free", crash_keys::kSmallSize }, | 37 { "discardable-memory-free", crash_keys::kSmallSize }, |
37 { "mojo-message-error", crash_keys::kMediumSize }, | 38 { "mojo-message-error", crash_keys::kMediumSize }, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize }, | 113 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize }, |
113 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize }, | 114 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize }, |
114 }; | 115 }; |
115 | 116 |
116 return base::debug::InitCrashKeys(engine_keys, arraysize(engine_keys), | 117 return base::debug::InitCrashKeys(engine_keys, arraysize(engine_keys), |
117 crash_keys::kChunkMaxLength); | 118 crash_keys::kChunkMaxLength); |
118 } | 119 } |
119 | 120 |
120 } // namespace engine | 121 } // namespace engine |
121 } // namespace blimp | 122 } // namespace blimp |
OLD | NEW |