From 3dd37c421fc860e9c7e3ed4a4cd7069f5e030f7a Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 14 Jul 2014 23:52:48 +0000 Subject: [PATCH] Fix Release build compile error. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1771 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef_dll/wrapper/cef_stream_resource_handler.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcef_dll/wrapper/cef_stream_resource_handler.cc b/libcef_dll/wrapper/cef_stream_resource_handler.cc index 2d5391277..6089bc1fe 100644 --- a/libcef_dll/wrapper/cef_stream_resource_handler.cc +++ b/libcef_dll/wrapper/cef_stream_resource_handler.cc @@ -151,7 +151,9 @@ bool CefStreamResourceHandler::ReadResponse(void* data_out, DCHECK_GT(bytes_to_read, 0); if (read_on_file_thread_) { +#ifndef NDEBUG DCHECK(!buffer_owned_by_file_thread_); +#endif if (buffer_ && (buffer_->CanRead() || buffer_->IsEmpty())) { if (buffer_->CanRead()) { // Provide data from the buffer. @@ -196,7 +198,9 @@ void CefStreamResourceHandler::ReadOnFileThread( int bytes_to_read, CefRefPtr callback) { CEF_REQUIRE_FILE_THREAD(); +#ifndef NDEBUG DCHECK(buffer_owned_by_file_thread_); +#endif if (!buffer_) buffer_ = new Buffer();