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

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: Moved code from render_view_host.cc to to rneder_view_context_menu.cc 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
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 71aa90960e0266aabc5e26d8d426dbc4270735df..7291f59640749f14be01c1d25348dd49c9466658 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()) {
« chrome/browser/spellcheck_host_impl.h ('K') | « chrome/browser/spellcheck_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698