From 1106cde687bee3f9098a4476d2933cfacea166c7 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 31 Jan 2018 17:40:11 -0700 Subject: [PATCH] fix oops --- atom/app/command_line_args.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/app/command_line_args.cc b/atom/app/command_line_args.cc index d60816a84dda..f3d47a52648d 100644 --- a/atom/app/command_line_args.cc +++ b/atom/app/command_line_args.cc @@ -1388,8 +1388,8 @@ bool IsBlacklistedArg(const base::CommandLine::CharType* arg) { a += prefix_length; std::string switch_name = base::ToLowerASCII(base::StringPiece(a, strcspn(a, "="))); - return std::lower_bound(std::begin(kBlacklist), std::end(kBlacklist), - switch_name); + return std::binary_search(std::begin(kBlacklist), std::end(kBlacklist), + switch_name); } return false;