This commit is contained in:
Charles Kerr 2018-01-31 17:40:11 -07:00
parent 09a2c80443
commit 1106cde687

View file

@ -1388,8 +1388,8 @@ bool IsBlacklistedArg(const base::CommandLine::CharType* arg) {
a += prefix_length; a += prefix_length;
std::string switch_name = std::string switch_name =
base::ToLowerASCII(base::StringPiece(a, strcspn(a, "="))); base::ToLowerASCII(base::StringPiece(a, strcspn(a, "=")));
return std::lower_bound(std::begin(kBlacklist), std::end(kBlacklist), return std::binary_search(std::begin(kBlacklist), std::end(kBlacklist),
switch_name); switch_name);
} }
return false; return false;