Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 1638773002: Do not check result of SetAlternateDesktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_utility_process_host.cc
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index 46483ff37a428bb10d3e664e2a39f72bfd97b7fb..3ed91b49e6443bfd884a00f3a6d379d7c02336d7 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698