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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 931343002: Remove net URLRequest trace events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove include Created 5 years, 10 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
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index f50add261d5ae8a9a1e5745869072a122089a396..ec083f397062048f52f620ea48dca90d084777de 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -22,7 +22,6 @@
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
-#include "base/trace_event/trace_event.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
@@ -326,7 +325,6 @@ int ChromeNetworkDelegate::OnBeforeSendHeaders(
if (force_safety_mode)
safe_search_util::ForceYouTubeSafetyMode(request, headers);
- TRACE_EVENT_ASYNC_STEP_PAST0("net", "URLRequest", request, "SendRequest");
return extensions_delegate_->OnBeforeSendHeaders(request, callback, headers);
}
@@ -359,7 +357,6 @@ void ChromeNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
void ChromeNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
- TRACE_EVENT_ASYNC_STEP_PAST0("net", "URLRequest", request, "ResponseStarted");
extensions_delegate_->OnResponseStarted(request);
}
@@ -370,8 +367,6 @@ void ChromeNetworkDelegate::OnRawBytesRead(const net::URLRequest& request,
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"423948 ChromeNetworkDelegate::OnRawBytesRead"));
- TRACE_EVENT_ASYNC_STEP_PAST1("net", "URLRequest", &request, "DidRead",
- "bytes_read", bytes_read);
#if defined(ENABLE_TASK_MANAGER)
// This is not completely accurate, but as a first approximation ignore
// requests that are served from the cache. See bug 330931 for more info.
@@ -399,7 +394,6 @@ void ChromeNetworkDelegate::OnCompleted(net::URLRequest* request,
bool started) {
RecordNetworkErrorHistograms(request);
- TRACE_EVENT_ASYNC_END0("net", "URLRequest", request);
if (request->status().status() == net::URLRequestStatus::SUCCESS) {
#if defined(OS_ANDROID)
// For better accuracy, we use the actual bytes read instead of the length
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698