Commit 335bf6a0 authored by mtklein@google.com's avatar mtklein@google.com

Give names to a couple base::AutoLocks missing them.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238214 0039d316-1c4b-4281-b951-d872f2087c98
parent 9abceb78
......@@ -163,7 +163,7 @@ base::LazyInstance<base::Lock> SchedulerClientBase::all_clients_lock_ =
LAZY_INSTANCE_INITIALIZER;
SchedulerClientBase::SchedulerClientBase(bool need_thread) {
base::AutoLock(all_clients_lock_.Get());
base::AutoLock lock(all_clients_lock_.Get());
if (need_thread) {
if (!all_clients_.Get().empty()) {
SchedulerClientBase* other = *all_clients_.Get().begin();
......@@ -177,12 +177,12 @@ SchedulerClientBase::SchedulerClientBase(bool need_thread) {
}
SchedulerClientBase::~SchedulerClientBase() {
base::AutoLock(all_clients_lock_.Get());
base::AutoLock lock(all_clients_lock_.Get());
all_clients_.Get().erase(this);
}
bool SchedulerClientBase::HasClients() {
base::AutoLock(all_clients_lock_.Get());
base::AutoLock lock(all_clients_lock_.Get());
return !all_clients_.Get().empty();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment