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

Unified Diff: components/password_manager/core/browser/credential_manager_pending_request_task.cc

Issue 1375883002: Support Android username-only credentials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: engedy@ comments Created 5 years, 2 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/core/browser/credential_manager_pending_request_task.cc
diff --git a/components/password_manager/core/browser/credential_manager_pending_request_task.cc b/components/password_manager/core/browser/credential_manager_pending_request_task.cc
index f51edc8805ea765b50702044bc52dcc69ffbf1cc..85650de98ac947ba96e80d6589f474bd6b476a96 100644
--- a/components/password_manager/core/browser/credential_manager_pending_request_task.cc
+++ b/components/password_manager/core/browser/credential_manager_pending_request_task.cc
@@ -7,6 +7,7 @@
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/core/browser/affiliated_match_helper.h"
#include "components/password_manager/core/browser/password_manager_client.h"
+#include "components/password_manager/core/browser/password_manager_util.h"
#include "components/password_manager/core/common/credential_manager_types.h"
#include "url/gurl.h"
@@ -70,6 +71,7 @@ void CredentialManagerPendingRequestTask::OnGetPasswordStoreResults(
// TODO(mkwst): This doesn't create a PasswordForm that we can use to create
// a FederatedCredential (via CreatePasswordFormFromCredentialInfo). We need
// to fix that.
+ password_manager_util::TrimUsernameOnlyCredentials(&affiliated_results);
local_results.insert(local_results.end(), affiliated_results.begin(),
affiliated_results.end());
affiliated_results.weak_clear();
« no previous file with comments | « components/password_manager/core/browser/BUILD.gn ('k') | components/password_manager/core/browser/login_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698