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

Unified Diff: cc/scoped_ptr_deque.h

Issue 11192030: cc: Switch to Chromium DCHECKs LOGs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseonenne 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
« no previous file with comments | « cc/scheduler_unittest.cc ('k') | cc/scoped_ptr_hash_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_ptr_deque.h
diff --git a/cc/scoped_ptr_deque.h b/cc/scoped_ptr_deque.h
index 33d94e10354dc289640809589103a5a0c3b1e93a..64f09a8a8ec11f2a6f66ea5f9df41017ef21296d 100644
--- a/cc/scoped_ptr_deque.h
+++ b/cc/scoped_ptr_deque.h
@@ -6,6 +6,7 @@
#define CC_SCOPED_PTR_DEQUE_H_
#include "base/basictypes.h"
+#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include <deque>
@@ -31,7 +32,7 @@ class ScopedPtrDeque {
}
T* Peek(size_t index) const {
- ASSERT(index < size());
+ DCHECK(index < size());
return data_[index];
}
@@ -40,12 +41,12 @@ class ScopedPtrDeque {
}
T* first() const {
- ASSERT(!isEmpty());
+ DCHECK(!isEmpty());
return Peek(0);
}
T* last() const {
- ASSERT(!isEmpty());
+ DCHECK(!isEmpty());
return Peek(size() - 1);
}
@@ -74,7 +75,7 @@ class ScopedPtrDeque {
}
void insert(size_t index, scoped_ptr<T> item) {
- ASSERT(index < size());
+ DCHECK(index < size());
data_.insert(data_.begin() + index, item.release());
}
« no previous file with comments | « cc/scheduler_unittest.cc ('k') | cc/scoped_ptr_hash_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698