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

Unified Diff: content/common/sandbox_init_win.cc

Issue 9924010: Revert 129627 - Add a sandbox API for broker handle duplication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « content/browser/browser_main_loop.cc ('k') | content/common/sandbox_policy.h » ('j') | 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 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/common/sandbox_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698