Index: third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js |
index d9ea2970247dca6cb03eb0e6d5a04e6f1957811d..1fc2505c14d856e77a39158c2a1751130ba48eae 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js |
@@ -74,6 +74,14 @@ Resources.CookieItemsView = class extends Resources.StorageItemsView { |
} |
/** |
+ * @param {!SDK.Cookie} cookie |
+ * @param {function()} callback |
+ */ |
+ _deleteCookie(cookie, callback) { |
+ this._model.deleteCookie(cookie, callback); |
+ } |
+ |
+ /** |
* @param {!Array.<!SDK.Cookie>} allCookies |
*/ |
_updateWithCookies(allCookies) { |
@@ -83,7 +91,8 @@ Resources.CookieItemsView = class extends Resources.StorageItemsView { |
const parsedURL = this._cookieDomain.asParsedURL(); |
const domain = parsedURL ? parsedURL.host : ''; |
this._cookiesTable = new CookieTable.CookiesTable( |
- this._saveCookie.bind(this), this.refreshItems.bind(this), () => this.setCanDeleteSelected(true), domain); |
+ this._saveCookie.bind(this), this.refreshItems.bind(this), () => this.setCanDeleteSelected(true), |
+ this._deleteCookie.bind(this), domain); |
} |
var shownCookies = this.filter(allCookies, cookie => `${cookie.name()} ${cookie.value()} ${cookie.domain()}`); |