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

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 534413002: Use SetAlternateDesktop(false) for service process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Sep 4 14:14:43 PDT 2014 Created 6 years, 3 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 | « chrome/service/DEPS ('k') | 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 d649ba747bb55ff0e97f4ce2c2f18e0dae10454c..df2cf9400d0302903a1d352a863a383c99ccdc0d 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -32,6 +32,7 @@
#include "content/public/common/sandbox_init.h"
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "printing/emf_win.h"
+#include "sandbox/win/src/sandbox_policy_base.h"
namespace {
@@ -49,6 +50,13 @@ class ServiceSandboxedProcessLauncherDelegate
*exposed_dir = exposed_dir_;
}
+ virtual void PreSpawnTarget(sandbox::TargetPolicy* policy,
+ bool* success) OVERRIDE {
+ // Service process may run as windows service and it fails to create a
+ // window station.
+ policy->SetAlternateDesktop(false);
+ }
+
private:
base::FilePath exposed_dir_;
};
« no previous file with comments | « chrome/service/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698