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

Unified Diff: chrome/common/trace_event_args_whitelist.cc

Issue 2092463002: Move memory-infra check from background tracing and whitelist memory dump args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enabled_modes
Patch Set: Created 4 years, 6 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 | « base/trace_event/memory_dump_manager.cc ('k') | content/browser/tracing/background_tracing_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/trace_event_args_whitelist.cc
diff --git a/chrome/common/trace_event_args_whitelist.cc b/chrome/common/trace_event_args_whitelist.cc
index 0bffd046166189d2eea614c70215b529ebff4d1a..413bdb6de663d9ed33fd917f1f339e0d16d6f00b 100644
--- a/chrome/common/trace_event_args_whitelist.cc
+++ b/chrome/common/trace_event_args_whitelist.cc
@@ -8,6 +8,7 @@
#include "base/strings/pattern.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
+#include "base/trace_event/memory_dump_manager.h"
namespace {
@@ -18,12 +19,15 @@ struct WhitelistEntry {
};
const char* const kInputLatencyAllowedArgs[] = {"data", nullptr};
+const char* const kMemoryDumpAllowedArgs[] = {"dumps", nullptr};
const WhitelistEntry kEventArgsWhitelist[] = {
{"__metadata", "thread_name", nullptr},
{"ipc", "SyncChannel::Send", nullptr},
{"toplevel", "*", nullptr},
{"latencyInfo", "*", kInputLatencyAllowedArgs},
+ {base::trace_event::MemoryDumpManager::kTraceCategory, "*",
+ kMemoryDumpAllowedArgs},
{nullptr, nullptr, nullptr}};
const char* kMetadataWhitelist[] = {
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | content/browser/tracing/background_tracing_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698