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

Unified Diff: chrome/utility/importer/nss_decryptor.cc

Issue 306123004: NSSDecryptor::ReadAndParseSignons() - improved password form scheme detection, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittest added Created 6 years, 6 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: chrome/utility/importer/nss_decryptor.cc
diff --git a/chrome/utility/importer/nss_decryptor.cc b/chrome/utility/importer/nss_decryptor.cc
index 6b22ae2166f4ade49c02368031952f2e90c803d0..1a4f134962d1a0d17a2bc70d8ae2f722df5bf20a 100644
--- a/chrome/utility/importer/nss_decryptor.cc
+++ b/chrome/utility/importer/nss_decryptor.cc
@@ -284,8 +284,12 @@ bool NSSDecryptor::ReadAndParseSignons(const base::FilePath& sqlite_file,
autofill::PasswordForm form;
form.origin = url.ReplaceComponents(rep);
form.signon_realm = form.origin.GetOrigin().spec();
- if (!realm.empty())
+ if (!realm.empty()) {
form.signon_realm += realm;
+ // TODO(ljagielski) this isn't perfect, find out how to
+ // identify scheme digest
+ form.scheme = autofill::PasswordForm::SCHEME_BASIC;
+ }
form.ssl_valid = form.origin.SchemeIsSecure();
// The user name, password and action.
form.username_element = s2.ColumnString16(3);

Powered by Google App Engine
This is Rietveld 408576698