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

Unified Diff: components/password_manager/content/common/credential_manager.mojom

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Rebase Created 3 years, 7 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/content/common/credential_manager.mojom
diff --git a/components/password_manager/content/common/credential_manager.mojom b/components/password_manager/content/common/credential_manager.mojom
index cc4981d8bc872909595a332add777a334da00e32..cea374c736e9bc256283cbfd94f50c5691de1840 100644
--- a/components/password_manager/content/common/credential_manager.mojom
+++ b/components/password_manager/content/common/credential_manager.mojom
@@ -13,6 +13,12 @@ enum CredentialType {
FEDERATED
};
+enum CredentialMediationRequirement {
+ kSilent,
+ kOptional,
+ kRequired
+};
+
enum CredentialManagerError {
SUCCESS,
DISABLED,
@@ -40,7 +46,7 @@ interface CredentialManager {
// Get Credential. For navigator.credentials.get().
// The result callback will return a non-null and valid CredentialInfo
// if succeeded, or null with a CredentialManagerError if failed.
- Get(bool zero_click_only,
+ Get(CredentialMediationRequirement mediation,
bool include_passwords,
array<url.mojom.Url> federations)
=> (CredentialManagerError error, CredentialInfo? credential);

Powered by Google App Engine
This is Rietveld 408576698