Fix Release build compile error.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1771 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-07-14 23:52:48 +00:00
parent 515d4e6829
commit 3dd37c421f
1 changed files with 4 additions and 0 deletions

View File

@ -151,7 +151,9 @@ bool CefStreamResourceHandler::ReadResponse(void* data_out,
DCHECK_GT(bytes_to_read, 0); DCHECK_GT(bytes_to_read, 0);
if (read_on_file_thread_) { if (read_on_file_thread_) {
#ifndef NDEBUG
DCHECK(!buffer_owned_by_file_thread_); DCHECK(!buffer_owned_by_file_thread_);
#endif
if (buffer_ && (buffer_->CanRead() || buffer_->IsEmpty())) { if (buffer_ && (buffer_->CanRead() || buffer_->IsEmpty())) {
if (buffer_->CanRead()) { if (buffer_->CanRead()) {
// Provide data from the buffer. // Provide data from the buffer.
@ -196,7 +198,9 @@ void CefStreamResourceHandler::ReadOnFileThread(
int bytes_to_read, int bytes_to_read,
CefRefPtr<CefCallback> callback) { CefRefPtr<CefCallback> callback) {
CEF_REQUIRE_FILE_THREAD(); CEF_REQUIRE_FILE_THREAD();
#ifndef NDEBUG
DCHECK(buffer_owned_by_file_thread_); DCHECK(buffer_owned_by_file_thread_);
#endif
if (!buffer_) if (!buffer_)
buffer_ = new Buffer(); buffer_ = new Buffer();