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

Unified Diff: base/trace_event/trace_log.cc

Issue 2533333002: Fix TracingControllerTest.NotWhitelistedMetadataStripped
Patch Set: Created 4 years, 1 month 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 | « no previous file | content/browser/tracing/tracing_controller_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_log.cc
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc
index 4b21437c66114667b725e3dcfb1b70d7ea18f84b..4f5d9b6e7f94faac7940ae968b9a0e83c47a9e34 100644
--- a/base/trace_event/trace_log.cc
+++ b/base/trace_event/trace_log.cc
@@ -1027,6 +1027,12 @@ void TraceLog::FinishFlush(int generation, bool discard_events) {
flush_output_callback_.Reset();
if (trace_options() & kInternalEnableArgumentFilter) {
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
+ std::string process_type = command_line.GetSwitchValueASCII("type");
+ LOG(WARNING) << "============================= " << process_type
+ << " ==== " << !argument_filter_predicate_.is_null();
+
CHECK(!argument_filter_predicate_.is_null());
argument_filter_predicate = argument_filter_predicate_;
}
« no previous file with comments | « no previous file | content/browser/tracing/tracing_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698