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

Unified Diff: android_webview/browser/net/input_stream_reader.cc

Issue 337473004: aw: Use comparison DCHECKs where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « android_webview/browser/browser_view_renderer.cc ('k') | android_webview/browser/net_disk_cache_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/input_stream_reader.cc
diff --git a/android_webview/browser/net/input_stream_reader.cc b/android_webview/browser/net/input_stream_reader.cc
index 692e75a9cc3ea76d75075b4f9ec0f936616907a0..1a1b92c09cdb5d2b14ea43d965e73819ea14170f 100644
--- a/android_webview/browser/net/input_stream_reader.cc
+++ b/android_webview/browser/net/input_stream_reader.cc
@@ -87,7 +87,7 @@ int InputStreamReader::SkipToRequestedRange(
if (skipped <= 0)
return net::ERR_REQUEST_RANGE_NOT_SATISFIABLE;
- DCHECK(skipped <= bytes_to_skip);
+ DCHECK_LE(skipped, bytes_to_skip);
bytes_to_skip -= skipped;
} while (bytes_to_skip > 0);
« no previous file with comments | « android_webview/browser/browser_view_renderer.cc ('k') | android_webview/browser/net_disk_cache_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698