OLD | NEW |
---|---|
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
239 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); | 239 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); |
240 }, | 240 }, |
241 | 241 |
242 /** @private */ | 242 /** @private */ |
243 onDialogClosed_: function() { | 243 onDialogClosed_: function() { |
244 settings.navigateToPreviousRoute(); | 244 settings.navigateToPreviousRoute(); |
245 this.$.clearBrowsingDataTrigger.focus(); | 245 this.$.clearBrowsingDataTrigger.focus(); |
246 }, | 246 }, |
247 | 247 |
248 /** @private */ | 248 /** @private */ |
249 onHelpTap_: function() { | |
dpapad
2017/04/18 21:29:27
Dead code?
scottchen
2017/04/18 22:41:51
Yeah, privacy_page.html doesn't use onHelpTap_ any
| |
250 window.open( | |
251 'https://support.google.com/chrome/?p=settings_manage_exceptions'); | |
252 }, | |
253 | |
254 /** @private */ | |
255 onSberChange_: function() { | 249 onSberChange_: function() { |
256 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; | 250 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; |
257 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); | 251 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); |
258 }, | 252 }, |
259 | 253 |
260 // <if expr="_google_chrome and not chromeos"> | 254 // <if expr="_google_chrome and not chromeos"> |
261 /** @private */ | 255 /** @private */ |
262 onMetricsReportingChange_: function() { | 256 onMetricsReportingChange_: function() { |
263 var enabled = this.$.metricsReportingControl.checked; | 257 var enabled = this.$.metricsReportingControl.checked; |
264 this.browserProxy_.setMetricsReportingEnabled(enabled); | 258 this.browserProxy_.setMetricsReportingEnabled(enabled); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 * The sub-page title for the site or content settings. | 312 * The sub-page title for the site or content settings. |
319 * @return {string} | 313 * @return {string} |
320 * @private | 314 * @private |
321 */ | 315 */ |
322 siteSettingsPageTitle_: function() { | 316 siteSettingsPageTitle_: function() { |
323 return loadTimeData.getBoolean('enableSiteSettings') ? | 317 return loadTimeData.getBoolean('enableSiteSettings') ? |
324 loadTimeData.getString('siteSettings') : | 318 loadTimeData.getString('siteSettings') : |
325 loadTimeData.getString('contentSettings'); | 319 loadTimeData.getString('contentSettings'); |
326 }, | 320 }, |
327 | 321 |
328 // <if expr="chromeos"> | |
329 /** @private */ | |
330 onAdobeFlashStorageClicked_: function() { | |
331 window.open('https://www.macromedia.com/support/' + | |
332 'documentation/en/flashplayer/help/settings_manager07.html'); | |
333 }, | |
334 // </if> | |
335 | |
336 /** @private */ | 322 /** @private */ |
337 getProtectedContentLabel_: function(value) { | 323 getProtectedContentLabel_: function(value) { |
338 return value ? this.i18n('siteSettingsProtectedContentEnable') | 324 return value ? this.i18n('siteSettingsProtectedContentEnable') |
339 : this.i18n('siteSettingsBlocked'); | 325 : this.i18n('siteSettingsBlocked'); |
340 }, | 326 }, |
341 | 327 |
342 /** @private */ | 328 /** @private */ |
343 getProtectedContentIdentifiersLabel_: function(value) { | 329 getProtectedContentIdentifiersLabel_: function(value) { |
344 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 330 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
345 : this.i18n('siteSettingsBlocked'); | 331 : this.i18n('siteSettingsBlocked'); |
346 }, | 332 }, |
347 }); | 333 }); |
348 })(); | 334 })(); |
OLD | NEW |