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

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

Issue 211443003: Revert of Determine language code and type of format for address. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/country_combobox_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
index c079e3d9c5cb82b28f4f32eeede7e9bb599d704c..ee60f4196909af51bd0061f03eef1d4d856eb7f4 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
@@ -6,7 +6,6 @@
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/browser_process.h"
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/credit_card.h"
#include "components/autofill/core/browser/field_types.h"
@@ -39,11 +38,8 @@
void BuildAddressInputs(common::AddressType address_type,
const std::string& country_code,
DetailInputs* inputs) {
- // TODO(rouslan): Store the language code for the autofill profile.
- // http://crbug.com/354955
std::vector<AddressUiComponent> components(
- ::i18n::addressinput::BuildComponents(
- country_code, g_browser_process->GetApplicationLocale(), NULL));
+ ::i18n::addressinput::BuildComponents(country_code));
const bool billing = address_type == common::ADDRESS_TYPE_BILLING;
@@ -246,8 +242,7 @@
bool CountryIsFullySupported(const std::string& country_code) {
DCHECK_EQ(2U, country_code.size());
std::vector< ::i18n::addressinput::AddressUiComponent> components =
- ::i18n::addressinput::BuildComponents(
- country_code, g_browser_process->GetApplicationLocale(), NULL);
+ ::i18n::addressinput::BuildComponents(country_code);
for (size_t i = 0; i < components.size(); ++i) {
if (components[i].field == ::i18n::addressinput::DEPENDENT_LOCALITY)
return false;
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/country_combobox_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698