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

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

Issue 2210933004: Settings Router Refactor: Kill settings-router. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 * 'settings-site-list' shows a list of Allowed and Blocked sites for a given 7 * 'settings-site-list' shows a list of Allowed and Blocked sites for a given
8 * category. 8 * category.
9 */ 9 */
10 Polymer({ 10 Polymer({
11 11
12 is: 'settings-site-list', 12 is: 'settings-site-list',
13 13
14 behaviors: [SiteSettingsBehavior, WebUIListenerBehavior], 14 behaviors: [SiteSettingsBehavior, WebUIListenerBehavior],
15 15
16 properties: { 16 properties: {
17 /** 17 /**
18 * The current active route.
19 */
20 currentRoute: {
21 type: Object,
22 notify: true,
23 },
24
25 /**
26 * The site that was selected by the user in the dropdown list. 18 * The site that was selected by the user in the dropdown list.
27 * @type {SiteException} 19 * @type {SiteException}
28 */ 20 */
29 selectedSite: { 21 selectedSite: {
30 type: Object, 22 type: Object,
31 notify: true, 23 notify: true,
32 }, 24 },
33 25
34 /** 26 /**
35 * Array of sites to display in the widget. 27 * Array of sites to display in the widget.
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // is redundant to also list all the sites that are blocked. 473 // is redundant to also list all the sites that are blocked.
482 if (this.isAllowList_()) 474 if (this.isAllowList_())
483 return true; 475 return true;
484 476
485 if (this.isSessionOnlyList_()) 477 if (this.isSessionOnlyList_())
486 return siteList.length > 0; 478 return siteList.length > 0;
487 479
488 return toggleState; 480 return toggleState;
489 }, 481 },
490 }); 482 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698