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

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

Issue 2280113002: [SpellCheck] Add separator if we add "Add to dictionary" option (Closed)
Patch Set: Only add separator if there are suggestions above it Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88738e6f67987863c6da00a8896b3417906e5f44..0cbdbc707befd72eb671b984b7b66537ced76370 100644
--- a/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
+++ b/chrome/browser/renderer_context_menu/spelling_menu_observer.cc
@@ -159,6 +159,7 @@ void SpellingMenuObserver::InitMenu(const content::ContextMenuParams& params) {
SpellcheckServiceFactory::GetForContext(browser_context);
if (spellcheck_service && spellcheck_service->GetMetrics())
spellcheck_service->GetMetrics()->RecordSuggestionStats(1);
+ proxy_->AddSeparator();
}
// If word is misspelled, give option for "Add to dictionary" and, if
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698