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

Unified Diff: chrome/browser/ui/autofill/data_model_wrapper.cc

Issue 261013010: autocomplete: add ability to get full address (hidden behind a flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc ('k') | components/autofill.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/data_model_wrapper.cc
diff --git a/chrome/browser/ui/autofill/data_model_wrapper.cc b/chrome/browser/ui/autofill/data_model_wrapper.cc
index 1293a9f73180069c3e5f4d4035d1a081bfe26f82..4d513a2cf0d592773c6f3720a265895300e65ecd 100644
--- a/chrome/browser/ui/autofill/data_model_wrapper.cc
+++ b/chrome/browser/ui/autofill/data_model_wrapper.cc
@@ -14,6 +14,7 @@
#include "components/autofill/content/browser/wallet/full_wallet.h"
#include "components/autofill/content/browser/wallet/wallet_address.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
+#include "components/autofill/core/browser/address_i18n.h"
#include "components/autofill/core/browser/autofill_country.h"
#include "components/autofill/core/browser/autofill_data_model.h"
#include "components/autofill/core/browser/autofill_field.h"
@@ -55,13 +56,12 @@ bool DataModelWrapper::GetDisplayText(
return false;
// Format the address.
- ::i18n::addressinput::AddressData address_data;
- i18ninput::CreateAddressData(
- base::Bind(&DataModelWrapper::GetInfo, base::Unretained(this)),
- &address_data);
- address_data.language_code = GetLanguageCode();
+ scoped_ptr< ::i18n::addressinput::AddressData> address_data =
+ i18n::CreateAddressData(
+ base::Bind(&DataModelWrapper::GetInfo, base::Unretained(this)));
+ address_data->language_code = GetLanguageCode();
std::vector<std::string> lines;
- address_data.FormatForDisplay(&lines);
+ address_data->FormatForDisplay(&lines);
// Email and phone number aren't part of address formatting.
base::string16 non_address_info;
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc ('k') | components/autofill.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698