OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" | 5 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" |
6 | 6 |
7 #include "base/md5.h" | 7 #include "base/md5.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 | 9 |
10 SpellCheckHostMetrics::SpellCheckHostMetrics() | 10 SpellCheckHostMetrics::SpellCheckHostMetrics() |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 UMA_HISTOGRAM_COUNTS("SpellCheck.UniqueWords", checked_word_hashes_.size()); | 133 UMA_HISTOGRAM_COUNTS("SpellCheck.UniqueWords", checked_word_hashes_.size()); |
134 last_unique_word_count_ = checked_word_hashes_.size(); | 134 last_unique_word_count_ = checked_word_hashes_.size(); |
135 } | 135 } |
136 | 136 |
137 if (suggestion_show_count_ != last_suggestion_show_count_) { | 137 if (suggestion_show_count_ != last_suggestion_show_count_) { |
138 DCHECK(suggestion_show_count_ > last_suggestion_show_count_); | 138 DCHECK(suggestion_show_count_ > last_suggestion_show_count_); |
139 UMA_HISTOGRAM_COUNTS("SpellCheck.ShownSuggestions", suggestion_show_count_); | 139 UMA_HISTOGRAM_COUNTS("SpellCheck.ShownSuggestions", suggestion_show_count_); |
140 last_suggestion_show_count_ = suggestion_show_count_; | 140 last_suggestion_show_count_ = suggestion_show_count_; |
141 } | 141 } |
142 } | 142 } |
| 143 |
| 144 void SpellCheckHostMetrics::RecordSpellingServiceStats(bool enabled) { |
| 145 UMA_HISTOGRAM_BOOLEAN("SpellCheck.SpellingService.Enabled", enabled); |
| 146 } |
OLD | NEW |