| 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 Polymer({ | 10 Polymer({ |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 this.$.spellingServiceToggleButton.checked = | 118 this.$.spellingServiceToggleButton.checked = |
| 119 this.get('prefs.spellcheck.use_spelling_service.value'); | 119 this.get('prefs.spellcheck.use_spelling_service.value'); |
| 120 }, | 120 }, |
| 121 | 121 |
| 122 /** @private */ | 122 /** @private */ |
| 123 onUseSpellingServiceTap_: function() { | 123 onUseSpellingServiceTap_: function() { |
| 124 this.set('prefs.spellcheck.use_spelling_service.value', | 124 this.set('prefs.spellcheck.use_spelling_service.value', |
| 125 this.$.spellingServiceToggleButton.checked); | 125 this.$.spellingServiceToggleButton.checked); |
| 126 }, | 126 }, |
| 127 </if> | 127 </if> |
| 128 |
| 129 /** |
| 130 * The sub-page title for the site or content settings. |
| 131 * @return {string} |
| 132 * @private |
| 133 */ |
| 134 siteSettingsPageTitle_: function() { |
| 135 return loadTimeData.getBoolean('enableSiteSettings') ? |
| 136 loadTimeData.getString('siteSettings') : |
| 137 loadTimeData.getString('contentSettings'); |
| 138 }, |
| 128 }); | 139 }); |
| OLD | NEW |