Chromium Code Reviews| Index: ios/chrome/browser/passwords/credential_manager.mm |
| diff --git a/ios/chrome/browser/passwords/credential_manager.mm b/ios/chrome/browser/passwords/credential_manager.mm |
| index 7376962e22b7bc64d8a0c05d64ce73df58356c92..6b2afa8241ba2e22562fa1dc934fe116b1a6131d 100644 |
| --- a/ios/chrome/browser/passwords/credential_manager.mm |
| +++ b/ios/chrome/browser/passwords/credential_manager.mm |
| @@ -284,6 +284,20 @@ void CredentialManager::SendCredential( |
| }]; |
| } |
| +void CredentialManager::SendPasswordForm(int request_id, |
| + const autofill::PasswordForm* form) { |
| + password_manager::CredentialInfo info; |
| + if (form) { |
| + password_manager::CredentialType type_to_return = |
| + form->federation_origin.unique() |
| + ? password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD |
| + : password_manager::CredentialType::CREDENTIAL_TYPE_FEDERATED; |
| + info = password_manager::CredentialInfo(*form, type_to_return); |
| + // TODO(vasilii): update |skip_zero_click| in the store. |
|
vabr (Chromium)
2016/03/29 16:02:58
nit: Please refer the bug: TODO(crbug.com/...)
vasilii
2016/03/29 16:07:42
Done.
|
| + } |
| + SendCredential(request_id, info); |
| +} |
| + |
| password_manager::PasswordManagerClient* CredentialManager::client() const { |
| return client_; |
| } |