/** Sets service class for sandboxed service and privileged service. */
 public static void setChildProcessClass(
     Class<? extends SandboxedProcessService> sandboxedServiceClass,
     Class<? extends PrivilegedProcessService> privilegedServiceClass) {
   // We should guarantee this is called before allocating connection.
   assert !sConnectionAllocated;
   sSandboxedChildConnectionAllocator.setServiceClass(sandboxedServiceClass);
   sPrivilegedChildConnectionAllocator.setServiceClass(privilegedServiceClass);
 }
 /** @return the count of sandboxed connections managed by the allocator */
 @VisibleForTesting
 static int allocatedConnectionsCountForTesting(Context context) {
   initConnectionAllocatorsIfNecessary(context);
   return sSandboxedChildConnectionAllocator.allocatedConnectionsCountForTesting();
 }
 /** @return the count of sandboxed connections managed by the allocator */
 @VisibleForTesting
 static int allocatedConnectionsCountForTesting() {
   return sSandboxedChildConnectionAllocator.allocatedConnectionsCountForTesting();
 }