Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index 77fd3cadaba22631c2b2c6b4747a090a3ef09c0f..cca8dc16905ffda451bc0c184c18f743abe0989c 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -565,6 +565,14 @@ void ChromeContentRendererClient::RenderFrameCreated( |
render_frame->IsMainFrame()) { |
new SearchBox(render_frame); |
} |
+ |
+#if BUILDFLAG(ENABLE_SPELLCHECK) |
+ // TODO(xiaochengh): Use a different SpellCheckProvider for each RenderFrame. |
+ if (SpellCheckProvider* provider = |
+ SpellCheckProvider::Get(render_frame->GetRenderView())) { |
Lei Zhang
2017/04/05 20:20:44
Looking at RenderFrameImpl::GetRenderView() and ho
Xiaocheng
2017/04/05 20:26:15
I found that for the first RenderFrame in a Render
Lei Zhang
2017/04/05 20:35:35
Oh, we are in RenderFrameCreated(). I don't know e
Xiaocheng
2017/04/05 22:32:07
Yes, each RenderFrame must have its client set. Do
Lei Zhang
2017/04/05 22:38:19
Based on your prior statements, my mental picture
Xiaocheng
2017/04/05 22:43:34
Yep :)
|
+ render_frame->GetWebFrame()->setTextCheckClient(provider); |
+ } |
+#endif |
} |
void ChromeContentRendererClient::RenderViewCreated( |