| Index: chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
|
| diff --git a/chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc b/chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
|
| index 5a750b25dd9b0a1f58d65dcdcdf76fa69997c0a9..706d41cc2bda5a3ccc9605497268aa33aa30bd73 100644
|
| --- a/chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
|
| +++ b/chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
|
| @@ -168,6 +168,8 @@ bool SpellCheckerSubMenuObserver::IsCommandIdEnabled(int command_id) {
|
| void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) {
|
| DCHECK(IsCommandIdSupported(command_id));
|
|
|
| + RenderViewHost* rvh = proxy_->GetRenderViewHost();
|
| +
|
| // Check to see if one of the spell check language ids have been clicked.
|
| if (command_id >= IDC_SPELLCHECK_LANGUAGES_FIRST &&
|
| command_id < IDC_SPELLCHECK_LANGUAGES_LAST) {
|
| @@ -179,11 +181,11 @@ void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) {
|
| profile->GetPrefs(),
|
| NULL);
|
| dictionary_language.SetValue(languages_[language]);
|
| + rvh->RequestTextChecking();
|
| }
|
| return;
|
| }
|
|
|
| - RenderViewHost* rvh = proxy_->GetRenderViewHost();
|
| switch (command_id) {
|
| case IDC_CHECK_SPELLING_OF_THIS_FIELD:
|
| rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->routing_id()));
|
|
|