diff options
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/spelling_menu_observer.cc | 3 | ||||
-rw-r--r-- | chrome/browser/tab_contents/spelling_menu_observer.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.cc b/chrome/browser/tab_contents/spelling_menu_observer.cc index 4bd0489..398c03c 100644 --- a/chrome/browser/tab_contents/spelling_menu_observer.cc +++ b/chrome/browser/tab_contents/spelling_menu_observer.cc @@ -246,6 +246,7 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) { void SpellingMenuObserver::OnTextCheckComplete( int tag, + bool success, const std::vector<SpellCheckResult>& results) { animation_timer_.Stop(); @@ -253,7 +254,7 @@ void SpellingMenuObserver::OnTextCheckComplete( // suggested words. If the replaced text is included in the suggestion list // provided by the local spellchecker, we show a "No suggestions from Google" // message. - succeeded_ = true; + succeeded_ = success; if (results.empty()) { succeeded_ = false; } else { diff --git a/chrome/browser/tab_contents/spelling_menu_observer.h b/chrome/browser/tab_contents/spelling_menu_observer.h index 445312c..a5f2339 100644 --- a/chrome/browser/tab_contents/spelling_menu_observer.h +++ b/chrome/browser/tab_contents/spelling_menu_observer.h @@ -53,6 +53,7 @@ class SpellingMenuObserver : public RenderViewContextMenuObserver { // misspelled word. void OnTextCheckComplete( int tag, + bool success, const std::vector<SpellCheckResult>& results); private: |