| Index: chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| index ebcbff77a4db7b7664a2ef9a02f6c0bdc91a6657..f02f8e1cdfd382491540cab09aaf5f4e1774dd64 100644
|
| --- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| @@ -41,9 +41,19 @@ Polymer({
|
| showClearBrowsingDataDialog_: Boolean,
|
| },
|
|
|
| +<if expr="_google_chrome">
|
| + observers: [
|
| + 'updateSpellingService_(prefs.spellcheck.use_spelling_service.value)',
|
| + ],
|
| +</if>
|
| +
|
| ready: function() {
|
| this.ContentSettingsTypes = settings.ContentSettingsTypes;
|
|
|
| +<if expr="_google_chrome">
|
| + this.updateSpellingService_();
|
| +</if>
|
| +
|
| <if expr="_google_chrome and not chromeos">
|
| var boundSetMetricsReporting = this.setMetricsReporting_.bind(this);
|
| this.addWebUIListener('metrics-reporting-change', boundSetMetricsReporting);
|
| @@ -101,4 +111,18 @@ Polymer({
|
| this.metricsReporting_ = metricsReporting;
|
| },
|
| </if>
|
| +
|
| +<if expr="_google_chrome">
|
| + /** @private */
|
| + updateSpellingService_: function() {
|
| + this.$.spellingServiceToggleButton.checked =
|
| + this.get('prefs.spellcheck.use_spelling_service.value');
|
| + },
|
| +
|
| + /** @private */
|
| + onUseSpellingServiceTap_: function() {
|
| + this.set('prefs.spellcheck.use_spelling_service.value',
|
| + this.$.spellingServiceToggleButton.checked);
|
| + },
|
| +</if>
|
| });
|
|
|