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

Unified Diff: services/service_manager/embedder/set_process_title.cc

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 years, 9 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/embedder/set_process_title.cc
diff --git a/content/common/set_process_title.cc b/services/service_manager/embedder/set_process_title.cc
similarity index 93%
rename from content/common/set_process_title.cc
rename to services/service_manager/embedder/set_process_title.cc
index 21185989f2ffb08a93aebeffa56a61bef5cceb3e..80b9a0ab2ffcb55f23a6bff0d80e13ab66353116 100644
--- a/content/common/set_process_title.cc
+++ b/services/service_manager/embedder/set_process_title.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/set_process_title.h"
+#include "services/service_manager/embedder/set_process_title.h"
#include <stddef.h>
@@ -27,14 +27,14 @@
#include "base/strings/string_util.h"
#include "base/threading/platform_thread.h"
// Linux/glibc doesn't natively have setproctitle().
-#include "content/common/set_process_title_linux.h"
+#include "services/service_manager/embedder/set_process_title_linux.h"
#endif // defined(OS_LINUX)
-namespace content {
+namespace service_manager {
// TODO(jrg): Find out if setproctitle or equivalent is available on Android.
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_SOLARIS) && \
- !defined(OS_ANDROID)
+ !defined(OS_ANDROID)
void SetProcessTitleFromCommandLine(const char** main_argv) {
// Build a single string which consists of all the arguments separated
@@ -87,9 +87,8 @@ void SetProcessTitleFromCommandLine(const char** main_argv) {
// All other systems (basically Windows & Mac) have no need or way to implement
// this function.
-void SetProcessTitleFromCommandLine(const char** /* main_argv */) {
-}
+void SetProcessTitleFromCommandLine(const char** /* main_argv */) {}
#endif
-} // namespace content
+} // namespace service_manager
« no previous file with comments | « services/service_manager/embedder/set_process_title.h ('k') | services/service_manager/embedder/set_process_title_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698