Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 86e75848aacd888e4bce09577aa450e86be6be31..4748a1eddee612af104d3339471f0728698b251f 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -76,7 +76,6 @@ |
#include "chrome/browser/search_engines/search_provider_install_state_message_filter.h" |
#include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
#include "chrome/browser/speech/tts_message_filter.h" |
-#include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
#include "chrome/browser/ssl/ssl_add_certificate.h" |
#include "chrome/browser/ssl/ssl_blocking_page.h" |
#include "chrome/browser/ssl/ssl_tab_helper.h" |
@@ -228,6 +227,10 @@ |
#include "chrome/browser/chrome_browser_main_extra_parts_x11.h" |
#endif |
+#if defined(ENABLE_SPELLCHECK) |
+#include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
+#endif |
+ |
using WebKit::WebWindowFeatures; |
using base::FileDescriptor; |
using content::AccessTokenStore; |
@@ -887,7 +890,9 @@ void ChromeContentBrowserClient::RenderProcessHostCreated( |
#endif |
host->GetChannel()->AddFilter( |
new SearchProviderInstallStateMessageFilter(id, profile)); |
+#if defined(ENABLE_SPELLCHECK) |
host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
+#endif |
#if defined(OS_MACOSX) |
host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); |
#endif |