Index: chrome/test/base/chrome_render_view_test.cc |
diff --git a/chrome/test/base/chrome_render_view_test.cc b/chrome/test/base/chrome_render_view_test.cc |
index c776009cc733a0e3dc2e3090a65cd02da8779f4c..ade0dd06e530a0eb5154cfe79332fb597fb6ad9b 100644 |
--- a/chrome/test/base/chrome_render_view_test.cc |
+++ b/chrome/test/base/chrome_render_view_test.cc |
@@ -58,7 +58,9 @@ void ChromeRenderViewTest::SetUp() { |
content::SetRendererClientForTesting(&chrome_content_renderer_client_); |
extension_dispatcher_ = new extensions::Dispatcher(); |
chrome_content_renderer_client_.SetExtensionDispatcher(extension_dispatcher_); |
+#if defined(ENABLE_SPELLCHECK) |
chrome_content_renderer_client_.SetSpellcheck(new SpellCheck()); |
+#endif |
content::RenderViewTest::SetUp(); |