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

Unified Diff: apps/benchmark/run_args.cc

Issue 2022983003: Roll base to 5e00da80f6adb7082d1c0e88d3274cf87cc43bc5 and tonic to f7acabb8fa6c91124486a41194eac3cd… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « apps/benchmark/benchmark_app.cc ('k') | build/config/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/benchmark/run_args.cc
diff --git a/apps/benchmark/run_args.cc b/apps/benchmark/run_args.cc
index 6f4adbaf95b9a6c403c26079157d38b84ecd530e..42e399c00a65d139d1084ce4e149882c3ba85629 100644
--- a/apps/benchmark/run_args.cc
+++ b/apps/benchmark/run_args.cc
@@ -30,8 +30,8 @@ bool CheckMeasurementFormat(const std::string& type,
bool GetMeasurement(const std::string& measurement_spec, Measurement* result) {
// Measurements are described in the format:
// <measurement type>/<event category>/<event name>.
- std::vector<std::string> parts;
- base::SplitString(measurement_spec, '/', &parts);
+ std::vector<std::string> parts = base::SplitString(
+ measurement_spec, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (parts.size() < 1) {
LOG(ERROR) << "Could not parse the measurement description: "
<< measurement_spec;
« no previous file with comments | « apps/benchmark/benchmark_app.cc ('k') | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698