Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: base/crypto/cssm_init.cc

Issue 6659019: Separate GetMacSecurityServicesLock from cssm_init.h so that we can use... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Upload before checkin Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/crypto/cssm_init.h ('k') | base/crypto/mac_security_services_lock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/crypto/cssm_init.cc
===================================================================
--- base/crypto/cssm_init.cc (revision 77556)
+++ base/crypto/cssm_init.cc (working copy)
@@ -9,7 +9,6 @@
#include "base/logging.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/singleton.h"
-#include "base/synchronization/lock.h"
#include "base/sys_string_conversions.h"
// When writing crypto code for Mac OS X, you may find the following
@@ -154,28 +153,6 @@
friend struct DefaultSingletonTraits<CSSMInitSingleton>;
};
-// This singleton is separate as it pertains to Apple's wrappers over
-// their own CSSM handles, as opposed to our own CSSM_CSP_HANDLE.
-class SecurityServicesSingleton {
- public:
- static SecurityServicesSingleton* GetInstance() {
- return Singleton<SecurityServicesSingleton,
- LeakySingletonTraits<SecurityServicesSingleton> >::get();
- }
-
- base::Lock& lock() { return lock_; }
-
- private:
- friend struct DefaultSingletonTraits<SecurityServicesSingleton>;
-
- SecurityServicesSingleton() {}
- ~SecurityServicesSingleton() {}
-
- base::Lock lock_;
-
- DISALLOW_COPY_AND_ASSIGN(SecurityServicesSingleton);
-};
-
} // namespace
namespace base {
@@ -213,10 +190,6 @@
<< " (" << SysCFStringRefToUTF8(cfstr) << ")";
}
-base::Lock& GetMacSecurityServicesLock() {
- return SecurityServicesSingleton::GetInstance()->lock();
-}
-
ScopedCSSMData::ScopedCSSMData() {
memset(&data_, 0, sizeof(data_));
}
« no previous file with comments | « base/crypto/cssm_init.h ('k') | base/crypto/mac_security_services_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698