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 13c417aa4dd8704b9d2c318fb67e7f4dc74a8b84..fa911ffbd4ff2b0e8f40559988429dba883e836a 100644 |
--- a/components/password_manager/core/browser/affiliation_utils.cc |
+++ b/components/password_manager/core/browser/affiliation_utils.cc |
@@ -320,6 +320,17 @@ bool IsPropagatingPasswordChangesToWebCredentialsEnabled( |
return LowerCaseEqualsASCII(update_enabled, "enabled"); |
} |
+bool IsAffiliationRequestsForDummyFacetsEnabled( |
+ const base::CommandLine& command_line) { |
+ const std::string synthesizing_enabled = variations::GetVariationParamValue( |
+ kFieldTrialName, "affiliation_requests_for_dummy_facets"); |
Ilya Sherman
2015/04/21 00:38:05
Out of curiousity, what is the advantage of using
engedy
2015/04/21 18:29:07
We will never get to initializing this sub-feature
Ilya Sherman
2015/04/21 20:11:27
Got it. Yeah, that sounds reasonable. Thanks for
|
+ if (command_line.HasSwitch(switches::kDisableAffiliationBasedMatching)) |
+ return false; |
+ if (command_line.HasSwitch(switches::kEnableAffiliationBasedMatching)) |
+ return true; |
+ return LowerCaseEqualsASCII(synthesizing_enabled, "enabled"); |
+} |
+ |
bool IsValidAndroidFacetURI(const std::string& url) { |
FacetURI facet = FacetURI::FromPotentiallyInvalidSpec(url); |
return facet.IsValidAndroidFacetURI(); |