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

Unified Diff: content/browser/download/download_stats.cc

Issue 8203005: Implement chrome.experimental.downloads.onChanged (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: " Created 8 years, 11 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: content/browser/download/download_stats.cc
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
index 74398e6059c2c98c8830c4c3e9ee75fca11cd2c6..e33ec718d4bfd1ac434da8583abc0c663cbbb024 100644
--- a/content/browser/download/download_stats.cc
+++ b/content/browser/download/download_stats.cc
@@ -317,4 +317,8 @@ void RecordOpensOutstanding(int size) {
64/*num_buckets*/);
}
+void RecordOnChanged(int percent) {
+ UMA_HISTOGRAM_PERCENTAGE("Download.OnChanged", percent);
+}
+
} // namespace download_stats

Powered by Google App Engine
This is Rietveld 408576698