OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webdata/logins_table.h" | 5 #include "chrome/browser/webdata/logins_table.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "app/sql/statement.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "chrome/browser/password_manager/encryptor.h" | 11 #include "chrome/browser/password_manager/encryptor.h" |
| 12 #include "sql/statement.h" |
13 #include "webkit/glue/password_form.h" | 13 #include "webkit/glue/password_form.h" |
14 | 14 |
15 using webkit_glue::PasswordForm; | 15 using webkit_glue::PasswordForm; |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 void InitPasswordFormFromStatement(PasswordForm* form, sql::Statement* s) { | 19 void InitPasswordFormFromStatement(PasswordForm* form, sql::Statement* s) { |
20 std::string tmp; | 20 std::string tmp; |
21 string16 decrypted_password; | 21 string16 decrypted_password; |
22 tmp = s->ColumnString(0); | 22 tmp = s->ColumnString(0); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 287 } |
288 | 288 |
289 while (s.Step()) { | 289 while (s.Step()) { |
290 PasswordForm* new_form = new PasswordForm(); | 290 PasswordForm* new_form = new PasswordForm(); |
291 InitPasswordFormFromStatement(new_form, &s); | 291 InitPasswordFormFromStatement(new_form, &s); |
292 | 292 |
293 forms->push_back(new_form); | 293 forms->push_back(new_form); |
294 } | 294 } |
295 return s.Succeeded(); | 295 return s.Succeeded(); |
296 } | 296 } |
OLD | NEW |