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

Unified Diff: services/shell/runner/host/mach_broker.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 | « services/shell/runner/host/mach_broker.h ('k') | services/shell/runner/host/native_library_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/runner/host/mach_broker.cc
diff --git a/services/shell/runner/host/mach_broker.cc b/services/shell/runner/host/mach_broker.cc
deleted file mode 100644
index 7f1cd45fa0d808579f9db040dbf13e8f21506e57..0000000000000000000000000000000000000000
--- a/services/shell/runner/host/mach_broker.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2016 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 "services/shell/runner/host/mach_broker.h"
-
-#include "base/logging.h"
-#include "base/memory/singleton.h"
-
-namespace shell {
-
-namespace {
-const char kBootstrapPortName[] = "mojo_shell";
-}
-
-// static
-void MachBroker::SendTaskPortToParent() {
- bool result = base::MachPortBroker::ChildSendTaskPortToParent(
- kBootstrapPortName);
- DCHECK(result);
-}
-
-// static
-MachBroker* MachBroker::GetInstance() {
- return base::Singleton<MachBroker>::get();
-}
-
-MachBroker::MachBroker() : broker_(kBootstrapPortName) {
- bool result = broker_.Init();
- DCHECK(result);
-}
-
-MachBroker::~MachBroker() {}
-
-void MachBroker::ExpectPid(base::ProcessHandle pid) {
- broker_.AddPlaceholderForPid(pid);
-}
-
-void MachBroker::RemovePid(base::ProcessHandle pid) {
- broker_.InvalidatePid(pid);
-}
-
-} // namespace shell
« no previous file with comments | « services/shell/runner/host/mach_broker.h ('k') | services/shell/runner/host/native_library_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698