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

Side by Side Diff: components/autofill/core/browser/address_field.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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) 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 "components/autofill/browser/address_field.h" 5 #include "components/autofill/core/browser/address_field.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "components/autofill/browser/autofill_field.h" 14 #include "components/autofill/core/browser/autofill_field.h"
15 #include "components/autofill/browser/autofill_regex_constants.h" 15 #include "components/autofill/core/browser/autofill_regex_constants.h"
16 #include "components/autofill/browser/autofill_scanner.h" 16 #include "components/autofill/core/browser/autofill_scanner.h"
17 #include "components/autofill/browser/field_types.h" 17 #include "components/autofill/core/browser/field_types.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 19
20 namespace autofill { 20 namespace autofill {
21 21
22 FormField* AddressField::Parse(AutofillScanner* scanner) { 22 FormField* AddressField::Parse(AutofillScanner* scanner) {
23 if (scanner->IsEnd()) 23 if (scanner->IsEnd())
24 return NULL; 24 return NULL;
25 25
26 scoped_ptr<AddressField> address_field(new AddressField); 26 scoped_ptr<AddressField> address_field(new AddressField);
27 const AutofillField* const initial_field = scanner->Cursor(); 27 const AutofillField* const initial_field = scanner->Cursor();
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if (bill == base::string16::npos && ship != base::string16::npos) 332 if (bill == base::string16::npos && ship != base::string16::npos)
333 return kShippingAddress; 333 return kShippingAddress;
334 334
335 if (bill > ship) 335 if (bill > ship)
336 return kBillingAddress; 336 return kBillingAddress;
337 337
338 return kShippingAddress; 338 return kShippingAddress;
339 } 339 }
340 340
341 } // namespace autofill 341 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/address_field.h ('k') | components/autofill/core/browser/address_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698