| 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> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/base64.h" | 12 #include "base/base64.h" |
| 11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 12 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 15 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 } | 372 } |
| 371 form->ssl_valid = form->origin.SchemeIsCryptographic(); | 373 form->ssl_valid = form->origin.SchemeIsCryptographic(); |
| 372 form->username_element = raw_password_info.username_element; | 374 form->username_element = raw_password_info.username_element; |
| 373 form->username_value = Decrypt(raw_password_info.encrypted_username); | 375 form->username_value = Decrypt(raw_password_info.encrypted_username); |
| 374 form->password_element = raw_password_info.password_element; | 376 form->password_element = raw_password_info.password_element; |
| 375 form->password_value = Decrypt(raw_password_info.encrypted_password); | 377 form->password_value = Decrypt(raw_password_info.encrypted_password); |
| 376 form->action = GURL(raw_password_info.form_action).ReplaceComponents(rep); | 378 form->action = GURL(raw_password_info.form_action).ReplaceComponents(rep); |
| 377 | 379 |
| 378 return true; | 380 return true; |
| 379 } | 381 } |
| OLD | NEW |