Skip to content

Commit

Permalink
Add explicit call to default parameter during profile creation.
Browse files Browse the repository at this point in the history
Given that the empty constructor will soon be removed for the AutofillProfile class, the CL adds the default parameter explicitly
during creation.

Bug: 1464568
Change-Id: I0ab190d01915d893359c6c535a8ac8e3f9c1bd25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5068135
Commit-Queue: Norge Vizcay <vizcay@google.com>
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Auto-Submit: Norge Vizcay <vizcay@google.com>
Cr-Commit-Position: refs/heads/main@{#1230470}
  • Loading branch information
norgevz authored and Chromium LUCI CQ committed Nov 29, 2023
1 parent b54c7ae commit b0a4d5d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ class ShippingAddressEditorViewController : public EditorViewController {

// A temporary profile to keep unsaved data in between relayout (e.g., when
// the country is changed and fields set may be different).
autofill::AutofillProfile temporary_profile_;
autofill::AutofillProfile temporary_profile_{
autofill::i18n_model_definition::kLegacyHierarchyCountryCode};

// List of fields, reset everytime the current country changes.
std::vector<EditorField> editor_fields_;
Expand Down

0 comments on commit b0a4d5d

Please sign in to comment.