Chromium Code Reviews| Index: content/browser/download/download_item_impl.cc |
| diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc |
| index a0dea5682baf3f99f9ce8ac82e84a735974e6c2f..ff027beae2ad5f3d8e0f833d7529f8f68cdb7658 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_.IsLogging()) { |
| + if (bound_net_log_.GetCaptureMode().enabled()) { |
| bound_net_log_.AddEvent( |
| net::NetLog::TYPE_DOWNLOAD_ITEM_UPDATED, |
| net::NetLog::Int64Callback("bytes_so_far", received_bytes_)); |
| @@ -1106,8 +1106,8 @@ void DownloadItemImpl::Init(bool active, |
| file_name = GetURL().ExtractFileName(); |
| } |
| - base::Callback<base::Value*(net::NetLog::LogLevel)> active_data = base::Bind( |
| - &ItemActivatedNetLogCallback, this, download_type, &file_name); |
| + base::Callback<base::Value*(net::NetLogCaptureMode)> active_data = |
|
mmenke
2015/04/22 18:52:18
While you're here, maybe just net::NetLog::Paramet
eroman
2015/04/22 20:01:47
Done.
|
| + base::Bind(&ItemActivatedNetLogCallback, this, download_type, &file_name); |
| if (active) { |
| bound_net_log_.BeginEvent( |
| net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE, active_data); |