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

Unified Diff: content/common/sandbox_util.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/common/sandbox_init_win.cc ('k') | content/common/sandbox_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_util.cc
diff --git a/content/common/sandbox_util.cc b/content/common/sandbox_util.cc
index eea8486ca1d52506265812eda4eb5ddec4841cc4..1d954536a0096726c58ee2384bc1a7e1e0a4be22 100644
--- a/content/common/sandbox_util.cc
+++ b/content/common/sandbox_util.cc
@@ -7,6 +7,10 @@
#include "build/build_config.h"
#include "content/public/common/sandbox_init.h"
+#if defined(OS_WIN)
+#include "content/common/sandbox_win.h"
+#endif
+
#if defined(OS_POSIX)
#include <unistd.h>
#endif
@@ -23,8 +27,7 @@ IPC::PlatformFileForTransit BrokerGetFileHandleForProcess(
if (should_close_source)
options |= DUPLICATE_CLOSE_SOURCE;
HANDLE raw_handle = INVALID_HANDLE_VALUE;
- if (content::BrokerDuplicateHandle(handle, target_process_id, &raw_handle, 0,
- options)) {
+ if (BrokerDuplicateHandle(handle, target_process_id, &raw_handle, 0, options)) {
out_handle = IPC::PlatformFileForTransit(raw_handle, target_process_id);
} else {
out_handle = IPC::InvalidPlatformFileForTransit();
« no previous file with comments | « content/common/sandbox_init_win.cc ('k') | content/common/sandbox_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698