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

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: add missing header 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..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);

Powered by Google App Engine
This is Rietveld 408576698