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

Side by Side Diff: android_webview/common/crash_reporter/crash_keys.cc

Issue 2708883006: Add possibility to ignore unregistered crash keys. Use this from WebView (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « no previous file | base/debug/crash_logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | base/debug/crash_logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698