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

Unified Diff: content/common/sandbox_init_win.cc

Issue 10690070: Restored missing broker initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/service_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_init_win.cc
===================================================================
--- content/common/sandbox_init_win.cc (revision 145177)
+++ content/common/sandbox_init_win.cc (working copy)
@@ -18,15 +18,20 @@
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
+ sandbox::BrokerServices* broker_services = sandbox_info->broker_services;
+ if (broker_services && (process_type.empty() ||
+ process_type == switches::kNaClBrokerProcess ||
+ process_type == switches::kServiceProcess)) {
+ if (!sandbox::InitBrokerServices(broker_services))
+ return false;
+ }
+
if (process_type.empty() || process_type == switches::kNaClBrokerProcess) {
// IMPORTANT: This piece of code needs to run as early as possible in the
// process because it will initialize the sandbox broker, which requires the
// process to swap its window station. During this time all the UI will be
Vitaly Buka (NO REVIEWS) 2012/07/03 05:01:09 Moved comment back and removed unnecessary changes
// broken. This has to run before threads and windows are created.
- sandbox::BrokerServices* broker_services = sandbox_info->broker_services;
if (broker_services) {
- if (!sandbox::InitBrokerServices(broker_services))
- return false;
if (!command_line.HasSwitch(switches::kNoSandbox)) {
bool use_winsta = !command_line.HasSwitch(
switches::kDisableAltWinstation);
« no previous file with comments | « chrome/service/service_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698