diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 15:35:14 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 15:35:14 +0000 |
commit | 5b4fda28ba487bc01b83b1d32ab3988dac9270c2 (patch) | |
tree | 74a3fb325b1e7ac2376b7f9598c2fac83b26f48a /DEPS | |
parent | 49c6319f3f5881d16c9a82f2350e46dd7ee05b7f (diff) | |
download | chromium_src-5b4fda28ba487bc01b83b1d32ab3988dac9270c2.zip chromium_src-5b4fda28ba487bc01b83b1d32ab3988dac9270c2.tar.gz chromium_src-5b4fda28ba487bc01b83b1d32ab3988dac9270c2.tar.bz2 |
Add a lock to read |state_| in UIModelWorker::DoWorkAndWait. We don't
strictly need to acquire the lock here because this can only get called
while !syncapi_has_shutdown_ and STOPPED could only get set after that
bool is false (and that bool is protected by locks), the purpose of this
DCHECK/return is for catching developer error in extraordinary cases,
so in a way, adding ANNOTATE_UNPROTECTED_READ would seem hypocritical.
BUG=32892
TEST=UIModelWorkerTest
Review URL: http://codereview.chromium.org/965002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'DEPS')
0 files changed, 0 insertions, 0 deletions