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

Unified Diff: chrome/browser/ui/webui/options/language_options_handler_common.cc

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
« no previous file with comments | « chrome/browser/resources/options/language_options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/language_options_handler_common.cc
diff --git a/chrome/browser/ui/webui/options/language_options_handler_common.cc b/chrome/browser/ui/webui/options/language_options_handler_common.cc
index 8d13f6133d569a65f30c9eee2c369130ca0a188f..769359ded2e5833b03dd87553c840d524123e876 100644
--- a/chrome/browser/ui/webui/options/language_options_handler_common.cc
+++ b/chrome/browser/ui/webui/options/language_options_handler_common.cc
@@ -64,6 +64,10 @@ void LanguageOptionsHandlerCommon::GetLocalizedValues(
l10n_util::GetStringFUTF16(
IDS_OPTIONS_SETTINGS_LANGUAGES_THIS_LANGUAGE_IS_CURRENTLY_IN_USE,
product_name));
+ localized_strings->SetString("restart_required",
+ l10n_util::GetStringUTF16(IDS_OPTIONS_RELAUNCH_REQUIRED));
+ // OS X uses the OS native spellchecker so no need for these strings.
+#if !defined(OS_MACOSX)
localized_strings->SetString("use_this_for_spell_checking",
l10n_util::GetStringUTF16(
IDS_OPTIONS_SETTINGS_USE_THIS_FOR_SPELL_CHECKING));
@@ -73,12 +77,11 @@ void LanguageOptionsHandlerCommon::GetLocalizedValues(
localized_strings->SetString("is_used_for_spell_checking",
l10n_util::GetStringUTF16(
IDS_OPTIONS_SETTINGS_IS_USED_FOR_SPELL_CHECKING));
- localized_strings->SetString("restart_required",
- l10n_util::GetStringUTF16(IDS_OPTIONS_RELAUNCH_REQUIRED));
localized_strings->SetString("enable_spell_check",
l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SPELLCHECK));
localized_strings->SetString("enable_auto_spell_correction",
l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_AUTO_SPELL_CORRECTION));
+#endif // !OS_MACOSX
localized_strings->SetString("add_language_title",
l10n_util::GetStringUTF16(IDS_OPTIONS_LANGUAGES_ADD_TITLE));
localized_strings->SetString("add_language_select_label",
« no previous file with comments | « chrome/browser/resources/options/language_options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698