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

Unified Diff: services/shell/standalone/desktop/launcher_process.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/standalone/desktop/launcher_process.h ('k') | services/shell/standalone/desktop/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/standalone/desktop/launcher_process.cc
diff --git a/services/shell/standalone/desktop/launcher_process.cc b/services/shell/standalone/desktop/launcher_process.cc
deleted file mode 100644
index b2fcdd5a0bb48446090cbc4d7538cc51cc4ab48a..0000000000000000000000000000000000000000
--- a/services/shell/standalone/desktop/launcher_process.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2013 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 <stdio.h>
-#include <string.h>
-
-#include <iostream>
-
-#include "base/base_switches.h"
-#include "base/bind.h"
-#include "base/command_line.h"
-#include "base/debug/stack_trace.h"
-#include "base/files/file_util.h"
-#include "base/i18n/icu_util.h"
-#include "base/message_loop/message_loop.h"
-#include "base/path_service.h"
-#include "base/run_loop.h"
-#include "base/single_thread_task_runner.h"
-#include "base/synchronization/waitable_event.h"
-#include "base/threading/platform_thread.h"
-#include "services/shell/standalone/context.h"
-#include "services/shell/switches.h"
-
-namespace shell {
-
-int LauncherProcessMain() {
-#if !defined(OFFICIAL_BUILD)
- base::debug::EnableInProcessStackDumping();
-#endif
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- // http://crbug.com/546644
- command_line->AppendSwitch(switches::kNoSandbox);
-
- base::PlatformThread::SetName("mojo_runner");
-
- // We want the Context to outlive the MessageLoop so that pipes are all
- // gracefully closed / error-out before we try to shut the Context down.
- Context shell_context;
- {
- base::MessageLoop message_loop;
- CHECK(base::i18n::InitializeICU());
- shell_context.Init(nullptr);
-
- message_loop.task_runner()->PostTask(
- FROM_HERE, base::Bind(&Context::RunCommandLineApplication,
- base::Unretained(&shell_context)));
-
- base::RunLoop().Run();
-
- // Must be called before |message_loop| is destroyed.
- shell_context.Shutdown();
- }
-
- return 0;
-}
-
-} // namespace shell
« no previous file with comments | « services/shell/standalone/desktop/launcher_process.h ('k') | services/shell/standalone/desktop/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698