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 ad5af3763af9c9eb9312841b6401537967297936..ad39eb7ef7574aba0b26ea7eacb877f38f82a4dd 100644 |
--- a/components/password_manager/core/browser/affiliation_utils.h |
+++ b/components/password_manager/core/browser/affiliation_utils.h |
@@ -51,6 +51,10 @@ |
#include "base/time/time.h" |
#include "url/url_parse.h" |
+namespace base { |
+class CommandLine; |
+} // namespace base |
+ |
namespace password_manager { |
// Encapsulates a facet URI in canonical form. |
@@ -154,6 +158,11 @@ struct AffiliatedFacetsWithUpdateTime { |
bool AreEquivalenceClassesEqual(const AffiliatedFacets& a, |
const AffiliatedFacets& b); |
+// Returns whether or not affiliation based matching is enabled, either via |
+// command line flags or field trials. The command line flag, if present, always |
+// takes precedence. |
+bool IsAffiliationBasedMatchingEnabled(const base::CommandLine& command_line); |
+ |
} // namespace password_manager |
#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_UTILS_H_ |