Index: base/trace_event/trace_event_impl.cc |
diff --git a/base/trace_event/trace_event_impl.cc b/base/trace_event/trace_event_impl.cc |
index f760b8889d61561773b1f8d398efd4a00ca454bd..8051605a06c83436318d1c9098fb58e44c9b9a0c 100644 |
--- a/base/trace_event/trace_event_impl.cc |
+++ b/base/trace_event/trace_event_impl.cc |
@@ -2051,8 +2051,10 @@ TraceEventHandle TraceLog::AddTraceEventWithThreadIdAndTimestamp( |
} else { |
// This is a thread id that we've seen before, but potentially with a |
// new name. |
- std::vector<StringPiece> existing_names; |
- Tokenize(existing_name->second, ",", &existing_names); |
+ std::vector<StringPiece> existing_names = |
+ base::SplitStringPiece(existing_name->second, ",", |
+ base::KEEP_WHITESPACE, |
+ base::SPLIT_WANT_NONEMPTY); |
bool found = std::find(existing_names.begin(), |
existing_names.end(), |
new_name) != existing_names.end(); |