| OLD | NEW |
| 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/utility/importer/nss_decryptor.h" | 5 #include "chrome/utility/importer/nss_decryptor.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 364 |
| 365 form->origin = url.ReplaceComponents(rep); | 365 form->origin = url.ReplaceComponents(rep); |
| 366 form->signon_realm = form->origin.GetOrigin().spec(); | 366 form->signon_realm = form->origin.GetOrigin().spec(); |
| 367 if (!raw_password_info.realm.empty()) { | 367 if (!raw_password_info.realm.empty()) { |
| 368 form->signon_realm += raw_password_info.realm; | 368 form->signon_realm += raw_password_info.realm; |
| 369 // Non-empty realm indicates that it's not html form authentication entry. | 369 // Non-empty realm indicates that it's not html form authentication entry. |
| 370 // Extracted data doesn't allow us to distinguish basic_auth entry from | 370 // Extracted data doesn't allow us to distinguish basic_auth entry from |
| 371 // digest_auth entry, so let's assume basic_auth. | 371 // digest_auth entry, so let's assume basic_auth. |
| 372 form->scheme = autofill::PasswordForm::SCHEME_BASIC; | 372 form->scheme = autofill::PasswordForm::SCHEME_BASIC; |
| 373 } | 373 } |
| 374 form->ssl_valid = form->origin.SchemeIsCryptographic(); | |
| 375 form->username_element = raw_password_info.username_element; | 374 form->username_element = raw_password_info.username_element; |
| 376 form->username_value = Decrypt(raw_password_info.encrypted_username); | 375 form->username_value = Decrypt(raw_password_info.encrypted_username); |
| 377 form->password_element = raw_password_info.password_element; | 376 form->password_element = raw_password_info.password_element; |
| 378 form->password_value = Decrypt(raw_password_info.encrypted_password); | 377 form->password_value = Decrypt(raw_password_info.encrypted_password); |
| 379 form->action = GURL(raw_password_info.form_action).ReplaceComponents(rep); | 378 form->action = GURL(raw_password_info.form_action).ReplaceComponents(rep); |
| 380 | 379 |
| 381 return true; | 380 return true; |
| 382 } | 381 } |
| OLD | NEW |