Index: chrome/browser/tab_contents/spelling_menu_observer.cc |
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.cc b/chrome/browser/tab_contents/spelling_menu_observer.cc |
index 4481acadfef7b2a696453e4309147294a9975406..a7022b1aefb51f2be45fdefa01a54b8ef978b501 100644 |
--- a/chrome/browser/tab_contents/spelling_menu_observer.cc |
+++ b/chrome/browser/tab_contents/spelling_menu_observer.cc |
@@ -216,7 +216,7 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) { |
if (command_id >= IDC_SPELLCHECK_SUGGESTION_0 && |
command_id <= IDC_SPELLCHECK_SUGGESTION_LAST) { |
- proxy_->GetRenderViewHost()->Replace( |
+ proxy_->GetRenderViewHost()->ReplaceMisspelling( |
suggestions_[command_id - IDC_SPELLCHECK_SUGGESTION_0]); |
// GetSpellCheckHost() can return null when the suggested word is |
// provided by Web SpellCheck API. |
@@ -234,7 +234,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()->Replace(result_); |
+ proxy_->GetRenderViewHost()->ReplaceMisspelling(result_); |
misspelled_word_ = result_; |
} |