Chromium Code Reviews

Unified Diff: chrome/common/set_process_title_linux.h

Issue 6002013: Move the SetProcTitle code out of base and into chrome/common. This is only... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/common/set_process_title.cc ('k') | chrome/common/set_process_title_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/set_process_title_linux.h
===================================================================
--- chrome/common/set_process_title_linux.h (revision 70263)
+++ chrome/common/set_process_title_linux.h (working copy)
@@ -2,27 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_SETPROCTITLE_LINUX_H_
-#define BASE_SETPROCTITLE_LINUX_H_
+#ifndef CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_
+#define CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Set the process title that will show in "ps" and similar tools. Takes
// printf-style format string and arguments. After calling setproctitle()
// the original main() argv[] array should not be used. By default, the
// original argv[0] is prepended to the format; this can be disabled by
// including a '-' as the first character of the format string.
+//
+// This signature and naming is to be compatible with most other Unix
+// implementations of setproctitle().
void setproctitle(const char* fmt, ...);
// Initialize state needed for setproctitle() on Linux. Pass the argv pointer
// from main() to setproctitle_init() before calling setproctitle().
void setproctitle_init(char** main_argv);
-#ifdef __cplusplus
-}
-#endif
-
-#endif // BASE_SETPROCTITLE_LINUX_H_
+#endif // CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_
« no previous file with comments | « chrome/common/set_process_title.cc ('k') | chrome/common/set_process_title_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine