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

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

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.h
diff --git a/components/password_manager/core/browser/affiliation_utils.h b/components/password_manager/core/browser/affiliation_utils.h
index d7d633d7b1f180d1cde14f237a74d68fdce4529a..1f56c4e8e122aa6dd7f8569aba97fd702f018ce3 100644
--- a/components/password_manager/core/browser/affiliation_utils.h
+++ b/components/password_manager/core/browser/affiliation_utils.h
@@ -106,9 +106,13 @@ class FacetURI {
bool IsValidAndroidFacetURI() const;
// Returns whether or not this instance represents a valid facet identifier
- // referring to either a Web or an Android application.
+ // referring to either a Web or an Android application. The empty identfier is
+ // not considered valid.
bool is_valid() const { return is_valid_; }
+ // Returns whether or not this instance represents the empty facet identifier.
+ bool is_empty() const { return canonical_spec_.empty(); }
+
// Returns the canonical scheme of the encapsulated facet URI, provided it is
// valid, or the empty string otherwise.
std::string scheme() const;

Powered by Google App Engine
This is Rietveld 408576698