Commit 24330cb7 authored by Maks Orlovich's avatar Maks Orlovich Committed by Commit Bot

disk_cache/blockfile: Remove debug aliases

The bug they were meant to help track down is now fixed, so no
reason to keep them around.

(Previously added in https://chromium-review.googlesource.com/c/chromium/src/+/1224670)

Bug: 882246
Change-Id: I4ada70dd810e07f6fc7ecaaf873fa99d4cf6263b
Reviewed-on: https://chromium-review.googlesource.com/1254464Reviewed-by: default avatarAsanka Herath <asanka@chromium.org>
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595534}
parent 589e483b
......@@ -6,7 +6,6 @@
#include <limits>
#include "base/debug/alias.h"
#include "base/hash.h"
#include "base/macros.h"
#include "base/strings/string_util.h"
......@@ -1148,19 +1147,6 @@ int EntryImpl::InternalWriteData(int index,
backend_->OnWrite(buf_len);
if (user_buffers_[index].get()) {
// Temporary to debug https://crbug.com/882246
base::debug::Alias(&index);
base::debug::Alias(&offset);
base::debug::Alias(&buf);
const char* raw_data = nullptr;
void* buf_vptr = nullptr;
if (buf) {
raw_data = buf->data();
memcpy(&buf_vptr, static_cast<void*>(buf), sizeof(void*));
}
base::debug::Alias(&raw_data);
base::debug::Alias(&buf_vptr);
// Complete the operation locally.
user_buffers_[index]->Write(offset, buf, buf_len);
ReportIOTime(kWrite, start);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment