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

Side by Side Diff: chrome/utility/importer/nss_decryptor.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/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
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 }
OLDNEW
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | components/autofill/content/common/autofill_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698