| Index: base/win/scoped_com_initializer.h
|
| diff --git a/base/win/scoped_com_initializer.h b/base/win/scoped_com_initializer.h
|
| index f0ea0ec565199f450aacbfa9c9d060a44b4a006d..48388fae2e75f6e99fa45078c61a887111bf38ca 100644
|
| --- a/base/win/scoped_com_initializer.h
|
| +++ b/base/win/scoped_com_initializer.h
|
| @@ -50,6 +50,19 @@ class ScopedCOMInitializer {
|
| thread_id_ = GetCurrentThreadId();
|
| #endif
|
| hr_ = CoInitializeEx(NULL, init);
|
| +#ifndef NDEBUG
|
| + switch (hr_) {
|
| + case S_FALSE:
|
| + LOG(ERROR) << "Multiple CoInitialize() called for thread "
|
| + << thread_id_;
|
| + break;
|
| + case RPC_E_CHANGED_MODE:
|
| + DCHECK(false) << "Invalid COM thread model change";
|
| + break;
|
| + default:
|
| + break;
|
| + }
|
| +#endif
|
| }
|
|
|
| HRESULT hr_;
|
|
|