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

Unified Diff: services/service_manager/public/cpp/standalone_service/mach_broker.cc

Issue 2566663004: Revert of Build services as standalone executables (Closed)
Patch Set: Created 4 years 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
Index: services/service_manager/public/cpp/standalone_service/mach_broker.cc
diff --git a/services/service_manager/public/cpp/standalone_service/mach_broker.cc b/services/service_manager/public/cpp/standalone_service/mach_broker.cc
deleted file mode 100644
index 8f8c6708dce0a6addfe2f3f8e525cd6dcf061156..0000000000000000000000000000000000000000
--- a/services/service_manager/public/cpp/standalone_service/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/service_manager/public/cpp/standalone_service/mach_broker.h"
-
-#include "base/logging.h"
-#include "base/memory/singleton.h"
-
-namespace service_manager {
-
-namespace {
-const char kBootstrapPortName[] = "mojo_service_manager";
-}
-
-// 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 service_manager

Powered by Google App Engine
This is Rietveld 408576698