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

Unified Diff: net/http/http_cache.cc

Issue 5124001: Http cache: Remove code used to track a crash. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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: net/http/http_cache.cc
===================================================================
--- net/http/http_cache.cc (revision 65620)
+++ net/http/http_cache.cc (working copy)
@@ -405,14 +405,6 @@
bool HttpCache::ParseResponseInfo(const char* data, int len,
HttpResponseInfo* response_info,
bool* response_truncated) {
- // This block is here just to debug a Linux-only crash (bug 56449).
- // TODO(rvargas): Remove this.
- if (len < 4)
- return false;
- int payload_size = *reinterpret_cast<const int*>(data);
- if (payload_size < 4)
- return false;
-
Pickle pickle(data, len);
return response_info->InitFromPickle(pickle, response_truncated);
}
« 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