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

Unified Diff: components/metrics/reporting_service.h

Issue 2774503002: Track network stack error codes from UMA and UKM (Closed)
Patch Set: Diffbase Created 3 years, 9 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/metrics/reporting_service.h
diff --git a/components/metrics/reporting_service.h b/components/metrics/reporting_service.h
index 03bf7a90c71787176adc92c889febab23c0a31fb..cf685e28c0d7bf5c934351f83d2fce4e598f0c74 100644
--- a/components/metrics/reporting_service.h
+++ b/components/metrics/reporting_service.h
@@ -90,6 +90,7 @@ class ReportingService {
virtual void LogActualUploadInterval(base::TimeDelta interval) {}
virtual void LogCellularConstraint(bool upload_canceled) {}
virtual void LogResponseCode(int response_code) {}
+ virtual void LogErrorCode(int error_code) {}
virtual void LogSuccess(size_t log_size) {}
virtual void LogLargeRejection(size_t log_size) {}
@@ -101,7 +102,7 @@ class ReportingService {
void SendStagedLog();
// Called after transmission completes (either successfully or with failure).
- void OnLogUploadComplete(int response_code);
+ void OnLogUploadComplete(int response_code, int error_code);
// Used to interact with the embedder. Weak pointer; must outlive |this|
// instance.

Powered by Google App Engine
This is Rietveld 408576698