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

Unified Diff: chrome/browser/spellchecker/spellcheck_service.cc

Issue 11476005: [Spellcheck] Make sure context menu and actual spellcheck state are in sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 8 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/spellchecker/spellcheck_service.cc
diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc
index 0271d427e14252b70ea0e1d7283dd3d8e9b8837c..1ad9ed95b4919f716d8364afe7066345cfc8f79e 100644
--- a/chrome/browser/spellchecker/spellcheck_service.cc
+++ b/chrome/browser/spellchecker/spellcheck_service.cc
@@ -25,7 +25,7 @@
using content::BrowserThread;
using chrome::spellcheck_common::WordList;
-// TODO(rlp): I do not like globals, but keeping thsese for now during
+// TODO(rlp): I do not like globals, but keeping these for now during
// transition.
// An event used by browser tests to receive status events from this class and
// its derived classes.
@@ -187,6 +187,8 @@ void SpellcheckService::InitForRenderer(content::RenderProcessHost* process) {
custom_dictionary_->GetWords(),
hunspell_dictionary_->GetLanguage(),
prefs->GetBoolean(prefs::kEnableAutoSpellCorrect)));
+ process->Send(new SpellCheckMsg_EnableSpellCheck(
+ prefs->GetBoolean(prefs::kEnableSpellCheck)));
}
SpellCheckHostMetrics* SpellcheckService::GetMetrics() const {

Powered by Google App Engine
This is Rietveld 408576698