summaryrefslogtreecommitdiffstats
path: root/cc/resources/prioritized_resource.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 21:26:41 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 21:26:41 +0000
commit767f38d72c2e7da043b597eba26a718af08f9035 (patch)
tree442727383f1b535488df605bcf1113afee9682b7 /cc/resources/prioritized_resource.h
parent9d11b52c42b6dc9ed9dd937b06a024f88bbee19c (diff)
downloadchromium_src-767f38d72c2e7da043b597eba26a718af08f9035.zip
chromium_src-767f38d72c2e7da043b597eba26a718af08f9035.tar.gz
chromium_src-767f38d72c2e7da043b597eba26a718af08f9035.tar.bz2
cc: Change #if !defined(NDEBUG) to #if DCHECK_IS_ON.
Some places in cc enabled DCHECK code only when in a debug build since they added member variables to classes in order to perform their checks, and we could not check for DCHECK at compile time. Since we can now, we can guard these DCHECKS with DCHECK_IS_ON. Yay! DCHECK_IS_ON is always defined by base/logging.h. It is set to 1 when DCHECKS are enabled, and 0 otherwise. R=enne BUG=350462 Review URL: https://codereview.chromium.org/201843005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/prioritized_resource.h')
-rw-r--r--cc/resources/prioritized_resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/resources/prioritized_resource.h b/cc/resources/prioritized_resource.h
index 1d56524..7920f81 100644
--- a/cc/resources/prioritized_resource.h
+++ b/cc/resources/prioritized_resource.h
@@ -143,7 +143,7 @@ class CC_EXPORT PrioritizedResource {
bool resource_has_been_deleted_;
-#ifndef NDEBUG
+#if DCHECK_IS_ON
ResourceProvider* resource_provider_;
#endif
DISALLOW_COPY_AND_ASSIGN(Backing);