blob: ed1262ba219d26bf9e7e6cf9aa2b23de248a3489 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/service_process/service_process_control.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/mac/foundation_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/task/post_task.h"
#include "chrome/common/service_process_util_posix.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
using content::BrowserThread;
void ServiceProcessControl::Launcher::DoRun() {
launched_ = mac::services::SubmitJob(
GetServiceProcessJobOptions(cmd_line_.get(), false));
base::PostTask(FROM_HERE, {BrowserThread::UI},
base::BindOnce(&Launcher::Notify, this));
}