From bc3847a1ba39db7adec20aa9e0565f6e868e8480 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Wed, 17 Oct 2012 00:50:19 +0000 Subject: cc: Switch to Chromium DCHECKs LOGs We can't compile-guard code and use DCHECK since it can be enabled at runtime. This removes all compile-time guards, and makes use of DCHECK instead of ASSERT. We use DCHECK_IS_ON() to early out and avoid extra work just for DCHECK where possible as well. This also replaces use of LOG_ERROR("Foo") with LOG(ERROR)<<"Foo"; R=enne,jamesr Review URL: https://chromiumcodereview.appspot.com/11048044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162296 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/timer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cc/timer.cc') diff --git a/cc/timer.cc b/cc/timer.cc index 089c12b..b5b9206 100644 --- a/cc/timer.cc +++ b/cc/timer.cc @@ -7,6 +7,7 @@ #include "CCTimer.h" #include "base/compiler_specific.h" +#include "base/logging.h" #include "CCThread.h" namespace cc { @@ -24,7 +25,7 @@ public: if (!m_timer) return; - ASSERT(m_timer->m_task == this); + DCHECK(m_timer->m_task == this); m_timer->stop(); } -- cgit v1.1