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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js

Issue 2170713002: Use dom-repeat for addresses, credit cards, and exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Verify Template is a Template Created 4 years, 5 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
Index: chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
index 42344e69b78952d335ef3a24fd5489a97ae1f5c3..9e7018aef08033c3be8016985e868af16a4b9e0d 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.js
@@ -113,18 +113,14 @@ Polymer({
},
/**
- * @param {!Array<!chrome.passwordsPrivate.ExceptionPair>} passwordExceptions
* @param {string} filter
- * @return {!Array<!chrome.passwordsPrivate.ExceptionPair>}
+ * @return {function(!chrome.passwordsPrivate.ExceptionPair): boolean}
* @private
*/
- getFilteredExceptions_: function(passwordExceptions, filter) {
- if (!filter)
- return passwordExceptions;
-
- return passwordExceptions.filter(function(exception) {
+ passwordExceptionFilter_: function(filter) {
+ return function(exception) {
return exception.exceptionUrl.includes(filter);
- });
+ };
},
/**

Powered by Google App Engine
This is Rietveld 408576698