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

Side by Side Diff: chrome/browser/resources/settings/site_settings_page/site_settings_page.js

Issue 2409003002: [MD settings] flag to enable site settings All sites and Site details pages (Closed)
Patch Set: merge with master; fix typo Created 4 years, 2 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-settings-page' is the settings page containing privacy and 7 * 'settings-site-settings-page' is the settings page containing privacy and
8 * security site settings. 8 * security site settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
11 is: 'settings-site-settings-page', 11 is: 'settings-site-settings-page',
12 12
13 behaviors: [SiteSettingsBehavior], 13 behaviors: [SiteSettingsBehavior],
14 14
15 properties: { 15 properties: {
16 /** @private */
17 enableSiteSettings_: {
18 type: Boolean,
19 value: function() {
20 return loadTimeData.getBoolean('enableSiteSettings');
21 },
22 },
23
16 /** 24 /**
17 * The category selected by the user. 25 * The category selected by the user.
18 */ 26 */
19 categorySelected: { 27 categorySelected: {
20 type: String, 28 type: String,
21 notify: true, 29 notify: true,
22 }, 30 },
23 }, 31 },
24 32
25 ready: function() { 33 ready: function() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 * @param {!Event} event The tap event. 72 * @param {!Event} event The tap event.
65 */ 73 */
66 onTapCategory: function(event) { 74 onTapCategory: function(event) {
67 var category = event.currentTarget.getAttribute('category'); 75 var category = event.currentTarget.getAttribute('category');
68 if (category == settings.ALL_SITES) 76 if (category == settings.ALL_SITES)
69 settings.navigateTo(settings.Route.SITE_SETTINGS_ALL); 77 settings.navigateTo(settings.Route.SITE_SETTINGS_ALL);
70 else 78 else
71 settings.navigateTo(this.computeCategoryRoute(category)); 79 settings.navigateTo(this.computeCategoryRoute(category));
72 }, 80 },
73 }); 81 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698