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

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

Issue 159913003: Don't notify the task manager about bytes read from the cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add bug number Created 6 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 | no next file » | 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 747f670bfc10b753149a2e07a67728e818375ee4..6c99b196aa868b22467b16740165420548aad424 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -538,7 +538,10 @@ void ChromeNetworkDelegate::OnRawBytesRead(const net::URLRequest& request,
request, bytes_read);
#if defined(ENABLE_TASK_MANAGER)
- TaskManager::GetInstance()->model()->NotifyBytesRead(request, bytes_read);
+ // This is not completely accurate, but as a first approximation ignore
+ // requests that are served from the cache. See bug 330931 for more info.
+ if (!request.was_cached())
+ TaskManager::GetInstance()->model()->NotifyBytesRead(request, bytes_read);
#endif // defined(ENABLE_TASK_MANAGER)
}
« 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