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

Unified Diff: content/browser/download/download_item_impl.cc

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix a merge conflict Created 5 years, 8 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
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..dbcf7c48b4d5ac2b42c910311de339551533c0ee 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);
+ net::NetLog::ParametersCallback active_data =
+ base::Bind(&ItemActivatedNetLogCallback, this, download_type, &file_name);
if (active) {
bound_net_log_.BeginEvent(
net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE, active_data);
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | content/browser/download/download_net_log_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698