Chromium Code Reviews| 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 // 1. //chrome/common/crash_keys.cc::RegisterChromeCrashKeys() |
| 17 // 2. //chrome/app/chrome_crash_reporter_client_win.cc:: | |
| 18 // RegisterCrashKeysHelper() | |
|
Wez
2016/07/06 19:36:50
We don't build the Blimp Engine for Windows, so I
ananta
2016/07/07 12:43:20
Yes. While we don't build Blimp for Windows, the c
Wez
2016/07/08 22:54:09
If they're "mostly common" then isn't staying up-t
ananta
2016/07/09 14:09:32
Fair enough. Reverted the changes to the blimp_eng
| |
| 17 // All of the keys used in //content and //components/crash must show up | 19 // All of the keys used in //content and //components/crash must show up |
| 18 // here. | 20 // here. |
| 19 // TODO(marcinjb): Change the approach when http://crbug.com/598854 is | 21 // TODO(marcinjb): Change the approach when http://crbug.com/598854 is |
| 20 // resolved. | 22 // resolved. |
| 21 const base::debug::CrashKey engine_keys[] = { | 23 const base::debug::CrashKey engine_keys[] = { |
| 22 { crash_keys::kClientId, crash_keys::kSmallSize }, | 24 { crash_keys::kClientId, crash_keys::kSmallSize }, |
| 23 { crash_keys::kChannel, crash_keys::kSmallSize }, | 25 { crash_keys::kChannel, crash_keys::kSmallSize }, |
| 24 { crash_keys::kNumVariations, crash_keys::kSmallSize }, | 26 { crash_keys::kNumVariations, crash_keys::kSmallSize }, |
| 25 { crash_keys::kVariations, crash_keys::kLargeSize }, | 27 { crash_keys::kVariations, crash_keys::kLargeSize }, |
| 26 | 28 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 // Temporary for https://crbug.com/616149. | 84 // Temporary for https://crbug.com/616149. |
| 83 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, | 85 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 return base::debug::InitCrashKeys(engine_keys, arraysize(engine_keys), | 88 return base::debug::InitCrashKeys(engine_keys, arraysize(engine_keys), |
| 87 crash_keys::kChunkMaxLength); | 89 crash_keys::kChunkMaxLength); |
| 88 } | 90 } |
| 89 | 91 |
| 90 } // namespace engine | 92 } // namespace engine |
| 91 } // namespace blimp | 93 } // namespace blimp |
| OLD | NEW |