Commit 641afb48 authored by Robert Liao's avatar Robert Liao Committed by Commit Bot

Add a COM STA Notice to base_shell_dialog_win.cc

Fallout from
https://chromium-review.googlesource.com/c/chromium/src/+/922662

BUG=

Change-Id: Ie77cfd226cc0af218068405190936348907c93cd
Reviewed-on: https://chromium-review.googlesource.com/952103Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Robert Liao <robliao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541259}
parent 1f664a93
...@@ -64,6 +64,7 @@ void BaseShellDialogImpl::DisableOwner(HWND owner) { ...@@ -64,6 +64,7 @@ void BaseShellDialogImpl::DisableOwner(HWND owner) {
// static // static
base::Thread* BaseShellDialogImpl::CreateDialogThread() { base::Thread* BaseShellDialogImpl::CreateDialogThread() {
base::Thread* thread = new base::Thread("Chrome_ShellDialogThread"); base::Thread* thread = new base::Thread("Chrome_ShellDialogThread");
// Many shell dialogs require a COM Single-Threaded Apartment (STA) to run.
thread->init_com_with_mta(false); thread->init_com_with_mta(false);
bool started = thread->Start(); bool started = thread->Start();
DCHECK(started); DCHECK(started);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment