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

Unified Diff: content/common/sandbox_policy.cc

Issue 8400024: Add TestConnectFailure, TestGetHandleFailure and TestConnectAndPipe to PPAPI Broker UI test. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add !! before ::DeleteFile since BOOL is not bool. Created 9 years, 1 month 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_mac.cc ('k') | ppapi/tests/test_broker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_policy.cc
diff --git a/content/common/sandbox_policy.cc b/content/common/sandbox_policy.cc
index 1153a30c4b387aa0f266bf27a2460323f8e9bc1b..3d839a7f172d66538ade44cee5132c2380108f8a 100644
--- a/content/common/sandbox_policy.cc
+++ b/content/common/sandbox_policy.cc
@@ -402,6 +402,8 @@ base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line,
type = ChildProcessInfo::GPU_PROCESS;
} else if (type_str == switches::kPpapiPluginProcess) {
type = ChildProcessInfo::PPAPI_PLUGIN_PROCESS;
+ } else if (type_str == switches::kPpapiBrokerProcess) {
+ type = ChildProcessInfo::PPAPI_BROKER_PROCESS;
} else {
NOTREACHED();
return 0;
@@ -414,7 +416,8 @@ base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line,
// process are sandboxed by default.
bool in_sandbox =
(type != ChildProcessInfo::NACL_BROKER_PROCESS) &&
- (type != ChildProcessInfo::PLUGIN_PROCESS);
+ (type != ChildProcessInfo::PLUGIN_PROCESS) &&
+ (type != ChildProcessInfo::PPAPI_BROKER_PROCESS);
// If it is the GPU process then it can be disabled by a command line flag.
if ((type == ChildProcessInfo::GPU_PROCESS) &&
« no previous file with comments | « content/common/sandbox_init_mac.cc ('k') | ppapi/tests/test_broker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698