Commit c0cc6509 authored by Jinho Bang's avatar Jinho Bang Committed by Commit Bot

PaymentRequest: Clean-up unnecessary code

This patch is initiated from the review comment[1].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1144587/13/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc@89

Bug: none
Change-Id: I2be17d7e83dd6afad1b2c3ca059460ba1bc6fe06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2099685Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Jinho Bang <jinho.bang@samsung.com>
Cr-Commit-Position: refs/heads/master@{#749612}
parent a972026c
...@@ -80,13 +80,6 @@ base::string16 ContactInfoEditorViewController::GetInitialValueForType( ...@@ -80,13 +80,6 @@ base::string16 ContactInfoEditorViewController::GetInitialValueForType(
if (!profile_to_edit_) if (!profile_to_edit_)
return base::string16(); return base::string16();
return GetValueForType(*profile_to_edit_, type); return GetValueForType(*profile_to_edit_, type);
if (type == autofill::PHONE_HOME_WHOLE_NUMBER) {
return autofill::i18n::GetFormattedPhoneNumberForDisplay(
*profile_to_edit_, state()->GetApplicationLocale());
}
return profile_to_edit_->GetInfo(type, state()->GetApplicationLocale());
} }
bool ContactInfoEditorViewController::ValidateModelAndSave() { bool ContactInfoEditorViewController::ValidateModelAndSave() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment