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

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

Issue 2558143002: Remove the enable_task_manager build flag and define. (Closed)
Patch Set: Includes Created 4 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 | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/prefs/browser_prefs.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 585f09dea926ba852bef97614dc9f674d4914fd8..3e96c884eaeefcc5f7327fd0aadeea53a2c0ce1d 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -361,11 +361,11 @@ void ChromeNetworkDelegate::OnResponseStarted(net::URLRequest* request,
void ChromeNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request,
int64_t bytes_received) {
-#if defined(ENABLE_TASK_MANAGER)
+#if !defined(OS_ANDROID)
// Note: Currently, OnNetworkBytesReceived is only implemented for HTTP jobs,
// not FTP or other types, so those kinds of bytes will not be reported here.
task_manager::TaskManagerInterface::OnRawBytesRead(*request, bytes_received);
-#endif // defined(ENABLE_TASK_MANAGER)
+#endif // !defined(OS_ANDROID)
ReportDataUsageStats(request, 0 /* tx_bytes */, bytes_received);
}
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698