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

Side by Side Diff: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Rebased Created 3 years, 12 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
« no previous file with comments | « chrome/test/data/webui/settings/site_list_tests.js ('k') | chromecast/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * An example empty pref. 6 * An example empty pref.
7 * @type {SiteSettingsPref} 7 * @type {SiteSettingsPref}
8 */ 8 */
9 var prefsEmpty = { 9 var prefsEmpty = {
10 defaults: { 10 defaults: {
11 auto_downloads: '', 11 auto_downloads: '',
12 background_sync: '', 12 background_sync: '',
13 camera: '', 13 camera: '',
14 cookies: '', 14 cookies: '',
15 geolocation: '', 15 geolocation: '',
16 javascript: '', 16 javascript: '',
17 keygen: '',
18 mic: '', 17 mic: '',
19 notifications: '', 18 notifications: '',
20 plugins: '', 19 plugins: '',
21 popups: '', 20 popups: '',
22 unsandboxed_plugins: '', 21 unsandboxed_plugins: '',
23 }, 22 },
24 exceptions: { 23 exceptions: {
25 auto_downloads: [], 24 auto_downloads: [],
26 background_sync: [], 25 background_sync: [],
27 camera: [], 26 camera: [],
28 cookies: [], 27 cookies: [],
29 geolocation: [], 28 geolocation: [],
30 javascript: [], 29 javascript: [],
31 keygen: [],
32 mic: [], 30 mic: [],
33 notifications: [], 31 notifications: [],
34 plugins: [], 32 plugins: [],
35 popups: [], 33 popups: [],
36 unsandboxed_plugins: [], 34 unsandboxed_plugins: [],
37 }, 35 },
38 }; 36 };
39 37
40 /** 38 /**
41 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods 39 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } else if (contentType == settings.ContentSettingsTypes.CAMERA) { 136 } else if (contentType == settings.ContentSettingsTypes.CAMERA) {
139 pref = this.prefs_.defaults.camera; 137 pref = this.prefs_.defaults.camera;
140 } else if (contentType == settings.ContentSettingsTypes.COOKIES) { 138 } else if (contentType == settings.ContentSettingsTypes.COOKIES) {
141 pref = this.prefs_.defaults.cookies; 139 pref = this.prefs_.defaults.cookies;
142 } else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) { 140 } else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) {
143 pref = this.prefs_.defaults.geolocation; 141 pref = this.prefs_.defaults.geolocation;
144 } else if (contentType == settings.ContentSettingsTypes.IMAGES) { 142 } else if (contentType == settings.ContentSettingsTypes.IMAGES) {
145 pref = this.prefs_.defaults.images; 143 pref = this.prefs_.defaults.images;
146 } else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) { 144 } else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) {
147 pref = this.prefs_.defaults.javascript; 145 pref = this.prefs_.defaults.javascript;
148 } else if (contentType == settings.ContentSettingsTypes.KEYGEN) {
149 pref = this.prefs_.defaults.keygen;
150 } else if (contentType == settings.ContentSettingsTypes.MIC) { 146 } else if (contentType == settings.ContentSettingsTypes.MIC) {
151 pref = this.prefs_.defaults.mic; 147 pref = this.prefs_.defaults.mic;
152 } else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS) { 148 } else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS) {
153 pref = this.prefs_.defaults.notifications; 149 pref = this.prefs_.defaults.notifications;
154 } else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS) { 150 } else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS) {
155 pref = this.prefs_.defaults.pdf_documents; 151 pref = this.prefs_.defaults.pdf_documents;
156 } else if (contentType == settings.ContentSettingsTypes.POPUPS) { 152 } else if (contentType == settings.ContentSettingsTypes.POPUPS) {
157 pref = this.prefs_.defaults.popups; 153 pref = this.prefs_.defaults.popups;
158 } else if (contentType == settings.ContentSettingsTypes.PLUGINS) { 154 } else if (contentType == settings.ContentSettingsTypes.PLUGINS) {
159 pref = this.prefs_.defaults.plugins; 155 pref = this.prefs_.defaults.plugins;
(...skipping 20 matching lines...) Expand all
180 else if (contentType == settings.ContentSettingsTypes.CAMERA) 176 else if (contentType == settings.ContentSettingsTypes.CAMERA)
181 pref = this.prefs_.exceptions.camera; 177 pref = this.prefs_.exceptions.camera;
182 else if (contentType == settings.ContentSettingsTypes.COOKIES) 178 else if (contentType == settings.ContentSettingsTypes.COOKIES)
183 pref = this.prefs_.exceptions.cookies; 179 pref = this.prefs_.exceptions.cookies;
184 else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) 180 else if (contentType == settings.ContentSettingsTypes.GEOLOCATION)
185 pref = this.prefs_.exceptions.geolocation; 181 pref = this.prefs_.exceptions.geolocation;
186 else if (contentType == settings.ContentSettingsTypes.IMAGES) 182 else if (contentType == settings.ContentSettingsTypes.IMAGES)
187 pref = this.prefs_.exceptions.images; 183 pref = this.prefs_.exceptions.images;
188 else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) 184 else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT)
189 pref = this.prefs_.exceptions.javascript; 185 pref = this.prefs_.exceptions.javascript;
190 else if (contentType == settings.ContentSettingsTypes.KEYGEN)
191 pref = this.prefs_.exceptions.keygen;
192 else if (contentType == settings.ContentSettingsTypes.MIC) 186 else if (contentType == settings.ContentSettingsTypes.MIC)
193 pref = this.prefs_.exceptions.mic; 187 pref = this.prefs_.exceptions.mic;
194 else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS) 188 else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS)
195 pref = this.prefs_.exceptions.notifications; 189 pref = this.prefs_.exceptions.notifications;
196 else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS) 190 else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS)
197 pref = this.prefs_.exceptions.pdf_documents; 191 pref = this.prefs_.exceptions.pdf_documents;
198 else if (contentType == settings.ContentSettingsTypes.PLUGINS) 192 else if (contentType == settings.ContentSettingsTypes.PLUGINS)
199 pref = this.prefs_.exceptions.plugins; 193 pref = this.prefs_.exceptions.plugins;
200 else if (contentType == settings.ContentSettingsTypes.POPUPS) 194 else if (contentType == settings.ContentSettingsTypes.POPUPS)
201 pref = this.prefs_.exceptions.popups; 195 pref = this.prefs_.exceptions.popups;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 /** @override */ 250 /** @override */
257 setProtocolDefault: function() { 251 setProtocolDefault: function() {
258 this.methodCalled('setProtocolDefault', arguments); 252 this.methodCalled('setProtocolDefault', arguments);
259 }, 253 },
260 254
261 /** @override */ 255 /** @override */
262 removeProtocolHandler: function() { 256 removeProtocolHandler: function() {
263 this.methodCalled('removeProtocolHandler', arguments); 257 this.methodCalled('removeProtocolHandler', arguments);
264 } 258 }
265 }; 259 };
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/site_list_tests.js ('k') | chromecast/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698