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/autofill_table.h" | 5 #include "chrome/browser/webdata/autofill_table.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "app/sql/statement.h" | |
15 #include "base/i18n/case_conversion.h" | 14 #include "base/i18n/case_conversion.h" |
16 #include "base/logging.h" | 15 #include "base/logging.h" |
17 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
18 #include "base/time.h" | 17 #include "base/time.h" |
19 #include "base/tuple.h" | 18 #include "base/tuple.h" |
20 #include "chrome/browser/autofill/autofill_country.h" | 19 #include "chrome/browser/autofill/autofill_country.h" |
21 #include "chrome/browser/autofill/autofill_profile.h" | 20 #include "chrome/browser/autofill/autofill_profile.h" |
22 #include "chrome/browser/autofill/autofill_type.h" | 21 #include "chrome/browser/autofill/autofill_type.h" |
23 #include "chrome/browser/autofill/credit_card.h" | 22 #include "chrome/browser/autofill/credit_card.h" |
24 #include "chrome/browser/autofill/personal_data_manager.h" | 23 #include "chrome/browser/autofill/personal_data_manager.h" |
25 #include "chrome/browser/password_manager/encryptor.h" | 24 #include "chrome/browser/password_manager/encryptor.h" |
26 #include "chrome/browser/webdata/autofill_change.h" | 25 #include "chrome/browser/webdata/autofill_change.h" |
27 #include "chrome/common/guid.h" | 26 #include "chrome/common/guid.h" |
| 27 #include "sql/statement.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "webkit/glue/form_field.h" | 29 #include "webkit/glue/form_field.h" |
30 | 30 |
31 using base::Time; | 31 using base::Time; |
32 using webkit_glue::FormField; | 32 using webkit_glue::FormField; |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Constants for the |autofill_profile_phones| |type| column. | 36 // Constants for the |autofill_profile_phones| |type| column. |
37 enum AutofillPhoneType { | 37 enum AutofillPhoneType { |
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2155 "UPDATE autofill_profiles SET date_modified=? " | 2155 "UPDATE autofill_profiles SET date_modified=? " |
2156 "WHERE guid=?")); | 2156 "WHERE guid=?")); |
2157 s_date.BindInt64(0, date_item->second); | 2157 s_date.BindInt64(0, date_item->second); |
2158 s_date.BindString(1, iter->guid()); | 2158 s_date.BindString(1, iter->guid()); |
2159 if (!s_date.Run()) | 2159 if (!s_date.Run()) |
2160 return false; | 2160 return false; |
2161 } | 2161 } |
2162 | 2162 |
2163 return true; | 2163 return true; |
2164 } | 2164 } |
OLD | NEW |