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

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

Issue 1907813002: Make the URLs in the password exceptions list clickable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-implicit-update.gitbr
Patch Set: feedback Created 4 years, 8 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 ea16cf493dcfb6fe11c63bad0a988c49e7d61e94..447315621d0c1da87d7dedcaa431f44b0af3110e 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
@@ -11,6 +11,9 @@
/** @typedef {!{model: !{item: !chrome.passwordsPrivate.PasswordUiEntry}}} */
var PasswordUiEntryEvent;
+/** @typedef {!{model: !{item: !chrome.passwordsPrivate.ExceptionPair}}} */
+var ExceptionPairEntryEvent;
+
(function() {
'use strict';
@@ -37,7 +40,7 @@ Polymer({
/**
* An array of sites to display.
- * @type {!Array<!string>}
+ * @type {!Array<!chrome.passwordsPrivate.ExceptionPair>}
*/
passwordExceptions: {
type: Array,
@@ -91,11 +94,11 @@ Polymer({
/**
* Fires an event that should delete the password exception.
- * @param {!{model: !{item: !string}}} e The polymer event.
+ * @param {!ExceptionPairEntryEvent} e The polymer event.
* @private
*/
onRemoveExceptionButtonTap_: function(e) {
- this.fire('remove-password-exception', e.model.item);
+ this.fire('remove-password-exception', e.model.item.exceptionUrl);
},
/**

Powered by Google App Engine
This is Rietveld 408576698