Index: content/common/sandbox_init_win.cc |
=================================================================== |
--- content/common/sandbox_init_win.cc (revision 129628) |
+++ content/common/sandbox_init_win.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -25,8 +25,7 @@ |
// 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; |
+ sandbox::InitBrokerServices(broker_services); |
if (!command_line.HasSwitch(switches::kNoSandbox)) { |
bool use_winsta = !command_line.HasSwitch( |
switches::kDisableAltWinstation); |
@@ -58,7 +57,7 @@ |
if (!target_services) |
return true; |
} |
- return sandbox::InitTargetServices(target_services); |
+ return (sandbox::SBOX_ALL_OK == target_services->Init()); |
} |
} // namespace content |