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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2083903002: [MD Settings] Allow editing autofill items from Google Payments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix margin and color Created 4 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 | « chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index 20cb48850bb27f57d869aeb42d56d2552851e6e7..337c48a6929ebdca110b78cfd99e4fdc3c866ec9 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -20,6 +20,7 @@
#include "chrome/grit/settings_chromium_strings.h"
#include "chrome/grit/settings_google_chrome_strings.h"
#include "chrome/grit/settings_strings.h"
+#include "components/autofill/core/browser/payments/payments_service_url.h"
#include "components/autofill/core/common/autofill_constants.h"
#include "components/google/core/browser/google_util.h"
#include "components/password_manager/core/browser/password_manager_constants.h"
@@ -672,6 +673,7 @@ void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
{"passwordsAndAutofillPageTitle",
IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE},
{"autofill", IDS_SETTINGS_AUTOFILL},
+ {"googlePayments", IDS_SETTINGS_GOOGLE_PAYMENTS},
{"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING},
{"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON},
{"editAddress", IDS_SETTINGS_ADDRESS_EDIT},
@@ -701,12 +703,20 @@ void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
{"editPasswordUsernameLabel", IDS_SETTINGS_PASSWORDS_USERNAME},
{"editPasswordPasswordLabel", IDS_SETTINGS_PASSWORDS_PASSWORD},
};
+
html_source->AddString(
"managePasswordsLabel",
l10n_util::GetStringFUTF16(
IDS_SETTINGS_PASSWORDS_MANAGE_PASSWORDS,
base::ASCIIToUTF16(
password_manager::kPasswordManagerAccountDashboardURL)));
+ html_source->AddString(
+ "manageAddressesUrl",
+ autofill::payments::GetManageAddressesUrl(0).spec());
+ html_source->AddString(
+ "manageCreditCardsUrl",
+ autofill::payments::GetManageInstrumentsUrl(0).spec());
+
AddLocalizedStringsBulk(html_source, localized_strings,
arraysize(localized_strings));
}
« no previous file with comments | « chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698