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

Unified Diff: webkit/media/buffered_resource_loader.cc

Issue 10441043: Unbreak http/tests/media/video-cookie.html b/c of overzealous sanity check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months 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: webkit/media/buffered_resource_loader.cc
diff --git a/webkit/media/buffered_resource_loader.cc b/webkit/media/buffered_resource_loader.cc
index 6496f7fa9c95952c69e79c25ee05bba367988774..cfeda51d00cd0073e1171262f51190fa469e966e 100644
--- a/webkit/media/buffered_resource_loader.cc
+++ b/webkit/media/buffered_resource_loader.cc
@@ -378,12 +378,12 @@ void BufferedResourceLoader::didReceiveResponse(
int shift = 0;
int max_enum = base::bits::Log2Ceiling(kMaxReason);
while (reasons) {
+ DCHECK_LT(shift, max_enum); // Sanity check.
if (reasons & 0x1)
UMA_HISTOGRAM_ENUMERATION("Media.UncacheableReason", shift, max_enum);
reasons >>= 1;
++shift;
}
- DCHECK_LT(shift, max_enum); // Sanity check.
// Expected content length can be |kPositionNotSpecified|, in that case
// |content_length_| is not specified and this is a streaming response.
« 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