Commit 436b5556 authored by Moe Ahmadi's avatar Moe Ahmadi Committed by Commit Bot

[AF] Use same short title in both local & upstream credit card save infobar

Bug: 852427
Change-Id: I6a397b8fa5e3d3013e69d7e55e50679dc27c875e
Reviewed-on: https://chromium-review.googlesource.com/1099178Reviewed-by: default avatarJared Saul <jsaul@google.com>
Reviewed-by: default avatarMathieu Perreault <mathp@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567271}
parent bc0c7de9
...@@ -131,8 +131,7 @@ SaveCardBubbleView* SaveCardBubbleControllerImpl::save_card_bubble_view() ...@@ -131,8 +131,7 @@ SaveCardBubbleView* SaveCardBubbleControllerImpl::save_card_bubble_view()
base::string16 SaveCardBubbleControllerImpl::GetWindowTitle() const { base::string16 SaveCardBubbleControllerImpl::GetWindowTitle() const {
return l10n_util::GetStringUTF16( return l10n_util::GetStringUTF16(
is_uploading_ ? IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD_V3 IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD_V3);
: IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_LOCAL);
} }
base::string16 SaveCardBubbleControllerImpl::GetExplanatoryMessage() const { base::string16 SaveCardBubbleControllerImpl::GetExplanatoryMessage() const {
......
...@@ -101,10 +101,9 @@ int AutofillSaveCardInfoBarDelegateMobile::GetIconId() const { ...@@ -101,10 +101,9 @@ int AutofillSaveCardInfoBarDelegateMobile::GetIconId() const {
base::string16 AutofillSaveCardInfoBarDelegateMobile::GetMessageText() const { base::string16 AutofillSaveCardInfoBarDelegateMobile::GetMessageText() const {
return l10n_util::GetStringUTF16( return l10n_util::GetStringUTF16(
IsGooglePayBrandingEnabled() IsGooglePayBrandingEnabled() || !upload_
? IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD_V3 ? IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD_V3
: upload_ ? IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD : IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD);
: IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_LOCAL);
} }
infobars::InfoBarDelegate::InfoBarIdentifier infobars::InfoBarDelegate::InfoBarIdentifier
......
...@@ -198,16 +198,6 @@ ...@@ -198,16 +198,6 @@
<message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_CONFIRM" desc="Text to show for the Autofill upload save credit card prompt accept button when more information (e.g., CVC) was needed in order to save the card and was entered."> <message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_CONFIRM" desc="Text to show for the Autofill upload save credit card prompt accept button when more information (e.g., CVC) was needed in order to save the card and was entered.">
Confirm Confirm
</message> </message>
<if expr="_google_chrome">
<message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_LOCAL" desc="Title text for the Autofill save card prompt when the card is to be saved locally. The prompt can be either a bubble or an infobar.">
Do you want Chrome to save this card?
</message>
</if>
<if expr="not _google_chrome">
<message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_LOCAL" desc="Title text for the Autofill save card prompt when the card is to be saved locally. The prompt can be either a bubble or an infobar.">
Do you want Chromium to save this card?
</message>
</if>
<if expr="is_linux and not chromeos"> <if expr="is_linux and not chromeos">
<then> <then>
<message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD" desc="Title text for the Autofill save card prompt when the card is to be saved by uploading it to Google Payments and also saved locally. The prompt can be either a bubble or an infobar."> <message name="IDS_AUTOFILL_SAVE_CARD_PROMPT_TITLE_TO_CLOUD" desc="Title text for the Autofill save card prompt when the card is to be saved by uploading it to Google Payments and also saved locally. The prompt can be either a bubble or an infobar.">
......
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