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

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

Issue 2298283002: Site Settings Desktop: Support adding exceptions for incognito mode. (Closed)
Patch Set: Fix test Created 4 years, 3 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') | no next file » | 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: {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 pref = this.prefs_.exceptions.unsandboxed_plugins; 165 pref = this.prefs_.exceptions.unsandboxed_plugins;
166 else 166 else
167 console.log('getExceptionList received unknown category: ' + contentType); 167 console.log('getExceptionList received unknown category: ' + contentType);
168 168
169 assert(pref != undefined, 'Pref is missing for ' + contentType); 169 assert(pref != undefined, 'Pref is missing for ' + contentType);
170 return Promise.resolve(pref); 170 return Promise.resolve(pref);
171 }, 171 },
172 172
173 /** @override */ 173 /** @override */
174 resetCategoryPermissionForOrigin: function( 174 resetCategoryPermissionForOrigin: function(
175 primaryPattern, secondaryPattern, contentType) { 175 primaryPattern, secondaryPattern, contentType, incognito) {
176 this.methodCalled('resetCategoryPermissionForOrigin', 176 this.methodCalled('resetCategoryPermissionForOrigin',
177 [primaryPattern, secondaryPattern, contentType]); 177 [primaryPattern, secondaryPattern, contentType, incognito]);
178 return Promise.resolve(); 178 return Promise.resolve();
179 }, 179 },
180 180
181 /** @override */ 181 /** @override */
182 setCategoryPermissionForOrigin: function( 182 setCategoryPermissionForOrigin: function(
183 primaryPattern, secondaryPattern, contentType, value) { 183 primaryPattern, secondaryPattern, contentType, value, incognito) {
184 this.methodCalled('setCategoryPermissionForOrigin', 184 this.methodCalled('setCategoryPermissionForOrigin',
185 [primaryPattern, secondaryPattern, contentType, value]); 185 [primaryPattern, secondaryPattern, contentType, value]);
186 return Promise.resolve(); 186 return Promise.resolve();
187 }, 187 },
188 }; 188 };
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/site_list_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698