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

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

Issue 2682293002: Add desktop UI for the subresource filter content setting. (Closed)
Patch Set: . Created 3 years, 9 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-privacy-page' is the settings page containing privacy and 7 * 'settings-privacy-page' is the settings page containing privacy and
8 * security settings. 8 * security settings.
9 */ 9 */
10 (function() { 10 (function() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 /** 80 /**
81 * Used for HTML bindings. This is defined as a property rather than within 81 * Used for HTML bindings. This is defined as a property rather than within
82 * the ready callback, because the value needs to be available before 82 * the ready callback, because the value needs to be available before
83 * local DOM initialization - otherwise, the toggle has unexpected behavior. 83 * local DOM initialization - otherwise, the toggle has unexpected behavior.
84 * @private 84 * @private
85 */ 85 */
86 networkPredictionEnum_: { 86 networkPredictionEnum_: {
87 type: Object, 87 type: Object,
88 value: NetworkPredictionOptions, 88 value: NetworkPredictionOptions,
89 }, 89 },
90
91 /** @private */
92 isSubresourceFilterVisible_: {
93 type: Boolean,
94 value: function() {
95 return loadTimeData.getBoolean('isSubresourceFilterVisible');
96 }
97 },
90 }, 98 },
91 99
92 ready: function() { 100 ready: function() {
93 this.ContentSettingsTypes = settings.ContentSettingsTypes; 101 this.ContentSettingsTypes = settings.ContentSettingsTypes;
94 102
95 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); 103 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance();
96 104
97 // <if expr="_google_chrome and not chromeos"> 105 // <if expr="_google_chrome and not chromeos">
98 var setMetricsReportingPref = this.setMetricsReportingPref_.bind(this); 106 var setMetricsReportingPref = this.setMetricsReportingPref_.bind(this);
99 this.addWebUIListener('metrics-reporting-change', setMetricsReportingPref); 107 this.addWebUIListener('metrics-reporting-change', setMetricsReportingPref);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 : this.i18n('siteSettingsBlocked'); 249 : this.i18n('siteSettingsBlocked');
242 }, 250 },
243 251
244 /** @private */ 252 /** @private */
245 getProtectedContentIdentifiersLabel_: function(value) { 253 getProtectedContentIdentifiersLabel_: function(value) {
246 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') 254 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers')
247 : this.i18n('siteSettingsBlocked'); 255 : this.i18n('siteSettingsBlocked');
248 }, 256 },
249 }); 257 });
250 })(); 258 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698