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

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: 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.h ('k') | chrome/browser/spellcheck_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..316e94b950c2b07f1fa8e6b6837d471ccf8d8ae8 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_show_count_;
// Number of misspelled words replaced by a user.
int replaced_word_count_;
};
« no previous file with comments | « chrome/browser/spellcheck_host.h ('k') | chrome/browser/spellcheck_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698