diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 11:19:42 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 11:19:42 +0000 |
commit | 156f807989a09824aaf37b194376445b19f5b3f5 (patch) | |
tree | c86e4c284957adad37616fbe37442d9748fa833d /base/singleton_dll_unittest.cc | |
parent | d1e0ec9cde64a4513859024b9ec4077c0771cff9 (diff) | |
download | chromium_src-156f807989a09824aaf37b194376445b19f5b3f5.zip chromium_src-156f807989a09824aaf37b194376445b19f5b3f5.tar.gz chromium_src-156f807989a09824aaf37b194376445b19f5b3f5.tar.bz2 |
Cross platform and cleanup of Singleton class
- Move away from windows-specific atomic operations to cross platform atopmicops
- Remove double new semantics on windows
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/singleton_dll_unittest.cc')
-rw-r--r-- | base/singleton_dll_unittest.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/base/singleton_dll_unittest.cc b/base/singleton_dll_unittest.cc index 78b2a7c..6892965 100644 --- a/base/singleton_dll_unittest.cc +++ b/base/singleton_dll_unittest.cc @@ -52,13 +52,9 @@ BOOL APIENTRY DllMain(HMODULE module, DWORD reason_for_call, LPVOID reserved) { } COMPILE_ASSERT(DefaultSingletonTraits<int>::kRegisterAtExit == true, a); -COMPILE_ASSERT( - DefaultSingletonTraits<int>::kMustCallNewExactlyOnce == false, - b); template<typename Type> struct LockTrait : public DefaultSingletonTraits<Type> { - static const bool kMustCallNewExactlyOnce = true; }; struct Init5Trait : public DefaultSingletonTraits<int> { |