| Index: chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| diff --git a/chrome/browser/renderer_context_menu/spelling_menu_observer.cc b/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| index c95aee987a658324118c1170c8fd99e2ccf1b9c8..16ee4e76a2fd9f938291c9e4e7e3ad80c6312657 100644
|
| --- a/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| +++ b/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
|
| @@ -251,7 +251,7 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
|
| if (command_id >= IDC_SPELLCHECK_SUGGESTION_0 &&
|
| command_id <= IDC_SPELLCHECK_SUGGESTION_LAST) {
|
| int suggestion_index = command_id - IDC_SPELLCHECK_SUGGESTION_0;
|
| - proxy_->GetRenderViewHost()->ReplaceMisspelling(
|
| + proxy_->GetWebContents()->ReplaceMisspelling(
|
| suggestions_[suggestion_index]);
|
| // GetSpellCheckHost() can return null when the suggested word is provided
|
| // by Web SpellCheck API.
|
| @@ -273,7 +273,7 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
|
| // the misspelled word with the suggestion and add it to our custom-word
|
| // dictionary so this word is not marked as misspelled any longer.
|
| if (command_id == IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION) {
|
| - proxy_->GetRenderViewHost()->ReplaceMisspelling(result_);
|
| + proxy_->GetWebContents()->ReplaceMisspelling(result_);
|
| misspelled_word_ = result_;
|
| }
|
|
|
|
|