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

Side by Side Diff: components/autofill/browser/form_group.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
« no previous file with comments | « components/autofill/browser/form_group.h ('k') | components/autofill/browser/form_structure.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_group.h" 5 #include "components/autofill/browser/form_group.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/autofill/autofill_country.h" 14 #include "components/autofill/browser/autofill_country.h"
15 #include "components/autofill/common/form_field_data.h" 15 #include "components/autofill/common/form_field_data.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 18
19 namespace { 19 namespace {
20 20
21 // TODO(jhawkins): Add more states/provinces. See http://crbug.com/45039. 21 // TODO(jhawkins): Add more states/provinces. See http://crbug.com/45039.
22 22
23 class State { 23 class State {
24 public: 24 public:
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 313 }
314 314
315 bool FormGroup::FillCountrySelectControl(FormFieldData* field_data) const { 315 bool FormGroup::FillCountrySelectControl(FormFieldData* field_data) const {
316 return false; 316 return false;
317 } 317 }
318 318
319 // static 319 // static
320 bool FormGroup::IsValidState(const string16& value) { 320 bool FormGroup::IsValidState(const string16& value) {
321 return !State::Abbreviation(value).empty() || !State::FullName(value).empty(); 321 return !State::Abbreviation(value).empty() || !State::FullName(value).empty();
322 } 322 }
OLDNEW
« no previous file with comments | « components/autofill/browser/form_group.h ('k') | components/autofill/browser/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698