Index: components/password_manager/core/browser/password_manager_metrics_util.cc |
diff --git a/components/password_manager/core/browser/password_manager_metrics_util.cc b/components/password_manager/core/browser/password_manager_metrics_util.cc |
index ebe75e7ab9100d8c082f2e87421974843a2eb7c2..164f55d6071d7b69e8fb33f91a0ffcd1156f1048 100644 |
--- a/components/password_manager/core/browser/password_manager_metrics_util.cc |
+++ b/components/password_manager/core/browser/password_manager_metrics_util.cc |
@@ -132,14 +132,18 @@ void LogAccountChooserUsability(AccountChooserUsabilityMetric usability, |
} |
void LogCredentialManagerGetResult(CredentialManagerGetResult result, |
- CredentialManagerGetMediation status) { |
- switch (status) { |
- case CREDENTIAL_MANAGER_GET_UNMEDIATED: |
- UMA_HISTOGRAM_ENUMERATION("PasswordManager.GetUnmediated", result, |
+ CredentialMediationRequirement mediation) { |
+ switch (mediation) { |
+ case CredentialMediationRequirement::kSilent: |
+ UMA_HISTOGRAM_ENUMERATION("PasswordManager.MediationSilent", result, |
CREDENTIAL_MANAGER_GET_COUNT); |
break; |
- case CREDENTIAL_MANAGER_GET_MEDIATED: |
- UMA_HISTOGRAM_ENUMERATION("PasswordManager.GetMediated", result, |
+ case CredentialMediationRequirement::kOptional: |
+ UMA_HISTOGRAM_ENUMERATION("PasswordManager.MediationOptional", result, |
+ CREDENTIAL_MANAGER_GET_COUNT); |
+ break; |
+ case CredentialMediationRequirement::kRequired: |
+ UMA_HISTOGRAM_ENUMERATION("PasswordManager.MediationRequired", result, |
CREDENTIAL_MANAGER_GET_COUNT); |
break; |
} |