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

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

Issue 898553002: Add flag to enable/disable affiliaton based matching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work on terminology. Created 5 years, 10 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 5a25b53e134cf5594ffb878895df13cb7e352d1f..8054346d78206788c6e1fbe0e2379758ca080445 100644
--- a/components/password_manager/core/browser/affiliation_utils.h
+++ b/components/password_manager/core/browser/affiliation_utils.h
@@ -53,6 +53,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.
@@ -161,6 +165,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);
+
// For logging use only.
std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri);

Powered by Google App Engine
This is Rietveld 408576698