Index: components/password_manager/core/browser/affiliation_utils.cc |
diff --git a/components/password_manager/core/browser/affiliation_utils.cc b/components/password_manager/core/browser/affiliation_utils.cc |
index 1d359ef110ea51ba16fb15be9cb847c224fde2b0..ee1d9b06f6846fa25c94104bc3bbd93c62fbcd68 100644 |
--- a/components/password_manager/core/browser/affiliation_utils.cc |
+++ b/components/password_manager/core/browser/affiliation_utils.cc |
@@ -209,26 +209,26 @@ FacetURI FacetURI::FromCanonicalSpec(const std::string& canonical_spec) { |
} |
bool FacetURI::operator==(const FacetURI& other) const { |
- DCHECK(is_valid_); |
- DCHECK(other.is_valid_); |
+ DCHECK(is_empty() || is_valid()); |
+ DCHECK(other.is_empty() || other.is_valid()); |
return canonical_spec_ == other.canonical_spec_; |
} |
bool FacetURI::operator!=(const FacetURI& other) const { |
- DCHECK(is_valid_); |
- DCHECK(other.is_valid_); |
+ DCHECK(is_empty() || is_valid()); |
+ DCHECK(other.is_empty() || other.is_valid()); |
return canonical_spec_ != other.canonical_spec_; |
} |
bool FacetURI::operator<(const FacetURI& other) const { |
- DCHECK(is_valid_); |
- DCHECK(other.is_valid_); |
+ DCHECK(is_empty() || is_valid()); |
+ DCHECK(other.is_empty() || other.is_valid()); |
return canonical_spec_ < other.canonical_spec_; |
} |
bool FacetURI::operator>(const FacetURI& other) const { |
- DCHECK(is_valid_); |
- DCHECK(other.is_valid_); |
+ DCHECK(is_empty() || is_valid()); |
+ DCHECK(other.is_empty() || other.is_valid()); |
return canonical_spec_ > other.canonical_spec_; |
} |