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

Side by Side Diff: chrome/browser/autofill/address_field.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/address_field.h" 5 #include "chrome/browser/autofill/address_field.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/autofill/autofill_field.h" 12 #include "chrome/browser/autofill/autofill_field.h"
12 13
13 bool AddressField::GetFieldInfo(FieldTypeMap* field_type_map) const { 14 bool AddressField::GetFieldInfo(FieldTypeMap* field_type_map) const {
14 AutoFillFieldType address_company; 15 AutoFillFieldType address_company;
15 AutoFillFieldType address_line1; 16 AutoFillFieldType address_line1;
16 AutoFillFieldType address_line2; 17 AutoFillFieldType address_line2;
17 AutoFillFieldType address_appt_num; 18 AutoFillFieldType address_appt_num;
18 AutoFillFieldType address_city; 19 AutoFillFieldType address_city;
19 AutoFillFieldType address_state; 20 AutoFillFieldType address_state;
20 AutoFillFieldType address_zip; 21 AutoFillFieldType address_zip;
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 return kBillingAddress; 381 return kBillingAddress;
381 382
382 if (bill == string16::npos && ship != string16::npos) 383 if (bill == string16::npos && ship != string16::npos)
383 return kShippingAddress; 384 return kShippingAddress;
384 385
385 if (bill > ship) 386 if (bill > ship)
386 return kBillingAddress; 387 return kBillingAddress;
387 388
388 return kShippingAddress; 389 return kShippingAddress;
389 } 390 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete_history_manager_unittest.cc ('k') | chrome/browser/autofill/address_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698