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

Unified Diff: base/trace_event/trace_config.h

Issue 1765153002: Update DevTools Tracing.Start to accept trace config as a parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | base/trace_event/trace_config.cc » ('j') | base/trace_event/trace_config.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_config.h
diff --git a/base/trace_event/trace_config.h b/base/trace_event/trace_config.h
index 81b7d515133dd0c3c71f461316ced768e6fd9618..8ea249502d641919adbda0fb620f58814fffa803 100644
--- a/base/trace_event/trace_config.h
+++ b/base/trace_event/trace_config.h
@@ -130,6 +130,9 @@ class BASE_EXPORT TraceConfig {
// disabled-by-default-memory-infra category is enabled.
explicit TraceConfig(const std::string& config_string);
+ // Create TraceConfig object from the trace config dictionary.
Primiano Tucci (use gerrit) 2016/03/14 16:53:02 I would probably reword this comment as: // Functi
Zhen Wang 2016/03/14 21:41:45 Done.
+ explicit TraceConfig(const base::DictionaryValue& config);
Primiano Tucci (use gerrit) 2016/03/14 16:53:02 nit: no need of base::, you are already in namespa
Primiano Tucci (use gerrit) 2016/03/14 16:53:02 Since you introduced this, I think you can make a
Primiano Tucci (use gerrit) 2016/03/14 16:53:02 Can we haz a unittest to cover this casE? I think
Zhen Wang 2016/03/14 21:41:45 Updated trace_config_file.cc and trace_config_unit
+
TraceConfig(const TraceConfig& tc);
~TraceConfig();
@@ -190,7 +193,10 @@ class BASE_EXPORT TraceConfig {
// in the suffix 'Debug' or 'Test'.
void InitializeDefault();
- // Initialize from the config string
+ // Initialize from the config dictionary.
petrcermak 2016/03/14 18:05:09 supernit: s/the/a/
Zhen Wang 2016/03/14 21:41:45 Done.
+ void InitializeFromConfigDict(const base::DictionaryValue& dict);
Primiano Tucci (use gerrit) 2016/03/14 16:53:02 nit, ditto: no need of base::
Zhen Wang 2016/03/14 21:41:45 Done.
+
+ // Initialize from the config string.
petrcermak 2016/03/14 18:05:09 ditto (s/the/a/)
Zhen Wang 2016/03/14 21:41:45 Done.
void InitializeFromConfigString(const std::string& config_string);
// Initialize from category filter and trace options strings
« no previous file with comments | « no previous file | base/trace_event/trace_config.cc » ('j') | base/trace_event/trace_config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698