Index: src/libplatform/tracing/trace-config.cc |
diff --git a/src/libplatform/tracing/trace-config.cc b/src/libplatform/tracing/trace-config.cc |
index e77d191e5e1cc32737d205842a1fd80d00e35ebf..9156301a45843486b0994a1670459b9bcb404afa 100644 |
--- a/src/libplatform/tracing/trace-config.cc |
+++ b/src/libplatform/tracing/trace-config.cc |
@@ -21,8 +21,13 @@ TraceConfig* TraceConfig::CreateDefaultTraceConfig() { |
} |
bool TraceConfig::IsCategoryGroupEnabled(const char* category_group) const { |
- for (auto included_category : included_categories_) { |
- if (strcmp(included_category.data(), category_group) == 0) return true; |
+ std::stringstream category_stream(category_group); |
+ while (category_stream.good()) { |
+ std::string category; |
+ getline(category_stream, category, ','); |
+ for (auto included_category : included_categories_) { |
+ if (category == included_category) return true; |
+ } |
} |
return false; |
} |