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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 11 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
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index e774e72e33920ed676725c36e9c0e3a4675b5889..459907ccbd3b9f30e0d4d88848dfcf56b1b6a22c 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1978,11 +1978,9 @@ views::View* AutofillDialogViews::InitInputsView(DialogSection section) {
SelectComboboxValueOrSetToDefault(combobox, input.initial_value);
view_to_add.reset(combobox);
} else {
- DecoratedTextfield* field = new DecoratedTextfield(
- input.initial_value,
- l10n_util::GetStringUTF16(input.placeholder_text_rid),
- this);
-
+ DecoratedTextfield* field = new DecoratedTextfield(input.initial_value,
+ input.placeholder_text,
+ this);
textfields->insert(std::make_pair(input.type, field));
view_to_add.reset(field);
}
@@ -2025,8 +2023,10 @@ views::View* AutofillDialogViews::InitInputsView(DialogSection section) {
views::GridLayout::FILL, views::GridLayout::FILL,
1, 0);
- if (input.length == DetailInput::LONG)
+ if (input.length == DetailInput::LONG ||
+ input.length == DetailInput::SHORT_EOL) {
++column_set_id;
+ }
}
SetIconsForSection(section);
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698