diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 13:11:52 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 13:11:52 +0000 |
commit | f1f642879ba2c3e7edb3af50d70ea11286f3ae93 (patch) | |
tree | 2464d0d298d6ca2c4af9ed3e398e2f56eb822eae /net/base/ev_root_ca_metadata.cc | |
parent | db45a2f85588f7b1c1d62fe103c80a4eebca4e15 (diff) | |
download | chromium_src-f1f642879ba2c3e7edb3af50d70ea11286f3ae93.zip chromium_src-f1f642879ba2c3e7edb3af50d70ea11286f3ae93.tar.gz chromium_src-f1f642879ba2c3e7edb3af50d70ea11286f3ae93.tar.bz2 |
Remove an unused include of deprecated atomic.h. Replace a custom singleton implementation with use of Singleton.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/ev_root_ca_metadata.cc')
-rw-r--r-- | net/base/ev_root_ca_metadata.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/net/base/ev_root_ca_metadata.cc b/net/base/ev_root_ca_metadata.cc index 062e29e..30c37bb 100644 --- a/net/base/ev_root_ca_metadata.cc +++ b/net/base/ev_root_ca_metadata.cc @@ -27,6 +27,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include "base/singleton.h" #include "net/base/ev_root_ca_metadata.h" namespace net { @@ -165,17 +166,8 @@ static const EVMetadata ev_root_ca_metadata[] = { }; // static -EVRootCAMetadata* EVRootCAMetadata::instance_; - -// static EVRootCAMetadata* EVRootCAMetadata::GetInstance() { - if (!instance_) { - EVRootCAMetadata* new_instance = new EVRootCAMetadata; - if (InterlockedCompareExchangePointer( - reinterpret_cast<PVOID*>(&instance_), new_instance, NULL)) - delete new_instance; - } - return instance_; + return Singleton<EVRootCAMetadata>::get(); } bool EVRootCAMetadata::GetPolicyOID( |