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 "base/utf_string_conversions.h" |
10 #include "chrome/browser/password_manager/ie7_password.h" | 10 #include "chrome/browser/password_manager/ie7_password.h" |
11 #include "chrome/browser/password_manager/password_manager.h" | 11 #include "chrome/browser/password_manager/password_manager.h" |
12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 | 13 |
14 using std::map; | 14 using std::map; |
15 using std::vector; | 15 using std::vector; |
16 using webkit_glue::PasswordForm; | 16 using webkit_glue::PasswordForm; |
17 | 17 |
18 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, | 18 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, |
19 Profile* profile, | 19 Profile* profile, |
20 WebDataService* web_data_service) | 20 WebDataService* web_data_service) |
21 : PasswordStoreDefault(login_database, profile, web_data_service) { | 21 : PasswordStoreDefault(login_database, profile, web_data_service) { |
22 } | 22 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 auto_fill->password_value = password; | 124 auto_fill->password_value = password; |
125 auto_fill->preferred = true; | 125 auto_fill->preferred = true; |
126 auto_fill->ssl_valid = form.origin.SchemeIsSecure(); | 126 auto_fill->ssl_valid = form.origin.SchemeIsSecure(); |
127 auto_fill->date_created = info.date_created; | 127 auto_fill->date_created = info.date_created; |
128 // Add this PasswordForm to the saved password table. | 128 // Add this PasswordForm to the saved password table. |
129 AddLogin(*auto_fill); | 129 AddLogin(*auto_fill); |
130 return auto_fill; | 130 return auto_fill; |
131 } | 131 } |
132 return NULL; | 132 return NULL; |
133 } | 133 } |
OLD | NEW |