| 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/autofill/form_structure.h" | 5 #include "chrome/browser/autofill/form_structure.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/sha1.h" | 12 #include "base/sha1.h" |
| 12 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 13 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 14 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 15 #include "base/time.h" | 16 #include "base/time.h" |
| 16 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 17 #include "chrome/browser/autofill/autofill_metrics.h" | 18 #include "chrome/browser/autofill/autofill_metrics.h" |
| 18 #include "chrome/browser/autofill/autofill_type.h" | 19 #include "chrome/browser/autofill/autofill_type.h" |
| 19 #include "chrome/browser/autofill/autofill_xml_parser.h" | 20 #include "chrome/browser/autofill/autofill_xml_parser.h" |
| 20 #include "chrome/browser/autofill/field_types.h" | 21 #include "chrome/browser/autofill/field_types.h" |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 for (std::vector<AutofillField*>::iterator field = fields_->begin(); | 966 for (std::vector<AutofillField*>::iterator field = fields_->begin(); |
| 966 field != fields_->end(); ++field) { | 967 field != fields_->end(); ++field) { |
| 967 AutofillType::FieldTypeGroup field_type_group = | 968 AutofillType::FieldTypeGroup field_type_group = |
| 968 AutofillType((*field)->type()).group(); | 969 AutofillType((*field)->type()).group(); |
| 969 if (field_type_group == AutofillType::CREDIT_CARD) | 970 if (field_type_group == AutofillType::CREDIT_CARD) |
| 970 (*field)->set_section((*field)->section() + ASCIIToUTF16("-cc")); | 971 (*field)->set_section((*field)->section() + ASCIIToUTF16("-cc")); |
| 971 else | 972 else |
| 972 (*field)->set_section((*field)->section() + ASCIIToUTF16("-default")); | 973 (*field)->set_section((*field)->section() + ASCIIToUTF16("-default")); |
| 973 } | 974 } |
| 974 } | 975 } |
| OLD | NEW |