Commit 43d8da96 authored by erikchen's avatar erikchen Committed by Commit bot

content: Mild change in flavor of debugging for ResourceMsg_DataReceived.

BUG=527588

Review URL: https://codereview.chromium.org/1512973003

Cr-Commit-Position: refs/heads/master@{#364434}
parent e322a36f
...@@ -245,8 +245,11 @@ void ResourceDispatcher::OnReceivedData(int request_id, ...@@ -245,8 +245,11 @@ void ResourceDispatcher::OnReceivedData(int request_id,
CHECK_GE(data_length, 0); CHECK_GE(data_length, 0);
CHECK_LE(data_length, 512 * 1024); CHECK_LE(data_length, 512 * 1024);
int cached_data_offset = request_info->data_offset; if (data_offset > 512 * 1024) {
CHECK_EQ(cached_data_offset, data_offset); int cached_data_offset = request_info->data_offset;
base::debug::Alias(&cached_data_offset);
CHECK(false);
}
// Ensure that the SHM buffer remains valid for the duration of this scope. // Ensure that the SHM buffer remains valid for the duration of this scope.
// It is possible for Cancel() to be called before we exit this scope. // It is possible for Cancel() to be called before we exit this scope.
......
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