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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 }, | 238 }, |
239 | 239 |
240 /** @private */ | 240 /** @private */ |
241 onClearBrowsingDataTap_: function() { | 241 onClearBrowsingDataTap_: function() { |
242 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); | 242 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); |
243 }, | 243 }, |
244 | 244 |
245 /** @private */ | 245 /** @private */ |
246 onDialogClosed_: function() { | 246 onDialogClosed_: function() { |
247 settings.navigateToPreviousRoute(); | 247 settings.navigateToPreviousRoute(); |
248 this.$.clearBrowsingDataTrigger.focus(); | 248 cr.ui.focusWithoutInk(assert(this.$.clearBrowsingDataTrigger)); |
249 }, | 249 }, |
250 | 250 |
251 /** @private */ | 251 /** @private */ |
252 onSberChange_: function() { | 252 onSberChange_: function() { |
253 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; | 253 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; |
254 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); | 254 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); |
255 }, | 255 }, |
256 | 256 |
257 // <if expr="_google_chrome and not chromeos"> | 257 // <if expr="_google_chrome and not chromeos"> |
258 /** @private */ | 258 /** @private */ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 : this.i18n('siteSettingsBlocked'); | 328 : this.i18n('siteSettingsBlocked'); |
329 }, | 329 }, |
330 | 330 |
331 /** @private */ | 331 /** @private */ |
332 getProtectedContentIdentifiersLabel_: function(value) { | 332 getProtectedContentIdentifiersLabel_: function(value) { |
333 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 333 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
334 : this.i18n('siteSettingsBlocked'); | 334 : this.i18n('siteSettingsBlocked'); |
335 }, | 335 }, |
336 }); | 336 }); |
337 })(); | 337 })(); |
OLD | NEW |