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

Unified Diff: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc

Issue 2943113003: Merge-60 Select saved region when loaded async in ship addr editor. (Closed)
Patch Set: Created 3 years, 6 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/views/payments/shipping_address_editor_view_controller_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
index 444ac2e594aaac9aed1b2c4354ec94b782d2a55b..9ccfde4a16d46e809bee98fe5c958f00e66bfb4a 100644
--- a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
@@ -435,6 +435,13 @@ void ShippingAddressEditorViewController::OnComboboxModelChanged(
// It is safe to update synchronously since the change comes from the model
// and not from the UI.
OnDataChanged(/*synchronous=*/true);
+ } else {
+ base::string16 state_value =
+ GetInitialValueForType(autofill::ADDRESS_HOME_STATE);
+ if (!state_value.empty()) {
+ combobox->SelectValue(state_value);
+ OnPerformAction(combobox);
+ }
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/shipping_address_editor_view_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698