Commit 413e0b00 authored by vitalybuka's avatar vitalybuka Committed by Commit bot

Do not check result of SetAlternateDesktop

Fixed regression introduced by
https://codereview.chromium.org/1415483008
Seems comment nearby was not noticed.

BUG=581134

Review URL: https://codereview.chromium.org/1638773002

Cr-Commit-Position: refs/heads/master@{#371533}
parent 1f3cc04a
......@@ -67,9 +67,10 @@ class ServiceSandboxedProcessLauncherDelegate
ServiceSandboxedProcessLauncherDelegate() {}
bool PreSpawnTarget(sandbox::TargetPolicy* policy) override {
// Service process may run as windows service and it fails to create a
// window station.
return policy->SetAlternateDesktop(false) == sandbox::SBOX_ALL_OK;
// Ignore result of SetAlternateDesktop. Service process may run as windows
// service and it fails to create a window station.
base::IgnoreResult(policy->SetAlternateDesktop(false));
return true;
}
private:
......
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