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

Unified Diff: cc/scoped_ptr_hash_map.h

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: with-presubmit Created 8 years, 2 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: cc/scoped_ptr_hash_map.h
diff --git a/cc/scoped_ptr_hash_map.h b/cc/scoped_ptr_hash_map.h
index 1cea5c0ace536c39ce044fbf4bd329641be833d4..7e5575053594986b111b598eb3f15c1f0ba1f942 100644
--- a/cc/scoped_ptr_hash_map.h
+++ b/cc/scoped_ptr_hash_map.h
@@ -9,6 +9,7 @@
#include "base/hash_tables.h"
#include "base/stl_util.h"
#include "base/memory/scoped_ptr.h"
+#include "cc/dcheck.h"
namespace cc {
@@ -66,7 +67,7 @@ class ScopedPtrHashMap {
}
scoped_ptr<Value> take(iterator it) {
- ASSERT(it != data_.end());
+ CC_DCHECK(it != data_.end());
if (it == data_.end())
return scoped_ptr<Value>(NULL);
@@ -86,7 +87,7 @@ class ScopedPtrHashMap {
}
scoped_ptr<Value> take_and_erase(iterator it) {
- ASSERT(it != data_.end());
+ CC_DCHECK(it != data_.end());
if (it == data_.end())
return scoped_ptr<Value>(NULL);

Powered by Google App Engine
This is Rietveld 408576698