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

Unified Diff: chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc

Issue 11476005: [Spellcheck] Make sure context menu and actual spellcheck state are in sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 8 years 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
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 7185ff0f60a4fed7eac699705cbf82aeba166ff9..a4be51f391222390ccd9e6d91a1226192fc6cc5b 100644
--- a/chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
+++ b/chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
@@ -159,14 +159,11 @@ void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) {
return;
}
- content::RenderViewHost* rvh = proxy_->GetRenderViewHost();
switch (command_id) {
case IDC_CHECK_SPELLING_WHILE_TYPING:
profile->GetPrefs()->SetBoolean(
prefs::kEnableSpellCheck,
!profile->GetPrefs()->GetBoolean(prefs::kEnableSpellCheck));
- if (rvh)
- rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->GetRoutingID()));
- break;
+ break;
}
}
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_service.cc ('k') | chrome/browser/tab_contents/spellchecker_submenu_observer_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698