| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'site-data' handles showing the local storage summary list for all sites. | 7 * 'site-data' handles showing the local storage summary list for all sites. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 this.browserProxy.removeCookie(items[i].id); | 118 this.browserProxy.removeCookie(items[i].id); |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 }, | 121 }, |
| 122 | 122 |
| 123 /** | 123 /** |
| 124 * @param {!{model: !{item: CookieDataSummaryItem}}} event | 124 * @param {!{model: !{item: CookieDataSummaryItem}}} event |
| 125 * @private | 125 * @private |
| 126 */ | 126 */ |
| 127 onSiteTap_: function(event) { | 127 onSiteTap_: function(event) { |
| 128 var dialog = document.createElement('site-data-details-dialog'); | 128 settings.navigateTo(settings.Route.SITE_SETTINGS_DATA_DETAILS, |
| 129 dialog.category = this.category; | 129 new URLSearchParams('site=' + event.model.item.site)); |
| 130 this.shadowRoot.appendChild(dialog); | |
| 131 | |
| 132 var node = this.rootCookieNode.fetchNodeById(event.model.item.id, false); | |
| 133 dialog.open(node); | |
| 134 | |
| 135 dialog.addEventListener('close', function(event) { | |
| 136 dialog.remove(); | |
| 137 }); | |
| 138 }, | 130 }, |
| 139 }); | 131 }); |
| OLD | NEW |