Index: net/base/cert_database_mac.cc |
diff --git a/net/base/cert_database_mac.cc b/net/base/cert_database_mac.cc |
index b0afd50f04d1f4978dcb2229283cbd37ded94ab7..e90a712bf19a6f071d4cbeae93ef6784010a71a5 100644 |
--- a/net/base/cert_database_mac.cc |
+++ b/net/base/cert_database_mac.cc |
@@ -7,8 +7,8 @@ |
#include <Security/Security.h> |
#include "base/crypto/cssm_init.h" |
-#include "base/lock.h" |
#include "base/logging.h" |
+#include "base/synchronization/lock.h" |
#include "net/base/net_errors.h" |
#include "net/base/x509_certificate.h" |
@@ -43,7 +43,7 @@ int CertDatabase::CheckUserCert(X509Certificate* cert) { |
int CertDatabase::AddUserCert(X509Certificate* cert) { |
OSStatus err; |
{ |
- AutoLock locked(base::GetMacSecurityServicesLock()); |
+ base::AutoLock locked(base::GetMacSecurityServicesLock()); |
err = SecCertificateAddToKeychain(cert->os_cert_handle(), NULL); |
} |
switch (err) { |