diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 20:56:59 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 20:56:59 +0000 |
commit | dddc1b44f4ae8346098bfadecd71d23e7de9299e (patch) | |
tree | 7e7bc78046ccc2e72845aad02bf412cde68dc317 /base/lock.cc | |
parent | 02c8af4b05db2cd02da70aeaac176acb1deadf60 (diff) | |
download | chromium_src-dddc1b44f4ae8346098bfadecd71d23e7de9299e.zip chromium_src-dddc1b44f4ae8346098bfadecd71d23e7de9299e.tar.gz chromium_src-dddc1b44f4ae8346098bfadecd71d23e7de9299e.tar.bz2 |
Changes BookmarkModel to not grab the same lock twice.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6391
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/lock.cc')
-rw-r--r-- | base/lock.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/lock.cc b/base/lock.cc index 1dd4dc1..c2f79c7 100644 --- a/base/lock.cc +++ b/base/lock.cc @@ -43,8 +43,7 @@ void Lock::Acquire() { acquisition_count_++; if (2 == recursion_count_shadow_ && !recursion_used_) { recursion_used_ = true; - // TODO(sky): Uncomment this DCHECK after fixing test cases. - // DCHECK(false); // Catch accidental redundant lock acquisition. + DCHECK(false); // Catch accidental redundant lock acquisition. } #endif // NDEBUG } |