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

Unified Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 389733002: Reland "Use upstream libaddressinput in Chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GN build. Created 6 years, 5 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 | « components/autofill/core/browser/autofill_profile.cc ('k') | third_party/libaddressinput/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index e5270ec43360451bb1ffb755c2a8da4c5052b5ac..42f896db1dc83f8a78b1326e464c74a20284834b 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -24,9 +24,7 @@
#include "components/autofill/core/browser/phone_number_i18n.h"
#include "components/autofill/core/browser/validation.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "third_party/libaddressinput/chromium/cpp/src/region_data_constants.h"
-
-using ::i18n::addressinput::RegionDataConstants;
+#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_formatter.h"
namespace autofill {
namespace {
@@ -573,7 +571,7 @@ void PersonalDataManager::GetProfileSuggestions(
// multi-line addresses into a single line, using a separator.
// The separator is locale-specific.
base::string16 compact_separator =
- base::UTF8ToUTF16(RegionDataConstants::GetLanguageCompactLineSeparator(
+ base::UTF8ToUTF16(::i18n::addressinput::GetLineSeparatorForLanguage(
profile->language_code()));
for (size_t i = 0; i < multi_values.size(); ++i) {
// Create vertically compact form.
« no previous file with comments | « components/autofill/core/browser/autofill_profile.cc ('k') | third_party/libaddressinput/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698