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

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

Issue 8370033: Add a 'hidden' parameter to RenderViewContextMenuProxy::UpdateMenuItem(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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/spelling_menu_observer.cc
===================================================================
--- chrome/browser/tab_contents/spelling_menu_observer.cc (revision 106885)
+++ chrome/browser/tab_contents/spelling_menu_observer.cc (working copy)
@@ -173,7 +173,7 @@
// well-spelled words. For either case, we do not need to replace the input
// text.)
proxy_->UpdateMenuItem(IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION, succeeded_,
- result_);
+ false, result_);
}
bool SpellingMenuObserver::ParseResponse(int response,
@@ -271,6 +271,6 @@
// Update the menu item with the text. We disable this item to prevent users
// from selecting it.
- proxy_->UpdateMenuItem(IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION, false,
+ proxy_->UpdateMenuItem(IDC_CONTENT_CONTEXT_SPELLING_SUGGESTION, false, false,
loading_message);
}

Powered by Google App Engine
This is Rietveld 408576698