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

Unified Diff: base/trace_event/trace_event_etw_export_win.h

Issue 2777203004: Avoid calling strlen() where possible in base/trace_config (Closed)
Patch Set: Keep DCHECKs. Created 3 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 | « base/trace_event/trace_config_category_filter.cc ('k') | base/trace_event/trace_event_etw_export_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_event_etw_export_win.h
diff --git a/base/trace_event/trace_event_etw_export_win.h b/base/trace_event/trace_event_etw_export_win.h
index 8ee2d63416949e5b24640c7a18db0644781ace99..3a6b6612ca34972cc71c2f9086e873dddbcbe21c 100644
--- a/base/trace_event/trace_event_etw_export_win.h
+++ b/base/trace_event/trace_event_etw_export_win.h
@@ -56,7 +56,7 @@ class BASE_EXPORT TraceEventETWExport {
static void AddCompleteEndEvent(const char* name);
// Returns true if any category in the group is enabled.
- static bool IsCategoryGroupEnabled(const char* category_group_name);
+ static bool IsCategoryGroupEnabled(StringPiece category_group_name);
private:
// Ensure only the provider can construct us.
@@ -70,7 +70,7 @@ class BASE_EXPORT TraceEventETWExport {
bool UpdateEnabledCategories();
// Returns true if the category is enabled.
- bool IsCategoryEnabled(const char* category_name) const;
+ bool IsCategoryEnabled(StringPiece category_name) const;
// Called back by the update thread to check for potential changes to the
// keyword.
« no previous file with comments | « base/trace_event/trace_config_category_filter.cc ('k') | base/trace_event/trace_event_etw_export_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698