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

Unified Diff: ios/chrome/browser/passwords/credential_manager.mm

Issue 1840033003: Fix iOS compilation after https://codereview.chromium.org/1832933002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 9 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
« no previous file with comments | « ios/chrome/browser/passwords/credential_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..76261153b96b2389b202041aa73d07713de2ae3f 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 (crbug.com/594110).
+ }
+ SendCredential(request_id, info);
+}
+
password_manager::PasswordManagerClient* CredentialManager::client() const {
return client_;
}
« no previous file with comments | « ios/chrome/browser/passwords/credential_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698