Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: content/child/resource_dispatcher.cc

Issue 1512973003: content: Mild change in flavor of debugging for ResourceMsg_DataReceived. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 89893b120e06504d5ae6a1223ed12f553ec14634..5971fc8b08bdc947c8c99ee96bb617dab29bd087 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -245,8 +245,11 @@ void ResourceDispatcher::OnReceivedData(int request_id,
CHECK_GE(data_length, 0);
CHECK_LE(data_length, 512 * 1024);
- int cached_data_offset = request_info->data_offset;
- CHECK_EQ(cached_data_offset, data_offset);
+ if (data_offset > 512 * 1024) {
+ 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.
// It is possible for Cancel() to be called before we exit this scope.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698