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

Unified Diff: chrome/common/net/net_error_info.cc

Issue 207553008: Surface button for loading stale cache copy on net error page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r264192. Created 6 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: chrome/common/net/net_error_info.cc
diff --git a/chrome/common/net/net_error_info.cc b/chrome/common/net/net_error_info.cc
index 91a1ca94bc973d5c38d0d2d2ac25cce35ce3ff6f..1a94bb7fd3ffffbe9990512dad9f60dec9f587dc 100644
--- a/chrome/common/net/net_error_info.cc
+++ b/chrome/common/net/net_error_info.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/logging.h"
+#include "base/metrics/histogram.h"
#include "chrome/common/net/net_error_info.h"
namespace chrome_common_net {
@@ -36,4 +37,9 @@ bool DnsProbeStatusIsFinished(DnsProbeStatus status) {
status < DNS_PROBE_MAX;
}
+void RecordEvent(NetworkErrorPageEvent event) {
+ UMA_HISTOGRAM_ENUMERATION("Net.ErrorPageCounts", event,
+ NET_ERROR_PAGE_EVENT_MAX);
+}
+
} // namespace chrome_common_net

Powered by Google App Engine
This is Rietveld 408576698