Skip to content

Commit

Permalink
updater: change message type of task executor for the COM service.
Browse files Browse the repository at this point in the history
Fixed: 1476235

Change-Id: Ie0137053bac5ded01f445f36e6fa843e494e8bed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4815190
Reviewed-by: S Ganesh <ganesh@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: S Ganesh <ganesh@chromium.org>
Auto-Submit: Sorin Jianu <sorin@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1188709}
  • Loading branch information
sorinj authored and Chromium LUCI CQ committed Aug 26, 2023
1 parent 6d20114 commit 9915d9c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions chrome/updater/app/server/win/service_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,17 @@ HRESULT ServiceMain::Run(const base::CommandLine& command_line) {

HRESULT ServiceMain::RunCOMServer() {
base::SingleThreadTaskExecutor service_task_executor(
base::MessagePumpType::UI);

// Initialize COM for the current thread.
base::MessagePumpType::DEFAULT);
base::win::ScopedCOMInitializer com_initializer(
base::win::ScopedCOMInitializer::kMTA);
if (!com_initializer.Succeeded()) {
LOG(ERROR) << "Failed to initialize COM";
return CO_E_INITIALIZATIONFAILED;
}

HRESULT hr = InitializeComSecurity();
if (FAILED(hr)) {
return hr;
}

return GetAppServerWinInstance()->Run();
}

Expand Down

0 comments on commit 9915d9c

Please sign in to comment.