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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 1115343002: Added a whitelist for trace events that are known to be PII-less. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved whitelist to chrome Created 5 years, 7 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: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index bbefaa0ca59d34162a272759ddab58cf9e041b05..ce2fdf2032259bcd17b48c5fe13b289f4f71c178 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -25,6 +25,7 @@
#include "chrome/common/pepper_flash.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/secure_origin_whitelist.h"
+#include "chrome/common/trace_event_args_whitelist.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/common_resources.h"
#include "components/dom_distiller/core/url_constants.h"
@@ -561,3 +562,8 @@ void ChromeContentClient::AddSecureSchemesAndOrigins(
schemes->insert(extensions::kExtensionResourceScheme);
GetSecureOriginWhitelist(origins);
}
+
+base::trace_event::TraceEvent::EventFilterPredicate
+ChromeContentClient::GetTraceEventFilterPredicate() const {
+ return base::Bind(&chrome::IsTraceEventArgsWhitelisted);
+}

Powered by Google App Engine
This is Rietveld 408576698