base: Enable lock dchecks with dchecks_always_on
commit370c7838f0fc90478c411d4c6d015d4fd00ac850
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 21 Jul 2014 23:11:26 +0000 (21 23:11 +0000)
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 21 Jul 2014 23:11:26 +0000 (21 23:11 +0000)
tree504ee14bf6ff5c3ba13006bf1eedf9a3c68222fe
parentdac186fb35facaebb9dfabaa10ded62f04ba50f4
base: Enable lock dchecks with dchecks_always_on

Enable DCHECKs in Lock and ConditionVariable when compiled
with dchecks_always_on.

Note the correctness of DCHECKs relies on DCHECKs enabled
in both Lock and ConditionVariable. This CL keeps the
condition to enable DCHECKs in ConditionVariable the
same as Lock, to avoid any issues here.

BUG=

Review URL: https://codereview.chromium.org/403803004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284534 0039d316-1c4b-4281-b951-d872f2087c98
base/synchronization/condition_variable.h
base/synchronization/condition_variable_posix.cc
base/synchronization/condition_variable_win.cc
base/synchronization/lock.cc
base/synchronization/lock.h