Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / common / sandbox_init_mac.cc
index d6f2112..6095179 100644 (file)
@@ -31,7 +31,8 @@ bool GetSandboxTypeFromCommandLine(int* sandbox_type,
   *sandbox_type = -1;
   *allowed_dir = base::FilePath();  // Empty by default.
 
-  const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+  const base::CommandLine& command_line =
+      *base::CommandLine::ForCurrentProcess();
   if (command_line.HasSwitch(switches::kNoSandbox))
     return false;
 
@@ -47,9 +48,6 @@ bool GetSandboxTypeFromCommandLine(int* sandbox_type,
     *sandbox_type = SANDBOX_TYPE_UTILITY;
     *allowed_dir =
         command_line.GetSwitchValuePath(switches::kUtilityProcessAllowedDir);
-  } else if (process_type == switches::kWorkerProcess) {
-    // Worker process sandbox.
-    *sandbox_type = SANDBOX_TYPE_WORKER;
   } else if (process_type == switches::kGpuProcess) {
     if (command_line.HasSwitch(switches::kDisableGpuSandbox))
       return false;