Chromium Code Reviews| Index: base/threading/sequenced_worker_pool.cc |
| =================================================================== |
| --- base/threading/sequenced_worker_pool.cc (revision 264688) |
| +++ base/threading/sequenced_worker_pool.cc (working copy) |
| @@ -32,6 +32,8 @@ |
| #if defined(OS_MACOSX) |
| #include "base/mac/scoped_nsautorelease_pool.h" |
| +#elif defined(OS_WIN) |
| +#include "base/win/scoped_com_initializer.h" |
| #endif |
| #if !defined(OS_NACL) |
| @@ -491,6 +493,11 @@ |
| } |
| void SequencedWorkerPool::Worker::Run() { |
| +#if defined(OS_WIN) |
| + scoped_ptr<win::ScopedCOMInitializer> com_initializer( |
|
darin (slow to review)
2014/04/19 04:49:07
nit: why heap allocate? why bother with |new| and
Peter Kasting
2014/04/21 20:38:37
Probably because I was copying code from elsewhere
|
| + new win::ScopedCOMInitializer()); |
| +#endif |
| + |
| // Store a pointer to the running sequence in thread local storage for |
| // static function access. |
| g_lazy_tls_ptr.Get().Set(&running_sequence_); |