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

Unified Diff: chrome/browser/spellcheck_host_impl.h

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/spellcheck_host_impl.h
diff --git a/chrome/browser/spellcheck_host_impl.h b/chrome/browser/spellcheck_host_impl.h
index dea73bcaaa0531c43048af23abd0303c8f7cdeb9..03e5800624a1a4280df4473b7fcb1f2c7d267b5f 100644
--- a/chrome/browser/spellcheck_host_impl.h
+++ b/chrome/browser/spellcheck_host_impl.h
@@ -87,6 +87,10 @@ class SpellCheckHostImpl : public SpellCheckHost,
// Write a custom dictionary addition to disk.
void WriteWordToCustomDictionary(const std::string& word);
+ // Collects a histogram for dictionary corruption rate
+ // to be uploaded via UMA
+ void RecordDictionaryCorruptionStats(bool corrupted);
+
// Collects status of spellchecking enabling state, which is
// to be uploaded via UMA
virtual void RecordCheckedWordStats(bool misspell);
@@ -95,6 +99,10 @@ class SpellCheckHostImpl : public SpellCheckHost,
// to be uploaded via UMA
virtual void RecordReplacedWordStats(int delta);
+ // Collects a histogram for context menu showing as a spell correction
+ // attempt to be uploaded via UMA
+ virtual void RecordSuggestionStats(int delta);
+
// URLFetcher::Delegate implementation. Called when we finish downloading the
// spellcheck dictionary; saves the dictionary to |data_|.
virtual void OnURLFetchComplete(const URLFetcher* source,
@@ -153,6 +161,8 @@ class SpellCheckHostImpl : public SpellCheckHost,
int misspelled_word_count_;
// Number of checked words.
int spellchecked_word_count_;
+ // Number of suggestion list showings.
+ int suggestion_count_;
brettw 2011/06/12 13:02:59 How about suggestion_show_count_? Just suggestion_
// Number of misspelled words replaced by a user.
int replaced_word_count_;
};

Powered by Google App Engine
This is Rietveld 408576698