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

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

Issue 8879064: Reverting this revert, since it does not seem to have caused the breakage. (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
===================================================================
--- chrome/browser/resources/options/language_options.js (revision 114404)
+++ chrome/browser/resources/options/language_options.js (working copy)
@@ -93,8 +93,11 @@
$('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 @@
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