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

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

Issue 2634163002: Fetch federated PSL-matches from the password store. (Closed)
Patch Set: Updated Histogram. Created 3 years, 11 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/psl_matching_helper.h
diff --git a/components/password_manager/core/browser/psl_matching_helper.h b/components/password_manager/core/browser/psl_matching_helper.h
index 22071b6080dc43fbb208acfe8e32e4ea4dd5f639..56b2ac408ea15b01946a2d49fa355b0fb5dbf19f 100644
--- a/components/password_manager/core/browser/psl_matching_helper.h
+++ b/components/password_manager/core/browser/psl_matching_helper.h
@@ -19,6 +19,7 @@ enum PSLDomainMatchMetric {
PSL_DOMAIN_MATCH_NOT_USED = 0,
PSL_DOMAIN_MATCH_NONE,
PSL_DOMAIN_MATCH_FOUND,
+ PSL_DOMAIN_MATCH_FOUND_FEDERATED,
PSL_DOMAIN_MATCH_COUNT
};
@@ -48,6 +49,9 @@ std::string GetRegistryControlledDomain(const GURL& signon_realm);
// |origin|.
bool IsFederatedMatch(const std::string& signon_realm, const GURL& origin);
+// Returns true iff |signon_realm| designates a federated PSL matching
+// credential for the |origin|.
+bool IsFederatedPSLMatch(const std::string& signon_realm, const GURL& origin);
} // namespace password_manager
#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PSL_MATCHING_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698