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

Unified Diff: components/ukm/ukm_reporting_service.cc

Issue 2774503002: Track network stack error codes from UMA and UKM (Closed)
Patch Set: Rebase on Created 3 years, 8 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: components/ukm/ukm_reporting_service.cc
diff --git a/components/ukm/ukm_reporting_service.cc b/components/ukm/ukm_reporting_service.cc
index 3e6d48a0f7bcddf5fa8c782a7a6348fe323d506e..aba99ad1cea6bb5e10c4f5aaeb0a4836ae07bd03 100644
--- a/components/ukm/ukm_reporting_service.cc
+++ b/components/ukm/ukm_reporting_service.cc
@@ -89,8 +89,10 @@ void UkmReportingService::LogCellularConstraint(bool upload_canceled) {
upload_canceled);
}
-void UkmReportingService::LogResponseCode(int response_code) {
- UMA_HISTOGRAM_SPARSE_SLOWLY("UKM.Upload.ResponseCode", response_code);
+void UkmReportingService::LogResponseOrErrorCode(int response_code,
+ int error_code) {
+ UMA_HISTOGRAM_SPARSE_SLOWLY("UKM.LogUpload.ResponseOrErrorCode",
+ response_code >= 0 ? response_code : error_code);
}
void UkmReportingService::LogSuccess(size_t log_size) {
« no previous file with comments | « components/ukm/ukm_reporting_service.h ('k') | ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698