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

Unified Diff: net/url_request/url_request_status.h

Issue 19599012: Add detailed histograms for DownloadProtectionService URLFetcher errors. (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
Index: net/url_request/url_request_status.h
diff --git a/net/url_request/url_request_status.h b/net/url_request/url_request_status.h
index 521a3d45f5fa94b043e9c4a12ac7a5bce99386f2..ce9e33d085fcf87a3e5488465ae1487c75c41381 100644
--- a/net/url_request/url_request_status.h
+++ b/net/url_request/url_request_status.h
@@ -27,6 +27,10 @@ class URLRequestStatus {
// The request failed for some reason. |error_| may have more information.
FAILED,
+
+ // So that Status enums can be used in histograms, always add new values
+ // before this one, and do not change existing values.
+ STATUS_MAX
mattm 2013/07/24 02:19:00 any objections to this?
mmenke 2013/07/24 14:26:50 Nope, I'm fine with it... But I'm not sure we nee
};
URLRequestStatus() : status_(SUCCESS), error_(0) {}

Powered by Google App Engine
This is Rietveld 408576698