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

Unified Diff: mojo/public/cpp/bindings/lib/fixed_buffer.cc

Issue 399313007: Mojo: Convert assert()s under mojo/public/cpp/bindings/... to MOJO_DCHECK()s. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: mojo/public/cpp/bindings/lib/fixed_buffer.cc
diff --git a/mojo/public/cpp/bindings/lib/fixed_buffer.cc b/mojo/public/cpp/bindings/lib/fixed_buffer.cc
index 5226231725c53392bfe20459783299903200f821..6293233765b533ee5ce976f105f6e2c7c2692193 100644
--- a/mojo/public/cpp/bindings/lib/fixed_buffer.cc
+++ b/mojo/public/cpp/bindings/lib/fixed_buffer.cc
@@ -4,13 +4,12 @@
#include "mojo/public/cpp/bindings/lib/fixed_buffer.h"
-#include <assert.h>
#include <stdlib.h>
-#include <string.h>
#include <algorithm>
#include "mojo/public/cpp/bindings/lib/bindings_serialization.h"
+#include "mojo/public/cpp/environment/logging.h"
namespace mojo {
namespace internal {
@@ -31,7 +30,7 @@ void* FixedBuffer::Allocate(size_t delta) {
delta = internal::Align(delta);
if (delta == 0 || delta > size_ - cursor_) {
- assert(false);
+ MOJO_DCHECK(false) << "Not reached";
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698