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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 7064046: When spell-check is disabled, notify renderers of the change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 86339)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -1245,6 +1245,15 @@
} else if (notify) {
// The spellchecker has been disabled.
SpellCheckHostInitialized();
+ for (RenderProcessHost::iterator
+ i(RenderProcessHost::AllHostsIterator());
+ !i.IsAtEnd(); i.Advance()) {
+ RenderProcessHost* process = i.GetCurrentValue();
+ process->Send(new SpellCheckMsg_Init(IPC::InvalidPlatformFileForTransit(),
+ std::vector<std::string>(),
+ std::string(),
+ false));
+ }
}
}
@@ -1252,7 +1261,7 @@
spellcheck_host_ready_ = spellcheck_host_ &&
(spellcheck_host_->GetDictionaryFile() !=
base::kInvalidPlatformFileValue ||
- spellcheck_host_->IsUsingPlatformChecker());;
+ spellcheck_host_->IsUsingPlatformChecker());
}
ExtensionPrefValueMap* ProfileImpl::GetExtensionPrefValueMap() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698