Chromium Code Reviews| Index: third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl |
| diff --git a/third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl b/third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl |
| index 0e5902aaa632ccedb4299e0618a037d93f7767fc..5f8435e71b433d982a4fb30ba925432826d247ee 100644 |
| --- a/third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl |
| +++ b/third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl |
| @@ -2,11 +2,25 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -// https://w3c.github.io/webappsec/specs/credentialmanagement/#dictdef-credentialrequestoptions |
| +// https://w3c.github.io/webappsec-credential-management/#dictdef-credentialrequestoptions |
| + |
| +[RuntimeEnabled=CredentialRequestOptionsMediation] |
|
vasilii
2017/05/18 16:16:12
What is the motivation for this?
jdoerrie
2017/05/19 09:03:18
I added this so that we are not blocked by the int
|
| +enum CredentialMediationRequirement { |
| + "silent", |
| + "optional", |
| + "required" |
| +}; |
| dictionary CredentialRequestOptions { |
| FederatedCredentialRequestOptions federated; |
| boolean password = false; |
| - boolean unmediated = false; |
| + // Defaults to false. This is not set here to detect when both 'unmediated' |
| + // and 'mediation' are user provided, which results in an error. |
| + [DeprecateAs=CredentialManagerCredentialRequestOptionsUnmediated] boolean |
| + unmediated; |
| + // Defaults to "optional". This is not set here to detect when both |
| + // 'unmediated' and 'mediation' are user provided, which results in an |
| + // error. |
| + [RuntimeEnabled=CredentialRequestOptionsMediation] CredentialMediationRequirement mediation; |
| }; |