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

Side by Side Diff: components/autofill/browser/wallet/wallet_address.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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/autofill/browser/wallet/wallet_address.h ('k') | components/autofill/browser/wallet/wallet_address_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698