| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "android_webview/common/crash_reporter/crash_keys.h" | 5 #include "android_webview/common/crash_reporter/crash_keys.h" |
| 6 | 6 |
| 7 #include "base/debug/crash_logging.h" | 7 #include "base/debug/crash_logging.h" |
| 8 #include "components/crash/core/common/crash_keys.h" | 8 #include "components/crash/core/common/crash_keys.h" |
| 9 | 9 |
| 10 using namespace crash_keys; | 10 using namespace crash_keys; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 { "bad_message_reason", kSmallSize }, | 30 { "bad_message_reason", kSmallSize }, |
| 31 { "discardable-memory-allocated", kSmallSize }, | 31 { "discardable-memory-allocated", kSmallSize }, |
| 32 { "discardable-memory-free", kSmallSize }, | 32 { "discardable-memory-free", kSmallSize }, |
| 33 { "mojo-message-error", kMediumSize }, | 33 { "mojo-message-error", kMediumSize }, |
| 34 { "total-discardable-memory-allocated", kSmallSize }, | 34 { "total-discardable-memory-allocated", kSmallSize }, |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 std::vector<base::debug::CrashKey> keys(fixed_keys, | 37 std::vector<base::debug::CrashKey> keys(fixed_keys, |
| 38 fixed_keys + arraysize(fixed_keys)); | 38 fixed_keys + arraysize(fixed_keys)); |
| 39 | 39 |
| 40 return base::debug::InitCrashKeys(&keys.at(0), keys.size(), kChunkMaxLength); | 40 return base::debug::InitCrashKeys(&keys.at(0), keys.size(), kChunkMaxLength, |
| 41 true /* ignore_unregistered_keys */); |
| 41 } | 42 } |
| 42 } | 43 } |
| 43 | 44 |
| 44 } // namespace crash_keys | 45 } // namespace crash_keys |
| OLD | NEW |