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

Side by Side Diff: chrome/browser/password_manager/password_store_win.cc

Issue 2127533003: Remove PasswordForm::ssl_valid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust //ios Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/password_manager/password_store_win.h" 5 #include "chrome/browser/password_manager/password_store_win.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (ie7_password::DecryptPasswords(url, 122 if (ie7_password::DecryptPasswords(url,
123 info.encrypted_data, 123 info.encrypted_data,
124 &credentials)) { 124 &credentials)) {
125 for (size_t i = 0; i < credentials.size(); ++i) { 125 for (size_t i = 0; i < credentials.size(); ++i) {
126 PasswordForm* autofill = new PasswordForm(); 126 PasswordForm* autofill = new PasswordForm();
127 autofill->username_value = credentials[i].username; 127 autofill->username_value = credentials[i].username;
128 autofill->password_value = credentials[i].password; 128 autofill->password_value = credentials[i].password;
129 autofill->signon_realm = form.signon_realm; 129 autofill->signon_realm = form.signon_realm;
130 autofill->origin = form.origin; 130 autofill->origin = form.origin;
131 autofill->preferred = true; 131 autofill->preferred = true;
132 autofill->ssl_valid = form.origin.SchemeIsCryptographic();
133 autofill->date_created = info.date_created; 132 autofill->date_created = info.date_created;
134 133
135 matched_forms.push_back(autofill); 134 matched_forms.push_back(autofill);
136 // Add this PasswordForm to the saved password table. We're on the DB 135 // Add this PasswordForm to the saved password table. We're on the DB
137 // thread already, so we use AddLoginImpl. 136 // thread already, so we use AddLoginImpl.
138 password_store_->AddLoginImpl(*autofill); 137 password_store_->AddLoginImpl(*autofill);
139 } 138 }
140 } 139 }
141 } 140 }
142 return matched_forms; 141 return matched_forms;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // first place. See: https://crbug.com/456119. 210 // first place. See: https://crbug.com/456119.
212 ScopedVector<autofill::PasswordForm> matched_forms(FillMatchingLogins(form)); 211 ScopedVector<autofill::PasswordForm> matched_forms(FillMatchingLogins(form));
213 if (matched_forms.empty() && db_handler_) { 212 if (matched_forms.empty() && db_handler_) {
214 db_handler_->GetIE7Login( 213 db_handler_->GetIE7Login(
215 form, base::Bind(&GetLoginsRequest::NotifyConsumerWithResults, 214 form, base::Bind(&GetLoginsRequest::NotifyConsumerWithResults,
216 base::Owned(request.release()))); 215 base::Owned(request.release())));
217 } else { 216 } else {
218 request->NotifyConsumerWithResults(std::move(matched_forms)); 217 request->NotifyConsumerWithResults(std::move(matched_forms));
219 } 218 }
220 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698