| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser/password_manager/password_store_win.h" | 5 #include "chrome/browser/password_manager/password_store_win.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/password_manager/ie7_password.h" | 10 #include "chrome/browser/password_manager/ie7_password.h" |
| 10 #include "chrome/browser/password_manager/password_manager.h" | 11 #include "chrome/browser/password_manager/password_manager.h" |
| 11 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
| 12 | 13 |
| 13 using std::map; | 14 using std::map; |
| 14 using std::vector; | 15 using std::vector; |
| 15 using webkit_glue::PasswordForm; | 16 using webkit_glue::PasswordForm; |
| 16 | 17 |
| 17 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, | 18 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, |
| 18 Profile* profile, | 19 Profile* profile, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 auto_fill->password_value = password; | 124 auto_fill->password_value = password; |
| 124 auto_fill->preferred = true; | 125 auto_fill->preferred = true; |
| 125 auto_fill->ssl_valid = form.origin.SchemeIsSecure(); | 126 auto_fill->ssl_valid = form.origin.SchemeIsSecure(); |
| 126 auto_fill->date_created = info.date_created; | 127 auto_fill->date_created = info.date_created; |
| 127 // Add this PasswordForm to the saved password table. | 128 // Add this PasswordForm to the saved password table. |
| 128 AddLogin(*auto_fill); | 129 AddLogin(*auto_fill); |
| 129 return auto_fill; | 130 return auto_fill; |
| 130 } | 131 } |
| 131 return NULL; | 132 return NULL; |
| 132 } | 133 } |
| OLD | NEW |