Index: net/base/cert_verifier.cc |
diff --git a/net/base/cert_verifier.cc b/net/base/cert_verifier.cc |
index 3d22decd0840163b04cc20f4ddca31c16c1053fe..044524f8e004a462686a5670036d80b76f2929a1 100644 |
--- a/net/base/cert_verifier.cc |
+++ b/net/base/cert_verifier.cc |
@@ -5,9 +5,9 @@ |
#include "net/base/cert_verifier.h" |
#include "base/compiler_specific.h" |
-#include "base/lock.h" |
#include "base/message_loop.h" |
#include "base/stl_util-inl.h" |
+#include "base/synchronization/lock.h" |
#include "base/threading/worker_pool.h" |
#include "net/base/net_errors.h" |
#include "net/base/x509_certificate.h" |
@@ -145,7 +145,7 @@ class CertVerifierWorker { |
// deleted. |
void Cancel() { |
DCHECK_EQ(MessageLoop::current(), origin_loop_); |
- AutoLock locked(lock_); |
+ base::AutoLock locked(lock_); |
canceled_ = true; |
} |
@@ -174,7 +174,7 @@ class CertVerifierWorker { |
// after the PostTask, but before unlocking |lock_|. If we do not lock in |
// this case, we will end up deleting a locked Lock, which can lead to |
// memory leaks or worse errors. |
- AutoLock locked(lock_); |
+ base::AutoLock locked(lock_); |
if (!canceled_) { |
cert_verifier_->HandleResult(cert_, hostname_, flags_, |
error_, verify_result_); |
@@ -196,7 +196,7 @@ class CertVerifierWorker { |
bool canceled; |
{ |
- AutoLock locked(lock_); |
+ base::AutoLock locked(lock_); |
canceled = canceled_; |
if (!canceled) { |
origin_loop_->PostTask( |
@@ -215,7 +215,7 @@ class CertVerifierWorker { |
CertVerifier* const cert_verifier_; |
// lock_ protects canceled_. |
- Lock lock_; |
+ base::Lock lock_; |
// If canceled_ is true, |
// * origin_loop_ cannot be accessed by the worker thread, |