Index: apps/benchmark/benchmark_app.cc |
diff --git a/apps/benchmark/benchmark_app.cc b/apps/benchmark/benchmark_app.cc |
index 12c2c509ca32b93ec769fd3f20638c1bd4e06466..3e2ea0b9d1a224c075ec888596d3942b9830350c 100644 |
--- a/apps/benchmark/benchmark_app.cc |
+++ b/apps/benchmark/benchmark_app.cc |
@@ -75,8 +75,9 @@ class BenchmarkApp : public mojo::ApplicationDelegate, |
std::string ComputeCategoriesStr() { |
std::set<std::string> category_set; |
for (const Measurement& measurement : args_.measurements) { |
- std::vector<std::string> categories; |
- base::SplitString(measurement.target_event.categories, ',', &categories); |
+ std::vector<std::string> categories = |
+ base::SplitString(measurement.target_event.categories, ",", |
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
category_set.insert(categories.begin(), categories.end()); |
} |
std::vector<std::string> unique_categories(category_set.begin(), |