Index: components/url_matcher/string_pattern.cc |
diff --git a/components/url_matcher/string_pattern.cc b/components/url_matcher/string_pattern.cc |
index a4b87bcaad52bb5d9fab1405ca73121818684c64..d103bced3e255de4762f5d87a3d8b237c287f93b 100644 |
--- a/components/url_matcher/string_pattern.cc |
+++ b/components/url_matcher/string_pattern.cc |
@@ -3,8 +3,6 @@ |
// found in the LICENSE file. |
#include "components/url_matcher/string_pattern.h" |
- |
-#include <tuple> |
namespace url_matcher { |
@@ -15,7 +13,8 @@ |
StringPattern::~StringPattern() {} |
bool StringPattern::operator<(const StringPattern& rhs) const { |
- return std::tie(id_, pattern_) < std::tie(rhs.id_, rhs.pattern_); |
+ if (id_ != rhs.id_) return id_ < rhs.id_; |
+ return pattern_ < rhs.pattern_; |
} |
} // namespace url_matcher |