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

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: Created 6 years, 7 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 | components/autofill/content/common/autofill_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
Ilya Sherman 2014/05/30 23:17:54 nit: "TODO(ljagielski)" -> "TODO(ljagielski):"
+ // identify scheme digest
Ilya Sherman 2014/05/30 23:17:54 This TODO is a bit vague on what the problem is.
+ form.scheme = autofill::PasswordForm::SCHEME_BASIC;
+ }
form.ssl_valid = form.origin.SchemeIsSecure();
// The user name, password and action.
form.username_element = s2.ColumnString16(3);
« no previous file with comments | « no previous file | components/autofill/content/common/autofill_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698