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

Unified Diff: android_webview/common/crash_reporter/crash_keys.h

Issue 2717223003: Add WebView-specific whitelist for crash keys. (Closed)
Patch Set: Naming webview whitelist array. 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: android_webview/common/crash_reporter/crash_keys.h
diff --git a/android_webview/common/crash_reporter/crash_keys.h b/android_webview/common/crash_reporter/crash_keys.h
index 03b2e2a4051688ae4c7529673c56e6612fadc02d..f922a3e897e195a25d7119e3c1e03773136a6b7b 100644
--- a/android_webview/common/crash_reporter/crash_keys.h
+++ b/android_webview/common/crash_reporter/crash_keys.h
@@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_
#include <stddef.h>
+#include <string>
namespace android_webview {
namespace crash_keys {
@@ -13,6 +14,10 @@ namespace crash_keys {
// Registers all of the potential crash keys that can be sent to the crash
// reporting server. Returns the size of the union of all keys.
size_t RegisterWebViewCrashKeys();
+void InitCrashKeysForWebViewTesting();
+void SetCrashKeyValue(const std::string& key, const std::string& value);
+
+extern const char* const kWebViewCrashKeyWhiteList[];
// Crash Key Name Constants ////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698