summaryrefslogtreecommitdiffstats
path: root/base/raw_scoped_refptr_mismatch_checker.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 04:13:30 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 04:13:30 +0000
commit09d8b96b586dc972f31b6e1c72643de6ffb5ad16 (patch)
treeaae0e8d9212d4f4467c678c03c49bbef628c1303 /base/raw_scoped_refptr_mismatch_checker.h
parent492fbbb2e23f4323af17413419c7401dcbeea7ed (diff)
downloadchromium_src-09d8b96b586dc972f31b6e1c72643de6ffb5ad16.zip
chromium_src-09d8b96b586dc972f31b6e1c72643de6ffb5ad16.tar.gz
chromium_src-09d8b96b586dc972f31b6e1c72643de6ffb5ad16.tar.bz2
Revert 78649 - Finished running the experiment.
Chrome is too fast, make it slower. Test out using RefCountedThreadSafeBase for all refcounting. Will revert after I'm done testing performance implications. BUG= TEST= Review URL: http://codereview.chromium.org/6712009 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/6711057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/raw_scoped_refptr_mismatch_checker.h')
-rw-r--r--base/raw_scoped_refptr_mismatch_checker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/raw_scoped_refptr_mismatch_checker.h b/base/raw_scoped_refptr_mismatch_checker.h
index 522751a..b79cfb5 100644
--- a/base/raw_scoped_refptr_mismatch_checker.h
+++ b/base/raw_scoped_refptr_mismatch_checker.h
@@ -36,7 +36,8 @@ struct NeedsScopedRefptrButGetsRawPtr {
// raw pointer type and are convertible to a RefCounted(Base|ThreadSafeBase)
// type.
value = (is_pointer<T>::value &&
- (is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
+ (is_convertible<T, subtle::RefCountedBase*>::value ||
+ is_convertible<T, subtle::RefCountedThreadSafeBase*>::value))
};
#endif
};