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

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: Fix incorrect spelling of iOS. 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..2501c40277a410d7fed5d5ee0e690102ad7120e5 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,
jar (doing other things) 2014/04/21 23:48:19 Please add an entry in tools/metrics/histograms/hi
Randy Smith (Not in Mondays) 2014/04/22 20:40:02 Apologies; as noted elsewhere, I was confused abou
+ NETWORK_ERROR_PAGE_EVENT_MAX);
+}
+
} // namespace chrome_common_net

Powered by Google App Engine
This is Rietveld 408576698