summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 01:38:48 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 01:38:48 +0000
commit6523e63acec55644ad4cb879548edca85a7c0422 (patch)
treed8903aeee025043e8749bc2a49ab4c65efe0d8e4
parent85a3078932047ca5663b59c0d70953bbbce6b9e9 (diff)
downloadchromium_src-6523e63acec55644ad4cb879548edca85a7c0422.zip
chromium_src-6523e63acec55644ad4cb879548edca85a7c0422.tar.gz
chromium_src-6523e63acec55644ad4cb879548edca85a7c0422.tar.bz2
Spellchecker: make it work with memory purge button.
BUG=30463 TEST=see bug Review URL: http://codereview.chromium.org/661234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40342 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index 793abd4..6d69671 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -966,9 +966,16 @@ void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) {
}
void BrowserRenderProcessHost::OnSpellCheckerRequestDictionary() {
- // We may have gotten multiple requests from different renderers. We don't
- // want to initialize multiple times in this case, so we set |force| to false.
- profile()->ReinitializeSpellCheckHost(false);
+ if (profile()->GetSpellCheckHost()) {
+ // The spellchecker initialization already started and finished; just send
+ // it to the renderer.
+ InitSpellChecker();
+ } else {
+ // We may have gotten multiple requests from different renderers. We don't
+ // want to initialize multiple times in this case, so we set |force| to
+ // false.
+ profile()->ReinitializeSpellCheckHost(false);
+ }
}
void BrowserRenderProcessHost::AddSpellCheckWord(const std::string& word) {