OLD | NEW |
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/wallet/wallet_address.h" | 5 #include "components/autofill/browser/wallet/wallet_address.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/autofill/autofill_country.h" | 10 #include "components/autofill/browser/autofill_country.h" |
11 | 11 |
12 namespace autofill { | 12 namespace autofill { |
13 namespace wallet { | 13 namespace wallet { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 Address* CreateAddressInternal(const base::DictionaryValue& dictionary, | 17 Address* CreateAddressInternal(const base::DictionaryValue& dictionary, |
18 const std::string& object_id) { | 18 const std::string& object_id) { |
19 std::string country_name_code; | 19 std::string country_name_code; |
20 if (!dictionary.GetString("postal_address.country_name_code", | 20 if (!dictionary.GetString("postal_address.country_name_code", |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 phone_number_ == other.phone_number_ && | 254 phone_number_ == other.phone_number_ && |
255 object_id_ == other.object_id_; | 255 object_id_ == other.object_id_; |
256 } | 256 } |
257 | 257 |
258 bool Address::operator!=(const Address& other) const { | 258 bool Address::operator!=(const Address& other) const { |
259 return !(*this == other); | 259 return !(*this == other); |
260 } | 260 } |
261 | 261 |
262 } // namespace wallet | 262 } // namespace wallet |
263 } // namespace autofill | 263 } // namespace autofill |
OLD | NEW |