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

Unified Diff: content/utility/utility_main.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 | « content/shell/browser/shell_content_browser_client.cc ('k') | sandbox/sandbox.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility_main.cc
diff --git a/content/utility/utility_main.cc b/content/utility/utility_main.cc
index f74958cf24e54e5aadf4b05f0ba5633f3060df29..6bd656ccc59a1d5e4300b15abbef42f304d84977 100644
--- a/content/utility/utility_main.cc
+++ b/content/utility/utility_main.cc
@@ -17,7 +17,6 @@
#if defined(OS_WIN)
#include "base/rand_util.h"
-#include "sandbox/win/src/sandbox.h"
#endif
namespace content {
@@ -41,21 +40,6 @@ int UtilityMain(const MainFunctionParams& parameters) {
base::HighResolutionTimerManager hi_res_timer_manager;
-#if defined(OS_WIN)
- bool no_sandbox = parameters.command_line.HasSwitch(switches::kNoSandbox);
- if (!no_sandbox) {
- sandbox::TargetServices* target_services =
- parameters.sandbox_info->target_services;
- if (!target_services)
- return false;
- char buffer;
- // Ensure RtlGenRandom is warm before the token is lowered; otherwise,
- // base::RandBytes() will CHECK fail when v8 is initialized.
- base::RandBytes(&buffer, sizeof(buffer));
- target_services->LowerToken();
- }
-#endif
-
base::MessageLoop::current()->Run();
#if defined(LEAK_SANITIZER)
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | sandbox/sandbox.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698