Commit 74e86f3c authored by sebsg's avatar sebsg Committed by Commit Bot

[AF] Add learn more button in Payment Methods settings page.

Bug: 883923
Change-Id: I3e35456bda1347ae060fe2748b0126dfa312f27e
Reviewed-on: https://chromium-review.googlesource.com/1224659Reviewed-by: default avatarMichael Giuffrida <michaelpg@chromium.org>
Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#591215}
parent 772f0388
......@@ -59,7 +59,8 @@
<template is="dom-if" route-path="/payments">
<settings-subpage
associated-control="[[$$('#paymentManagerButton')]]"
page-title="$i18n{creditCards}">
page-title="$i18n{creditCards}"
learn-more-url="$i18n{paymentMethodsLearnMoreURL}">
<settings-payments-section id="paymentSection" prefs="{{prefs}}">
</settings-payments-section>
</settings-subpage>
......
......@@ -401,7 +401,8 @@
<template is="dom-if" route-path="/payments">
<settings-subpage
associated-control="[[$$('#paymentManagerButton')]]"
page-title="$i18n{creditCards}">
page-title="$i18n{creditCards}"
learn-more-url="$i18n{paymentMethodsLearnMoreURL}">
<settings-payments-section id="paymentsSection" prefs="{{prefs}}">
</settings-payments-section>
</settings-subpage>
......
......@@ -1497,6 +1497,8 @@ void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source,
autofill::payments::GetManageAddressesUrl(0).spec());
html_source->AddString("manageCreditCardsUrl",
autofill::payments::GetManageInstrumentsUrl(0).spec());
html_source->AddString("paymentMethodsLearnMoreURL",
chrome::kPaymentMethodsLearnMoreURL);
html_source->AddBoolean(
"migrationEnabled",
autofill::features::GetLocalCardMigrationExperimentalFlag() ==
......
......@@ -176,6 +176,13 @@ const char kPasswordManagerLearnMoreURL[] =
"https://support.google.com/chrome/?p=settings_password";
#endif
const char kPaymentMethodsLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_autofill";
#else
"https://support.google.com/chrome/?p=settings_autofill";
#endif
const char kPrivacyLearnMoreURL[] =
#if defined(OS_CHROMEOS)
"https://support.google.com/chromebook/?p=settings_privacy";
......
......@@ -153,6 +153,8 @@ extern const char kPageInfoHelpCenterURL[];
extern const char kPasswordManagerLearnMoreURL[];
extern const char kPaymentMethodsLearnMoreURL[];
// "Learn more" URL for the Privacy section under Options.
extern const char kPrivacyLearnMoreURL[];
......
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