Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2321)

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 2544453003: MD Settings: simplify spelling service toggle and make it respect policy (Closed)
Patch Set: stray </div> Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 72dc80d4cd66d7b520f311527cbf2d76094a9f68..269aa1818d4a1f4e3c859c7c0bea1be65aa25aea 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -44,19 +44,9 @@ 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);
@@ -165,20 +155,6 @@ Polymer({
this.safeBrowsingExtendedReportingEnabled_ = enabled;
},
-<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>
-
/**
* The sub-page title for the site or content settings.
* @return {string}

Powered by Google App Engine
This is Rietveld 408576698