| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 }, | 235 }, |
| 236 | 236 |
| 237 /** @private */ | 237 /** @private */ |
| 238 onClearBrowsingDataTap_: function() { | 238 onClearBrowsingDataTap_: function() { |
| 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 cr.ui.focusWithoutInk(this.$.clearBrowsingDataTrigger); |
| 246 }, | 246 }, |
| 247 | 247 |
| 248 /** @private */ | 248 /** @private */ |
| 249 onSberChange_: function() { | 249 onSberChange_: function() { |
| 250 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; | 250 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; |
| 251 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); | 251 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); |
| 252 }, | 252 }, |
| 253 | 253 |
| 254 // <if expr="_google_chrome and not chromeos"> | 254 // <if expr="_google_chrome and not chromeos"> |
| 255 /** @private */ | 255 /** @private */ |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 : this.i18n('siteSettingsBlocked'); | 325 : this.i18n('siteSettingsBlocked'); |
| 326 }, | 326 }, |
| 327 | 327 |
| 328 /** @private */ | 328 /** @private */ |
| 329 getProtectedContentIdentifiersLabel_: function(value) { | 329 getProtectedContentIdentifiersLabel_: function(value) { |
| 330 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 330 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
| 331 : this.i18n('siteSettingsBlocked'); | 331 : this.i18n('siteSettingsBlocked'); |
| 332 }, | 332 }, |
| 333 }); | 333 }); |
| 334 })(); | 334 })(); |
| OLD | NEW |