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

Unified Diff: base/debug/crash_logging.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/common/crash_reporter/crash_keys.cc ('k') | base/debug/crash_logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/crash_logging.h
diff --git a/base/debug/crash_logging.h b/base/debug/crash_logging.h
index eaa65e4cff9959d527f5694e52107737a42fc886..3ce0b41f1f6f417232050d735506813e2e66f796 100644
--- a/base/debug/crash_logging.h
+++ b/base/debug/crash_logging.h
@@ -110,6 +110,13 @@ struct BASE_EXPORT CrashKey {
// chunk can be.
BASE_EXPORT size_t InitCrashKeys(const CrashKey* const keys, size_t count,
size_t chunk_max_length);
+// Some clients need to log a sub-set of the crash-keys added by lower layers,
+// |ignore_unregistered_keys| allows clients to ignore any keys that haven't
+// been explicitly registered.
+BASE_EXPORT size_t InitCrashKeys(const CrashKey* const keys,
+ size_t count,
+ size_t chunk_max_length,
+ bool ignore_unregistered_keys);
// Returns the corresponding crash key object or NULL for a given key.
BASE_EXPORT const CrashKey* LookupCrashKey(const base::StringPiece& key);
« no previous file with comments | « android_webview/common/crash_reporter/crash_keys.cc ('k') | base/debug/crash_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698