| Index: base/memory/ref_counted.cc
|
| diff --git a/base/memory/ref_counted.cc b/base/memory/ref_counted.cc
|
| index f5924d0fe76e44672ca24372f93b40d418f46b62..679cbceab13b3a7faae2d86699d81c85b7649c4b 100644
|
| --- a/base/memory/ref_counted.cc
|
| +++ b/base/memory/ref_counted.cc
|
| @@ -51,3 +51,15 @@ bool RefCountedThreadSafeBase::Release() const {
|
| } // namespace subtle
|
|
|
| } // namespace base
|
| +
|
| +scoped_refptr<ThreadUnsafe> get_thread_unsafe() {
|
| + static scoped_refptr<ThreadUnsafe>* g_thread_unsafe =
|
| + new scoped_refptr<ThreadUnsafe>(new ThreadUnsafe());
|
| + return *g_thread_unsafe;
|
| +}
|
| +
|
| +scoped_refptr<ThreadSafe> get_thread_safe() {
|
| + static scoped_refptr<ThreadSafe>* g_thread_safe =
|
| + new scoped_refptr<ThreadSafe>(new ThreadSafe());
|
| + return *g_thread_safe;
|
| +}
|
|
|