| Index: net/disk_cache/blockfile/entry_impl_v3.cc
|
| diff --git a/net/disk_cache/blockfile/entry_impl_v3.cc b/net/disk_cache/blockfile/entry_impl_v3.cc
|
| index 78ef1b834f3b96d447fc49d1d6458421e5858149..4804eaa8b90b2f7ee7e442a3826168f92970fb34 100644
|
| --- a/net/disk_cache/blockfile/entry_impl_v3.cc
|
| +++ b/net/disk_cache/blockfile/entry_impl_v3.cc
|
| @@ -547,7 +547,7 @@ int EntryImplV3::ReadData(int index, int offset, IOBuffer* buf, int buf_len,
|
|
|
| int EntryImpl::ReadDataImpl(int index, int offset, IOBuffer* buf, int buf_len,
|
| const CompletionCallback& callback) {
|
| - if (net_log_.GetCaptureMode().enabled()) {
|
| + if (net_log_.HasObservers()) {
|
| net_log_.BeginEvent(
|
| net::NetLog::TYPE_ENTRY_READ_DATA,
|
| CreateNetLogReadWriteDataCallback(index, offset, buf_len, false));
|
| @@ -555,7 +555,7 @@ int EntryImpl::ReadDataImpl(int index, int offset, IOBuffer* buf, int buf_len,
|
|
|
| int result = InternalReadData(index, offset, buf, buf_len, callback);
|
|
|
| - if (result != net::ERR_IO_PENDING && net_log_.GetCaptureMode().enabled()) {
|
| + if (result != net::ERR_IO_PENDING && net_log_.HasObservers()) {
|
| net_log_.EndEvent(
|
| net::NetLog::TYPE_ENTRY_READ_DATA,
|
| CreateNetLogReadWriteCompleteCallback(result));
|
| @@ -586,7 +586,7 @@ int EntryImplV3::WriteData(int index, int offset, IOBuffer* buf, int buf_len,
|
| int EntryImpl::WriteDataImpl(int index, int offset, IOBuffer* buf, int buf_len,
|
| const CompletionCallback& callback,
|
| bool truncate) {
|
| - if (net_log_.GetCaptureMode().enabled()) {
|
| + if (net_log_.HasObservers()) {
|
| net_log_.BeginEvent(
|
| net::NetLog::TYPE_ENTRY_WRITE_DATA,
|
| CreateNetLogReadWriteDataCallback(index, offset, buf_len, truncate));
|
| @@ -595,7 +595,7 @@ int EntryImpl::WriteDataImpl(int index, int offset, IOBuffer* buf, int buf_len,
|
| int result = InternalWriteData(index, offset, buf, buf_len, callback,
|
| truncate);
|
|
|
| - if (result != net::ERR_IO_PENDING && net_log_.GetCaptureMode().enabled()) {
|
| + if (result != net::ERR_IO_PENDING && net_log_.HasObservers()) {
|
| net_log_.EndEvent(
|
| net::NetLog::TYPE_ENTRY_WRITE_DATA,
|
| CreateNetLogReadWriteCompleteCallback(result));
|
|
|