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

Unified Diff: components/crash/content/app/crash_reporter_client.h

Issue 2717223003: Add WebView-specific whitelist for crash keys. (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
Index: components/crash/content/app/crash_reporter_client.h
diff --git a/components/crash/content/app/crash_reporter_client.h b/components/crash/content/app/crash_reporter_client.h
index 513727c08f3f434365e4df6d12ec8bf482104b95..3347e79ee8bbff979b8791e46e95a18c6dab5c93 100644
--- a/components/crash/content/app/crash_reporter_client.h
+++ b/components/crash/content/app/crash_reporter_client.h
@@ -8,7 +8,9 @@
#include <stddef.h>
#include <string>
+#include <vector>
+#include "base/debug/crash_logging.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
@@ -144,6 +146,11 @@ class CrashReporterClient {
// reporting server. Returns the size of the union of all keys.
virtual size_t RegisterCrashKeys();
+ // TODO #if defined(USE_WHITELIST)? (would that work with monochrome? I.e.
+ // will this code differ between clank and WebView - or will we compile it
+ // with the same defines?)
+ virtual std::vector<base::debug::CrashKey> GetWhiteListedCrashKeys();
+
// Returns true if running in unattended mode (for automated testing).
virtual bool IsRunningUnattended();

Powered by Google App Engine
This is Rietveld 408576698