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

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

Issue 74523002: [Downloads] Update origin info after each response. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better descriptions. Created 7 years 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 | « content/browser/download/download_stats.h ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_stats.cc
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
index df3a059f5cc80bc4ac1586bb802e78c7e2ace2d8..b6e3ba84869a8d1496da7e60570c07da9ca0e611 100644
--- a/content/browser/download/download_stats.cc
+++ b/content/browser/download/download_stats.cc
@@ -611,4 +611,14 @@ void RecordSavePackageEvent(SavePackageEvent event) {
SAVE_PACKAGE_LAST_ENTRY);
}
+void RecordOriginStateOnResumption(bool is_partial,
+ int state) {
+ if (is_partial)
+ UMA_HISTOGRAM_ENUMERATION("Download.OriginStateOnPartialResumption", state,
+ ORIGIN_STATE_ON_RESUMPTION_MAX);
+ else
+ UMA_HISTOGRAM_ENUMERATION("Download.OriginStateOnFullResumption", state,
+ ORIGIN_STATE_ON_RESUMPTION_MAX);
+}
+
} // namespace content
« no previous file with comments | « content/browser/download/download_stats.h ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698