summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/browser/download/download_file_impl.cc2
-rw-r--r--content/browser/download/download_item_impl.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index 4c8203d..b15354d 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -337,7 +337,7 @@ void DownloadFileImpl::StreamActive() {
&DownloadDestinationObserver::DestinationCompleted,
observer_, hash));
}
- if (bound_net_log_.GetCaptureMode().enabled()) {
+ if (bound_net_log_.IsCapturing()) {
bound_net_log_.AddEvent(
net::NetLog::TYPE_DOWNLOAD_STREAM_DRAINED,
base::Bind(&FileStreamDrainedNetLogCallback, total_incoming_data_size,
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index be61483..599bc0d 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -1055,7 +1055,7 @@ void DownloadItemImpl::DestinationUpdate(int64 bytes_so_far,
if (received_bytes_ > total_bytes_)
total_bytes_ = 0;
- if (bound_net_log_.GetCaptureMode().enabled()) {
+ if (bound_net_log_.IsCapturing()) {
bound_net_log_.AddEvent(
net::NetLog::TYPE_DOWNLOAD_ITEM_UPDATED,
net::NetLog::Int64Callback("bytes_so_far", received_bytes_));