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

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

Issue 108603005: Update uses of Value in chromeos/, cloud_print/, components/, content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 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_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DLOG(ERROR) << "Response from Google Wallet missing postal code number"; 44 DLOG(ERROR) << "Response from Google Wallet missing postal code number";
45 return NULL; 45 return NULL;
46 } 46 }
47 47
48 base::string16 phone_number; 48 base::string16 phone_number;
49 if (!dictionary.GetString("phone_number", &phone_number)) 49 if (!dictionary.GetString("phone_number", &phone_number))
50 DVLOG(1) << "Response from Google Wallet missing phone number"; 50 DVLOG(1) << "Response from Google Wallet missing phone number";
51 51
52 base::string16 address_line_1; 52 base::string16 address_line_1;
53 base::string16 address_line_2; 53 base::string16 address_line_2;
54 const ListValue* address_line_list; 54 const base::ListValue* address_line_list;
55 if (dictionary.GetList("postal_address.address_line", &address_line_list)) { 55 if (dictionary.GetList("postal_address.address_line", &address_line_list)) {
56 if (!address_line_list->GetString(0, &address_line_1)) 56 if (!address_line_list->GetString(0, &address_line_1))
57 DVLOG(1) << "Response from Google Wallet missing address line 1"; 57 DVLOG(1) << "Response from Google Wallet missing address line 1";
58 if (!address_line_list->GetString(1, &address_line_2)) 58 if (!address_line_list->GetString(1, &address_line_2))
59 DVLOG(1) << "Response from Google Wallet missing address line 2"; 59 DVLOG(1) << "Response from Google Wallet missing address line 2";
60 } else { 60 } else {
61 DVLOG(1) << "Response from Google Wallet missing address lines"; 61 DVLOG(1) << "Response from Google Wallet missing address lines";
62 } 62 }
63 63
64 base::string16 locality_name; 64 base::string16 locality_name;
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 bool Address::operator==(const Address& other) const { 350 bool Address::operator==(const Address& other) const {
351 return object_id_ == other.object_id_ && EqualsIgnoreID(other); 351 return object_id_ == other.object_id_ && EqualsIgnoreID(other);
352 } 352 }
353 353
354 bool Address::operator!=(const Address& other) const { 354 bool Address::operator!=(const Address& other) const {
355 return !(*this == other); 355 return !(*this == other);
356 } 356 }
357 357
358 } // namespace wallet 358 } // namespace wallet
359 } // namespace autofill 359 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698