Index: components/policy/core/common/policy_map.cc |
diff --git a/components/policy/core/common/policy_map.cc b/components/policy/core/common/policy_map.cc |
index 9ad2627143cc65469a1060fd3ca6fdd9ac32c000..65940f6f7ec59a38b4caa6631c8ac85d554956c3 100644 |
--- a/components/policy/core/common/policy_map.cc |
+++ b/components/policy/core/common/policy_map.cc |
@@ -38,7 +38,10 @@ PolicyMap::Entry PolicyMap::Entry::DeepCopy() const { |
bool PolicyMap::Entry::has_higher_priority_than( |
const PolicyMap::Entry& other) const { |
if (level == other.level) |
- return scope > other.scope; |
+ if (scope == other.scope) |
Thiemo Nagel
2017/01/23 13:13:52
This requires braces.
Marton Hunyady
2017/01/23 13:27:50
Done.
|
+ return source > other.source; |
+ else |
+ return scope > other.scope; |
else |
return level > other.level; |
} |