summaryrefslogtreecommitdiffstats
path: root/extensions/common/api
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/api')
-rw-r--r--extensions/common/api/sockets/sockets_manifest_permission_unittest.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/extensions/common/api/sockets/sockets_manifest_permission_unittest.cc b/extensions/common/api/sockets/sockets_manifest_permission_unittest.cc
index ad5ba16..bccce57 100644
--- a/extensions/common/api/sockets/sockets_manifest_permission_unittest.cc
+++ b/extensions/common/api/sockets/sockets_manifest_permission_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <set>
+#include <tuple>
#include "base/json/json_reader.h"
#include "base/pickle.h"
@@ -67,10 +68,8 @@ struct CheckFormatEntry {
// operators <, == are needed by container std::set and algorithms
// std::set_includes and std::set_differences.
bool operator<(const CheckFormatEntry& rhs) const {
- if (operation_type == rhs.operation_type)
- return host_pattern < rhs.host_pattern;
-
- return operation_type < rhs.operation_type;
+ return std::tie(operation_type, host_pattern) <
+ std::tie(rhs.operation_type, rhs.host_pattern);
}
bool operator==(const CheckFormatEntry& rhs) const {