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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1992043002: Add context menus in md-setting for the address and credit card lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@populate-autofill.gitbr
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 arraysize(localized_strings)); 619 arraysize(localized_strings));
620 } 620 }
621 621
622 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { 622 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
623 LocalizedString localized_strings[] = { 623 LocalizedString localized_strings[] = {
624 {"passwordsAndAutofillPageTitle", 624 {"passwordsAndAutofillPageTitle",
625 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, 625 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE},
626 {"autofill", IDS_SETTINGS_AUTOFILL}, 626 {"autofill", IDS_SETTINGS_AUTOFILL},
627 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, 627 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING},
628 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON}, 628 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON},
629 {"addressMenu", IDS_SETTINGS_ADDRESS_MENU},
630 {"editAddress", IDS_SETTINGS_ADDRESS_EDIT},
631 {"removeAddress", IDS_SETTINGS_ADDRESS_REMOVE},
629 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING}, 632 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING},
630 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON}, 633 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON},
634 {"creditCardMenu", IDS_SETTINGS_CREDIT_CARD_MENU},
635 {"editCreditCard", IDS_SETTINGS_CREDIT_CARD_EDIT},
636 {"removeCreditCard", IDS_SETTINGS_CREDIT_CARD_REMOVE},
631 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL}, 637 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL},
632 {"creditCardExpiration", 638 {"creditCardExpiration",
633 IDS_SETTINGS_AUTOFILL_CREDIT_CARD_EXPIRATION_COLUMN_LABEL}, 639 IDS_SETTINGS_AUTOFILL_CREDIT_CARD_EXPIRATION_COLUMN_LABEL},
634 {"autofillDetail", IDS_SETTINGS_AUTOFILL_DETAIL}, 640 {"autofillDetail", IDS_SETTINGS_AUTOFILL_DETAIL},
635 {"passwords", IDS_SETTINGS_PASSWORDS}, 641 {"passwords", IDS_SETTINGS_PASSWORDS},
636 {"passwordsDetail", IDS_SETTINGS_PASSWORDS_DETAIL}, 642 {"passwordsDetail", IDS_SETTINGS_PASSWORDS_DETAIL},
637 {"savedPasswordsHeading", IDS_SETTINGS_PASSWORDS_SAVED_HEADING}, 643 {"savedPasswordsHeading", IDS_SETTINGS_PASSWORDS_SAVED_HEADING},
638 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING}, 644 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING},
639 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION}, 645 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION},
640 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU}, 646 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU},
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 #endif 1017 #endif
1012 AddUsersStrings(html_source); 1018 AddUsersStrings(html_source);
1013 AddWebContentStrings(html_source); 1019 AddWebContentStrings(html_source);
1014 1020
1015 policy_indicator::AddLocalizedStrings(html_source); 1021 policy_indicator::AddLocalizedStrings(html_source);
1016 1022
1017 html_source->SetJsonPath(kLocalizedStringsFile); 1023 html_source->SetJsonPath(kLocalizedStringsFile);
1018 } 1024 }
1019 1025
1020 } // namespace settings 1026 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698