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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_data.js

Issue 2450423002: [MD settings] cookie and site data from dialog to subpage (Closed)
Patch Set: review nit Created 4 years, 1 month 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 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698