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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 170783005: Always call into the embedder for password autofill auth if password uses it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove assert in requestAuthentication. Created 6 years, 10 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 | « chrome/browser/android/password_authentication_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/chrome_password_manager_client.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
index 51ee6be440a6c22fb43e60429809ce22c04393d3..8daf0a47e9a127cfae8ae07e6490ad5c705531d0 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
@@ -91,20 +91,16 @@ void ChromePasswordManagerClient::PasswordWasAutofilled(
void ChromePasswordManagerClient::AuthenticateAutofillAndFillForm(
scoped_ptr<autofill::PasswordFormFillData> fill_data) {
#if defined(OS_ANDROID)
- if (PasswordAuthenticationManager
- ::IsAutofillPasswordAuthenticationEnabled()) {
- PasswordAuthenticationManager::AuthenticatePasswordAutofill(
- web_contents_,
- base::Bind(&ChromePasswordManagerClient::CommitFillPasswordForm,
- weak_factory_.GetWeakPtr(),
- base::Owned(fill_data.release())));
- return;
- }
-#endif // OS_ANDROID
-
+ PasswordAuthenticationManager::AuthenticatePasswordAutofill(
+ web_contents_,
+ base::Bind(&ChromePasswordManagerClient::CommitFillPasswordForm,
+ weak_factory_.GetWeakPtr(),
+ base::Owned(fill_data.release())));
+#else
// Additional authentication is currently only available for Android, so all
// other plaftorms should just fill the password form directly.
CommitFillPasswordForm(fill_data.get());
+#endif // OS_ANDROID
}
Profile* ChromePasswordManagerClient::GetProfile() {
« no previous file with comments | « chrome/browser/android/password_authentication_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698