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

Unified Diff: chrome/browser/tab_contents/spelling_menu_observer.cc

Issue 8890022: Remove Hunspell on OS X - step 2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rename unit tests 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/tab_contents/spelling_menu_observer.cc
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.cc b/chrome/browser/tab_contents/spelling_menu_observer.cc
index a152b80d981ff983a1ef021d3bfae1641104d00d..07779210db372bac22d038b7a00f9a907ba0a320 100644
--- a/chrome/browser/tab_contents/spelling_menu_observer.cc
+++ b/chrome/browser/tab_contents/spelling_menu_observer.cc
@@ -17,7 +17,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/spellchecker/spellcheck_host.h"
#include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
-#include "chrome/browser/spellchecker/spellchecker_platform_engine.h"
+#include "chrome/browser/spellchecker/spellchecker_mac.h"
#include "chrome/browser/tab_contents/render_view_context_menu.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
@@ -219,7 +219,9 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
Profile* profile = proxy_->GetProfile();
if (profile && profile->GetSpellCheckHost())
profile->GetSpellCheckHost()->AddWord(UTF16ToUTF8(misspelled_word_));
- SpellCheckerPlatform::AddWord(misspelled_word_);
+#if defined(OS_MACOSX)
+ SpellCheckerMac::AddWord(misspelled_word_);
+#endif
}
}

Powered by Google App Engine
This is Rietveld 408576698