Index: components/policy/core/common/policy_namespace.cc |
diff --git a/components/policy/core/common/policy_namespace.cc b/components/policy/core/common/policy_namespace.cc |
index 33a999283544d96de1895ff6734b23e49994d3b0..0fac9ca1e458aa076434f0e93e3795d2bd37b1ac 100644 |
--- a/components/policy/core/common/policy_namespace.cc |
+++ b/components/policy/core/common/policy_namespace.cc |
@@ -3,8 +3,6 @@ |
// found in the LICENSE file. |
#include "components/policy/core/common/policy_namespace.h" |
- |
-#include <tuple> |
namespace policy { |
@@ -28,8 +26,8 @@ |
} |
bool PolicyNamespace::operator<(const PolicyNamespace& other) const { |
- return std::tie(domain, component_id) < |
- std::tie(other.domain, other.component_id); |
+ return domain < other.domain || |
+ (domain == other.domain && component_id < other.component_id); |
} |
bool PolicyNamespace::operator==(const PolicyNamespace& other) const { |