OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/autofill/browser/webdata/autofill_table.h" | 5 #include "components/autofill/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 "base/guid.h" | 14 #include "base/guid.h" |
15 #include "base/i18n/case_conversion.h" | 15 #include "base/i18n/case_conversion.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "base/tuple.h" | 19 #include "base/tuple.h" |
20 #include "components/autofill/browser/autofill_country.h" | 20 #include "components/autofill/browser/autofill_country.h" |
21 #include "components/autofill/browser/autofill_profile.h" | 21 #include "components/autofill/browser/autofill_profile.h" |
22 #include "components/autofill/browser/autofill_type.h" | 22 #include "components/autofill/browser/autofill_type.h" |
23 #include "components/autofill/browser/credit_card.h" | 23 #include "components/autofill/browser/credit_card.h" |
24 #include "components/autofill/browser/personal_data_manager.h" | 24 #include "components/autofill/browser/personal_data_manager.h" |
25 #include "components/autofill/browser/webdata/autofill_change.h" | 25 #include "components/autofill/browser/webdata/autofill_change.h" |
26 #include "components/autofill/browser/webdata/autofill_entry.h" | 26 #include "components/autofill/browser/webdata/autofill_entry.h" |
27 #include "components/autofill/common/form_field_data.h" | 27 #include "components/autofill/core/common/form_field_data.h" |
28 #include "components/webdata/common/web_database.h" | 28 #include "components/webdata/common/web_database.h" |
29 #include "components/webdata/encryptor/encryptor.h" | 29 #include "components/webdata/encryptor/encryptor.h" |
30 #include "googleurl/src/gurl.h" | 30 #include "googleurl/src/gurl.h" |
31 #include "sql/statement.h" | 31 #include "sql/statement.h" |
32 #include "sql/transaction.h" | 32 #include "sql/transaction.h" |
33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
34 | 34 |
35 using base::Time; | 35 using base::Time; |
36 | 36 |
37 namespace autofill { | 37 namespace autofill { |
(...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 if (!db_->DoesColumnExist("credit_cards", "origin") && | 2183 if (!db_->DoesColumnExist("credit_cards", "origin") && |
2184 !db_->Execute("ALTER TABLE credit_cards " | 2184 !db_->Execute("ALTER TABLE credit_cards " |
2185 "ADD COLUMN origin VARCHAR DEFAULT ''")) { | 2185 "ADD COLUMN origin VARCHAR DEFAULT ''")) { |
2186 return false; | 2186 return false; |
2187 } | 2187 } |
2188 | 2188 |
2189 return transaction.Commit(); | 2189 return transaction.Commit(); |
2190 } | 2190 } |
2191 | 2191 |
2192 } // namespace autofill | 2192 } // namespace autofill |
OLD | NEW |