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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_host_metrics.cc

Issue 12335019: [Spellcheck] Add UMA stat for SpellingService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698