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

Unified Diff: services/service_manager/background/background_shell_main.cc

Issue 2427443002: Replace remaining shell references with service manager (Closed)
Patch Set: 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
Index: services/service_manager/background/background_shell_main.cc
diff --git a/services/service_manager/background/background_shell_main.cc b/services/service_manager/background/background_shell_main.cc
deleted file mode 100644
index 1f4590dd45f1fadc166064b1053dd7e1c6988dbd..0000000000000000000000000000000000000000
--- a/services/service_manager/background/background_shell_main.cc
+++ /dev/null
@@ -1,41 +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/background/background_shell_main.h"
-
-#include "base/at_exit.h"
-#include "base/command_line.h"
-#include "base/debug/debugger.h"
-#include "base/process/launch.h"
-#include "services/service_manager/runner/common/switches.h"
-#include "services/service_manager/runner/host/child_process.h"
-#include "services/service_manager/runner/init.h"
-
-namespace service_manager {
-namespace {
-
-int RunChildProcess() {
- base::AtExitManager at_exit;
- InitializeLogging();
- WaitForDebuggerIfNecessary();
-#if !defined(OFFICIAL_BUILD) && defined(OS_WIN)
- base::RouteStdioToConsole(false);
-#endif
- return ChildProcessMain();
-}
-
-} // namespace
-} // namespace service_manager
-
-int main(int argc, char** argv) {
- base::CommandLine::Init(argc, argv);
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kChildProcess)) {
- return service_manager::RunChildProcess();
- }
- // Reset CommandLine as most likely main() is going to use CommandLine too
- // and expect to be able to initialize it.
- base::CommandLine::Reset();
- return MasterProcessMain(argc, argv);
-}
« no previous file with comments | « services/service_manager/background/background_shell_main.h ('k') | services/service_manager/background/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698