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

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

Issue 9121053: Added net logging to DownloadItem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes to comments. Created 8 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 | chrome/browser/resources/net_internals/source_entry.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/passive_log_collector.cc
diff --git a/chrome/browser/net/passive_log_collector.cc b/chrome/browser/net/passive_log_collector.cc
index 641e11a1773e5cc3ab382d5180e3ed0085254ed5..661d60c77fa54ea7a08367e050b6948b6738c6cf 100644
--- a/chrome/browser/net/passive_log_collector.cc
+++ b/chrome/browser/net/passive_log_collector.cc
@@ -865,10 +865,12 @@ PassiveLogCollector::SourceTracker::Action
PassiveLogCollector::DownloadTracker::DoAddEntry(
const ChromeNetLog::Entry& entry,
SourceInfo* out_info) {
- if (entry.type == net::NetLog::TYPE_DOWNLOAD_FILE_WRITTEN)
+ if ((entry.type == net::NetLog::TYPE_DOWNLOAD_FILE_WRITTEN) ||
+ (entry.type == net::NetLog::TYPE_DOWNLOAD_ITEM_UPDATED)) {
return ACTION_NONE; // Don't passively log these (too many).
+ }
AddEntryToSourceInfo(entry, out_info);
- if (entry.type == net::NetLog::TYPE_DOWNLOAD_FILE_OPENED &&
+ if (entry.type == net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE &&
entry.phase == net::NetLog::PHASE_END) {
return ACTION_MOVE_TO_GRAVEYARD;
}
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/source_entry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698