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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.cc

Issue 5803003: Don't include ERR_ABORTED in net error histogram (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc
index 9a4953e74b5dd38d58bee3b000ddf5e39292aaea..19432131e89bce6d07b3ac9edccaf64b00cf675b 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc
@@ -1491,7 +1491,8 @@ void ResourceDispatcherHost::OnResponseCompleted(net::URLRequest* request) {
// If the load for a main frame has failed, track it in a histogram,
// since it will probably cause the user to see an error page.
if (!request->status().is_success() &&
- info->resource_type() == ResourceType::MAIN_FRAME) {
+ info->resource_type() == ResourceType::MAIN_FRAME &&
+ request->status().os_error() != net::ERR_ABORTED) {
UMA_HISTOGRAM_CUSTOM_ENUMERATION("Net.ErrorCodesForMainFrame",
-request->status().os_error(),
GetAllNetErrorCodes());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698