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

Side by Side Diff: chrome/browser/webdata/logins_table.cc

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/webdata/keyword_table.cc ('k') | chrome/browser/webdata/logins_table_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/keyword_table.cc ('k') | chrome/browser/webdata/logins_table_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698