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

Unified Diff: chrome/browser/resources/options/language_options.js

Issue 8917002: Don't display spelling options in "Language Settings" pref panel on OS X (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/options/language_options.js
diff --git a/chrome/browser/resources/options/language_options.js b/chrome/browser/resources/options/language_options.js
index 7503212b3a5ad28970a40410c05252e001deb86b..e181f8a30823ea7c14bd69dd60e48b48ee6ff801 100644
--- a/chrome/browser/resources/options/language_options.js
+++ b/chrome/browser/resources/options/language_options.js
@@ -93,8 +93,11 @@ cr.define('options', function() {
$('auto-spell-correction-option').hidden = false;
// Handle spell check enable/disable.
- Preferences.getInstance().addEventListener(this.enableSpellCheckPref,
- this.updateEnableSpellCheck_.bind(this));
+ if (!cr.isMac) {
+ Preferences.getInstance().addEventListener(
+ this.enableSpellCheckPref,
+ this.updateEnableSpellCheck_.bind(this));
+ }
}
// Listen to user clicks on the "Change touch keyboard settings..."
@@ -219,7 +222,8 @@ cr.define('options', function() {
this.updateSelectedLanguageName_(languageCode);
if (cr.isWindows || cr.isChromeOS)
this.updateUiLanguageButton_(languageCode);
- this.updateSpellCheckLanguageButton_(languageCode);
+ if (!cr.isMac)
+ this.updateSpellCheckLanguageButton_(languageCode);
if (cr.isChromeOS)
this.updateInputMethodList_(languageCode);
this.updateLanguageListInAddLanguageOverlay_();

Powered by Google App Engine
This is Rietveld 408576698