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

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

Issue 7121006: Introduced additional spellcheck related histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Uploading the patch for our commit queue Created 9 years, 6 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 | « chrome/browser/spellcheck_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index dee54bfe5d7e5ce43c51ec5c6429060ed1a540da..73143f83e2a35b8c1a321e5d160dd2b2a3e6ed42 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -741,9 +741,15 @@ void RenderViewContextMenu::AppendEditableItems() {
menu_model_.AddItem(IDC_SPELLCHECK_SUGGESTION_0 + static_cast<int>(i),
params_.dictionary_suggestions[i]);
}
- if (!params_.dictionary_suggestions.empty())
+ if (!params_.dictionary_suggestions.empty()) {
menu_model_.AddSeparator();
+ SpellCheckHost* spellcheck_host = profile_->GetSpellCheckHost();
+ DCHECK(spellcheck_host);
+ if (spellcheck_host)
+ spellcheck_host->RecordSuggestionStats(1);
+ }
+
// If word is misspelled, give option for "Add to dictionary"
if (!params_.misspelled_word.empty()) {
if (params_.dictionary_suggestions.empty()) {
« no previous file with comments | « chrome/browser/spellcheck_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698