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

Unified Diff: components/nacl/loader/nacl_main_platform_delegate_win.cc

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 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 | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/nacl/renderer/manifest_service_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_main_platform_delegate_win.cc
diff --git a/components/nacl/loader/nacl_main_platform_delegate_win.cc b/components/nacl/loader/nacl_main_platform_delegate_win.cc
index c0caa5e2c2d2c5295572de8d7306dd063280b4c9..45219fe140d53267c9345dc05df7c37909fde11c 100644
--- a/components/nacl/loader/nacl_main_platform_delegate_win.cc
+++ b/components/nacl/loader/nacl_main_platform_delegate_win.cc
@@ -6,18 +6,7 @@
#include "base/logging.h"
#include "content/public/common/main_function_params.h"
-#include "sandbox/win/src/sandbox.h"
void NaClMainPlatformDelegate::EnableSandbox(
const content::MainFunctionParams& parameters) {
- sandbox::TargetServices* target_services =
- parameters.sandbox_info->target_services;
-
- CHECK(target_services) << "NaCl-Win EnableSandbox: No Target Services!";
- // Cause advapi32 to load before the sandbox is turned on.
- unsigned int dummy_rand;
- rand_s(&dummy_rand);
-
- // Turn the sandbox on.
- target_services->LowerToken();
}
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/nacl/renderer/manifest_service_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698