Index: net/log/net_log_util.cc |
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc |
index 0ac5b4146944589b651b2e0759616c435f1f84a2..97d9a7648a746e3e4c07f08d3a59ed77d57a9ef9 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); |
} |
} |