| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/core/browser/webdata/autofill_table.h" | 5 #include "components/autofill/core/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/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "base/tuple.h" | 20 #include "base/tuple.h" |
| 21 #include "components/autofill/core/browser/autofill_country.h" | 21 #include "components/autofill/core/browser/autofill_country.h" |
| 22 #include "components/autofill/core/browser/autofill_profile.h" | 22 #include "components/autofill/core/browser/autofill_profile.h" |
| 23 #include "components/autofill/core/browser/autofill_type.h" | 23 #include "components/autofill/core/browser/autofill_type.h" |
| 24 #include "components/autofill/core/browser/credit_card.h" | 24 #include "components/autofill/core/browser/credit_card.h" |
| 25 #include "components/autofill/core/browser/personal_data_manager.h" | 25 #include "components/autofill/core/browser/personal_data_manager.h" |
| 26 #include "components/autofill/core/browser/webdata/autofill_change.h" | 26 #include "components/autofill/core/browser/webdata/autofill_change.h" |
| 27 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 27 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| 28 #include "components/autofill/core/common/form_field_data.h" | 28 #include "components/autofill/core/common/form_field_data.h" |
| 29 #include "components/encryptor/encryptor.h" |
| 29 #include "components/webdata/common/web_database.h" | 30 #include "components/webdata/common/web_database.h" |
| 30 #include "components/webdata/encryptor/encryptor.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 #include "url/gurl.h" | 34 #include "url/gurl.h" |
| 35 | 35 |
| 36 using base::Time; | 36 using base::Time; |
| 37 | 37 |
| 38 namespace autofill { | 38 namespace autofill { |
| 39 namespace { | 39 namespace { |
| 40 | 40 |
| (...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2285 if (!db_->Execute("ALTER TABLE autofill_profile_phones_temp " | 2285 if (!db_->Execute("ALTER TABLE autofill_profile_phones_temp " |
| 2286 "RENAME TO autofill_profile_phones")) { | 2286 "RENAME TO autofill_profile_phones")) { |
| 2287 return false; | 2287 return false; |
| 2288 } | 2288 } |
| 2289 } | 2289 } |
| 2290 | 2290 |
| 2291 return transaction.Commit(); | 2291 return transaction.Commit(); |
| 2292 } | 2292 } |
| 2293 | 2293 |
| 2294 } // namespace autofill | 2294 } // namespace autofill |
| OLD | NEW |