summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_url_loader_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/ppb_url_loader_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_url_loader_proxy.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ppapi/proxy/ppb_url_loader_proxy.cc b/ppapi/proxy/ppb_url_loader_proxy.cc
index 91c1bba..3293516 100644
--- a/ppapi/proxy/ppb_url_loader_proxy.cc
+++ b/ppapi/proxy/ppb_url_loader_proxy.cc
@@ -609,7 +609,10 @@ void PPB_URLLoader_Proxy::OnMsgReadResponseBodyAck(
return;
}
- DCHECK(result < 0 || result == data_len);
+ if (result >= 0 && result != data_len) {
+ NOTREACHED() << "Data size mismatch";
+ return;
+ }
EnterPluginFromHostResource<PPB_URLLoader_API> enter(host_resource);
if (enter.succeeded())