| Index: base/trace_event/trace_config.cc
|
| diff --git a/base/trace_event/trace_config.cc b/base/trace_event/trace_config.cc
|
| index d4dc2cc2e4e3594abf9dacc02117c19a6de0fd40..ebdddd38987d409ff561625d1e560a21bf40253e 100644
|
| --- a/base/trace_event/trace_config.cc
|
| +++ b/base/trace_event/trace_config.cc
|
| @@ -14,6 +14,7 @@
|
| #include "base/strings/pattern.h"
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/string_tokenizer.h"
|
| +#include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/trace_event/memory_dump_manager.h"
|
| #include "base/trace_event/memory_dump_request_args.h"
|
| @@ -411,7 +412,8 @@
|
| if (category.empty())
|
| continue;
|
| // Synthetic delays are of the form 'DELAY(delay;option;option;...)'.
|
| - if (category.find(kSyntheticDelayCategoryFilterPrefix) == 0 &&
|
| + if (base::StartsWith(category, kSyntheticDelayCategoryFilterPrefix,
|
| + base::CompareCase::SENSITIVE) &&
|
| category.at(category.size() - 1) == ')') {
|
| category = category.substr(
|
| strlen(kSyntheticDelayCategoryFilterPrefix),
|
|
|