Commit a7a753a6 authored by Manas Verma's avatar Manas Verma Committed by Commit Bot

[Autofill] Manage Cards button now links to Payments subpage instead of Autofill subpage.

This change fixes the Manage Cards button, in the Manage Cards prompt, to link to chrome://settings/payments instead of chrome://settings/autofill


bug: 855186
Change-Id: I3d274367deae5d04c7a3029db8e5eec3aa852cc1
Reviewed-on: https://chromium-review.googlesource.com/1163743
Commit-Queue: Manas Verma <manasverma@google.com>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581029}
parent 9f625057
...@@ -57,18 +57,28 @@ namespace { ...@@ -57,18 +57,28 @@ namespace {
// This list should be kept in sync with chrome/common/webui_url_constants.h. // This list should be kept in sync with chrome/common/webui_url_constants.h.
// Only include useful sub-pages, confirmation alerts are not useful. // Only include useful sub-pages, confirmation alerts are not useful.
const char* const kChromeSettingsSubPages[] = { const char* const kChromeSettingsSubPages[] = {
chrome::kAutofillSubPage, chrome::kClearBrowserDataSubPage, chrome::kAutofillSubPage,
chrome::kContentSettingsSubPage, chrome::kLanguageOptionsSubPage, chrome::kClearBrowserDataSubPage,
chrome::kPasswordManagerSubPage, chrome::kResetProfileSettingsSubPage, chrome::kContentSettingsSubPage,
chrome::kSearchEnginesSubPage, chrome::kSyncSetupSubPage, chrome::kLanguageOptionsSubPage,
chrome::kPasswordManagerSubPage,
chrome::kPaymentsSubPage,
chrome::kResetProfileSettingsSubPage,
chrome::kSearchEnginesSubPage,
chrome::kSyncSetupSubPage,
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
chrome::kAccessibilitySubPage, chrome::kBluetoothSubPage, chrome::kAccessibilitySubPage,
chrome::kDateTimeSubPage, chrome::kDisplaySubPage, chrome::kBluetoothSubPage,
chrome::kInternetSubPage, chrome::kPowerSubPage, chrome::kDateTimeSubPage,
chrome::kDisplaySubPage,
chrome::kInternetSubPage,
chrome::kPowerSubPage,
chrome::kStylusSubPage, chrome::kStylusSubPage,
#else #else
chrome::kCreateProfileSubPage, chrome::kImportDataSubPage, chrome::kCreateProfileSubPage,
chrome::kManageProfileSubPage, chrome::kPeopleSubPage, chrome::kImportDataSubPage,
chrome::kManageProfileSubPage,
chrome::kPeopleSubPage,
#endif #endif
}; };
#endif // !defined(OS_ANDROID) #endif // !defined(OS_ANDROID)
......
...@@ -364,7 +364,7 @@ void SaveCardBubbleControllerImpl::OnManageCardsClicked() { ...@@ -364,7 +364,7 @@ void SaveCardBubbleControllerImpl::OnManageCardsClicked() {
// TODO(crbug/855186): Implement metrics for sign-in promo. // TODO(crbug/855186): Implement metrics for sign-in promo.
chrome::ShowSettingsSubPage( chrome::ShowSettingsSubPage(
chrome::FindBrowserWithWebContents(web_contents()), chrome::FindBrowserWithWebContents(web_contents()),
chrome::kAutofillSubPage); chrome::kPaymentsSubPage);
} }
void SaveCardBubbleControllerImpl::OnBubbleClosed() { void SaveCardBubbleControllerImpl::OnBubbleClosed() {
......
...@@ -274,6 +274,7 @@ const char kHandlerSettingsSubPage[] = "handlers"; ...@@ -274,6 +274,7 @@ const char kHandlerSettingsSubPage[] = "handlers";
const char kImportDataSubPage[] = "importData"; const char kImportDataSubPage[] = "importData";
const char kLanguageOptionsSubPage[] = "languages"; const char kLanguageOptionsSubPage[] = "languages";
const char kPasswordManagerSubPage[] = "passwords"; const char kPasswordManagerSubPage[] = "passwords";
const char kPaymentsSubPage[] = "payments";
const char kPrintingSettingsSubPage[] = "printing"; const char kPrintingSettingsSubPage[] = "printing";
const char kResetProfileSettingsSubPage[] = "resetProfileSettings"; const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
const char kSearchEnginesSubPage[] = "searchEngines"; const char kSearchEnginesSubPage[] = "searchEngines";
......
...@@ -266,6 +266,7 @@ extern const char kImportDataSubPage[]; ...@@ -266,6 +266,7 @@ extern const char kImportDataSubPage[];
extern const char kLanguageOptionsSubPage[]; extern const char kLanguageOptionsSubPage[];
extern const char kManageProfileSubPage[]; extern const char kManageProfileSubPage[];
extern const char kPasswordManagerSubPage[]; extern const char kPasswordManagerSubPage[];
extern const char kPaymentsSubPage[];
extern const char kPeopleSubPage[]; extern const char kPeopleSubPage[];
extern const char kPrintingSettingsSubPage[]; extern const char kPrintingSettingsSubPage[];
extern const char kResetProfileSettingsSubPage[]; extern const char kResetProfileSettingsSubPage[];
......
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