summaryrefslogtreecommitdiffstats
path: root/net/log/net_log_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/log/net_log_util.cc')
-rw-r--r--net/log/net_log_util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
index 0ac5b41..97d9a76 100644
--- a/net/log/net_log_util.cc
+++ b/net/log/net_log_util.cc
@@ -521,10 +521,12 @@ NET_EXPORT void CreateNetLogEntriesForActiveObjects(
NetLog::ParametersCallback callback =
base::Bind(&GetRequestStateAsValue, base::Unretained(request));
+ // Note that passing the hardcoded NetLogCaptureMode::Default() below is
+ // fine, since GetRequestStateAsValue() ignores the capture mode.
NetLog::EntryData entry_data(
NetLog::TYPE_REQUEST_ALIVE, request->net_log().source(),
NetLog::PHASE_BEGIN, request->creation_time(), &callback);
- NetLog::Entry entry(&entry_data, request->net_log().GetCaptureMode());
+ NetLog::Entry entry(&entry_data, NetLogCaptureMode::Default());
observer->OnAddEntry(entry);
}
}