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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_address.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « chrome/test/pyautolib/pyautolib.cc ('k') | components/autofill/core/browser/address.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/content/browser/wallet/wallet_address.h" 5 #include "components/autofill/content/browser/wallet/wallet_address.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 return address; 107 return address;
108 } 108 }
109 109
110 } // namespace 110 } // namespace
111 111
112 Address::Address() {} 112 Address::Address() {}
113 113
114 Address::Address(const AutofillProfile& profile) 114 Address::Address(const AutofillProfile& profile)
115 : country_name_code_( 115 : country_name_code_(
116 UTF16ToASCII(profile.GetRawInfo(ADDRESS_HOME_COUNTRY))), 116 base::UTF16ToASCII(profile.GetRawInfo(ADDRESS_HOME_COUNTRY))),
117 recipient_name_(profile.GetRawInfo(NAME_FULL)), 117 recipient_name_(profile.GetRawInfo(NAME_FULL)),
118 locality_name_(profile.GetRawInfo(ADDRESS_HOME_CITY)), 118 locality_name_(profile.GetRawInfo(ADDRESS_HOME_CITY)),
119 dependent_locality_name_( 119 dependent_locality_name_(
120 profile.GetRawInfo(ADDRESS_HOME_DEPENDENT_LOCALITY)), 120 profile.GetRawInfo(ADDRESS_HOME_DEPENDENT_LOCALITY)),
121 administrative_area_name_(profile.GetRawInfo(ADDRESS_HOME_STATE)), 121 administrative_area_name_(profile.GetRawInfo(ADDRESS_HOME_STATE)),
122 postal_code_number_(profile.GetRawInfo(ADDRESS_HOME_ZIP)), 122 postal_code_number_(profile.GetRawInfo(ADDRESS_HOME_ZIP)),
123 sorting_code_(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)), 123 sorting_code_(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)),
124 phone_number_(profile.GetRawInfo(PHONE_HOME_WHOLE_NUMBER)), 124 phone_number_(profile.GetRawInfo(PHONE_HOME_WHOLE_NUMBER)),
125 is_complete_address_(true) { 125 is_complete_address_(true) {
126 base::SplitString( 126 base::SplitString(
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 bool Address::operator==(const Address& other) const { 392 bool Address::operator==(const Address& other) const {
393 return object_id_ == other.object_id_ && EqualsIgnoreID(other); 393 return object_id_ == other.object_id_ && EqualsIgnoreID(other);
394 } 394 }
395 395
396 bool Address::operator!=(const Address& other) const { 396 bool Address::operator!=(const Address& other) const {
397 return !(*this == other); 397 return !(*this == other);
398 } 398 }
399 399
400 } // namespace wallet 400 } // namespace wallet
401 } // namespace autofill 401 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyautolib.cc ('k') | components/autofill/core/browser/address.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698