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

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

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Review feedback Created 4 years 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({
(...skipping 28 matching lines...) Expand all
39 '#automaticDownloads'); 39 '#automaticDownloads');
40 this.setDefaultValue_(this.ContentSettingsTypes.BACKGROUND_SYNC, 40 this.setDefaultValue_(this.ContentSettingsTypes.BACKGROUND_SYNC,
41 '#backgroundSync'); 41 '#backgroundSync');
42 this.setDefaultValue_(this.ContentSettingsTypes.CAMERA, '#camera'); 42 this.setDefaultValue_(this.ContentSettingsTypes.CAMERA, '#camera');
43 this.setDefaultValue_(this.ContentSettingsTypes.COOKIES, '#cookies'); 43 this.setDefaultValue_(this.ContentSettingsTypes.COOKIES, '#cookies');
44 this.setDefaultValue_(this.ContentSettingsTypes.GEOLOCATION, 44 this.setDefaultValue_(this.ContentSettingsTypes.GEOLOCATION,
45 '#geolocation'); 45 '#geolocation');
46 this.setDefaultValue_(this.ContentSettingsTypes.IMAGES, '#images'); 46 this.setDefaultValue_(this.ContentSettingsTypes.IMAGES, '#images');
47 this.setDefaultValue_(this.ContentSettingsTypes.JAVASCRIPT, 47 this.setDefaultValue_(this.ContentSettingsTypes.JAVASCRIPT,
48 '#javascript'); 48 '#javascript');
49 this.setDefaultValue_(this.ContentSettingsTypes.KEYGEN, '#keygen');
50 this.setDefaultValue_(this.ContentSettingsTypes.MIC, '#mic'); 49 this.setDefaultValue_(this.ContentSettingsTypes.MIC, '#mic');
51 this.setDefaultValue_(this.ContentSettingsTypes.NOTIFICATIONS, 50 this.setDefaultValue_(this.ContentSettingsTypes.NOTIFICATIONS,
52 '#notifications'); 51 '#notifications');
53 this.setDefaultValue_(this.ContentSettingsTypes.PLUGINS, '#plugins'); 52 this.setDefaultValue_(this.ContentSettingsTypes.PLUGINS, '#plugins');
54 this.setDefaultValue_(this.ContentSettingsTypes.POPUPS, '#popups'); 53 this.setDefaultValue_(this.ContentSettingsTypes.POPUPS, '#popups');
55 this.setDefaultValue_(this.ContentSettingsTypes.PROTOCOL_HANDLERS, 54 this.setDefaultValue_(this.ContentSettingsTypes.PROTOCOL_HANDLERS,
56 '#handlers'); 55 '#handlers');
57 this.setDefaultValue_(this.ContentSettingsTypes.UNSANDBOXED_PLUGINS, 56 this.setDefaultValue_(this.ContentSettingsTypes.UNSANDBOXED_PLUGINS,
58 '#unsandboxedPlugins'); 57 '#unsandboxedPlugins');
59 }, 58 },
60 59
61 setDefaultValue_: function(category, id) { 60 setDefaultValue_: function(category, id) {
62 this.browserProxy.getDefaultValueForContentType( 61 this.browserProxy.getDefaultValueForContentType(
63 category).then(function(setting) { 62 category).then(function(setting) {
64 var description = this.computeCategoryDesc(category, setting, false); 63 var description = this.computeCategoryDesc(category, setting, false);
65 this.$$(id).innerText = description; 64 this.$$(id).innerText = description;
66 }.bind(this)); 65 }.bind(this));
67 }, 66 },
68 67
69 /** 68 /**
70 * Navigate to the route specified in the event dataset. 69 * Navigate to the route specified in the event dataset.
71 * @param {!Event} event The tap event. 70 * @param {!Event} event The tap event.
72 * @private 71 * @private
73 */ 72 */
74 onTapNavigate_: function(event) { 73 onTapNavigate_: function(event) {
75 var dataSet = /** @type {{route: string}} */(event.currentTarget.dataset); 74 var dataSet = /** @type {{route: string}} */(event.currentTarget.dataset);
76 settings.navigateTo(settings.Route[dataSet.route]); 75 settings.navigateTo(settings.Route[dataSet.route]);
77 }, 76 },
78 }); 77 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698