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

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

Issue 153043005: Autofilling passwords imported from IE more conservative (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating unit test" 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 | « no previous file | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_store_win.cc
diff --git a/chrome/browser/password_manager/password_store_win.cc b/chrome/browser/password_manager/password_store_win.cc
index 69c01cef23c93d69be161aa4ecc0bf6b1a4dc89c..ada21dcf71fc90943c23cf33cbc1bb614b56f4d3 100644
--- a/chrome/browser/password_manager/password_store_win.cc
+++ b/chrome/browser/password_manager/password_store_win.cc
@@ -117,12 +117,15 @@ std::vector<PasswordForm*> PasswordStoreWin::DBHandler::GetIE7Results(
info.encrypted_data,
&credentials)) {
for (size_t i = 0; i < credentials.size(); ++i) {
- PasswordForm* autofill = new PasswordForm(form);
+ PasswordForm* autofill = new PasswordForm();
autofill->username_value = credentials[i].username;
autofill->password_value = credentials[i].password;
+ autofill->signon_realm = form.signon_realm;
+ autofill->origin = form.origin;
autofill->preferred = true;
autofill->ssl_valid = form.origin.SchemeIsSecure();
autofill->date_created = info.date_created;
+
matching_forms.push_back(autofill);
// Add this PasswordForm to the saved password table. We're on the DB
// thread already, so we use AddLoginImpl.
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698