| 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 fbdf202a436d80065bec9550f56270c62ad055c4..36392aa413fb20696c59c04d115d989dca979a83 100644
|
| --- a/chrome/service/service_utility_process_host.cc
|
| +++ b/chrome/service/service_utility_process_host.cc
|
| @@ -26,7 +26,8 @@
|
| #include "content/public/common/sandboxed_process_launcher_delegate.h"
|
| #include "ipc/ipc_switches.h"
|
| #include "printing/emf_win.h"
|
| -#include "sandbox/win/src/sandbox_policy_base.h"
|
| +#include "sandbox/win/src/sandbox_policy.h"
|
| +#include "sandbox/win/src/sandbox_types.h"
|
| #include "ui/base/ui_base_switches.h"
|
|
|
| namespace {
|
| @@ -61,10 +62,10 @@ class ServiceSandboxedProcessLauncherDelegate
|
| public:
|
| ServiceSandboxedProcessLauncherDelegate() {}
|
|
|
| - void PreSpawnTarget(sandbox::TargetPolicy* policy, bool* success) override {
|
| + bool PreSpawnTarget(sandbox::TargetPolicy* policy) override {
|
| // Service process may run as windows service and it fails to create a
|
| // window station.
|
| - policy->SetAlternateDesktop(false);
|
| + return policy->SetAlternateDesktop(false) == sandbox::SBOX_ALL_OK;
|
| }
|
|
|
| private:
|
|
|