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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.cc

Issue 21168003: Add histogram for safebrowsing download ping payload size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 5 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 | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/download_protection_service.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
index 6756bbf027a68a8830a9be91f6b2eb37923fde00..473dc5348dfdb212a1c46065a7802e2c29237a93 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -668,6 +668,8 @@ class DownloadProtectionService::CheckClientDownloadRequest
fetcher_->SetRequestContext(service_->request_context_getter_.get());
fetcher_->SetUploadData("application/octet-stream",
client_download_request_data_);
+ UMA_HISTOGRAM_COUNTS("SBClientDownload.DownloadRequestPayloadSize",
+ client_download_request_data_.size());
Ilya Sherman 2013/07/30 01:27:39 Are you sure that a histogram mapping [1, 1,000,00
mattm 2013/07/30 01:53:23 This is actually the size of the ping we send to t
fetcher_->Start();
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698