Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Unified Diff: components/password_manager/core/browser/affiliation_utils.cc

Issue 947563002: Add prefetch support to AffiliationBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'stale' accessor, cleaned up timelines for tests, extended/fixed some tests. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
}
« no previous file with comments | « components/password_manager/core/browser/affiliation_utils.h ('k') | components/password_manager/core/browser/facet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698