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

Side by Side Diff: components/autofill/browser/form_structure.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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
OLDNEW
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 "chrome/browser/autofill/form_structure.h" 5 #include "components/autofill/browser/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/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/sha1.h" 13 #include "base/sha1.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/stringprintf.h" 15 #include "base/stringprintf.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "chrome/browser/autofill/autocheckout_page_meta_data.h" 19 #include "components/autofill/browser/autocheckout_page_meta_data.h"
20 #include "chrome/browser/autofill/autofill_metrics.h" 20 #include "components/autofill/browser/autofill_metrics.h"
21 #include "chrome/browser/autofill/autofill_type.h" 21 #include "components/autofill/browser/autofill_type.h"
22 #include "chrome/browser/autofill/autofill_xml_parser.h" 22 #include "components/autofill/browser/autofill_xml_parser.h"
23 #include "chrome/browser/autofill/field_types.h" 23 #include "components/autofill/browser/field_types.h"
24 #include "chrome/browser/autofill/form_field.h" 24 #include "components/autofill/browser/form_field.h"
25 #include "components/autofill/common/form_data.h" 25 #include "components/autofill/common/form_data.h"
26 #include "components/autofill/common/form_data_predictions.h" 26 #include "components/autofill/common/form_data_predictions.h"
27 #include "components/autofill/common/form_field_data.h" 27 #include "components/autofill/common/form_field_data.h"
28 #include "components/autofill/common/form_field_data_predictions.h" 28 #include "components/autofill/common/form_field_data_predictions.h"
29 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" 29 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
30 30
31 namespace { 31 namespace {
32 32
33 const char kFormMethodPost[] = "post"; 33 const char kFormMethodPost[] = "post";
34 34
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 for (std::vector<AutofillField*>::iterator field = fields_.begin(); 1147 for (std::vector<AutofillField*>::iterator field = fields_.begin();
1148 field != fields_.end(); ++field) { 1148 field != fields_.end(); ++field) {
1149 AutofillType::FieldTypeGroup field_type_group = 1149 AutofillType::FieldTypeGroup field_type_group =
1150 AutofillType((*field)->type()).group(); 1150 AutofillType((*field)->type()).group();
1151 if (field_type_group == AutofillType::CREDIT_CARD) 1151 if (field_type_group == AutofillType::CREDIT_CARD)
1152 (*field)->set_section((*field)->section() + "-cc"); 1152 (*field)->set_section((*field)->section() + "-cc");
1153 else 1153 else
1154 (*field)->set_section((*field)->section() + "-default"); 1154 (*field)->set_section((*field)->section() + "-default");
1155 } 1155 }
1156 } 1156 }
OLDNEW
« no previous file with comments | « components/autofill/browser/form_structure.h ('k') | components/autofill/browser/form_structure_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698