summaryrefslogtreecommitdiffstats
path: root/base/lazy_instance.h
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-08 14:47:24 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-08 14:47:24 +0000
commit3d53147822dfde54eb32ab00b36a7ceda1a7bcf1 (patch)
tree35abdd892cb1e69ae8f57a12defc5a8ce386f413 /base/lazy_instance.h
parent2e1f49096ed49419de8c740a20ab106c14ffbf44 (diff)
downloadchromium_src-3d53147822dfde54eb32ab00b36a7ceda1a7bcf1.zip
chromium_src-3d53147822dfde54eb32ab00b36a7ceda1a7bcf1.tar.gz
chromium_src-3d53147822dfde54eb32ab00b36a7ceda1a7bcf1.tar.bz2
Add a DISALLOW_COPY_AND_ASSIGN to LazyInstanceHelper.
Review URL: http://codereview.chromium.org/1811 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/lazy_instance.h')
-rw-r--r--base/lazy_instance.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index 5be41bd..33eefe8 100644
--- a/base/lazy_instance.h
+++ b/base/lazy_instance.h
@@ -72,6 +72,9 @@ class LazyInstanceHelper {
void EnsureInstance(void* instance, void (*ctor)(void*), void (*dtor)(void*));
base::subtle::Atomic32 state_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LazyInstanceHelper);
};
template <typename Type, typename Traits = DefaultLazyInstanceTraits<Type> >