diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc index b34e14d8f2e93..21aedee5d037b 100644 --- a/content/app/content_main_runner.cc +++ b/content/app/content_main_runner.cc @@ -751,7 +751,12 @@ class ContentMainRunnerImpl : public ContentMainRunner { if (delegate) delegate->SandboxInitialized(process_type); -#if defined(OS_POSIX) && !defined(OS_IOS) && !defined(OS_TIZEN_MOBILE) +#if defined(OS_TIZEN_MOBILE) + if (process_type.empty()) + StoreArgvPointerAddress(argv); + else + SetProcessTitleFromCommandLine(argv); +#elif defined(OS_POSIX) && !defined(OS_IOS) SetProcessTitleFromCommandLine(argv); #endif diff --git a/content/common/set_process_title.cc b/content/common/set_process_title.cc index 6fde51bd6cbb9..ae455886e24fe 100644 --- a/content/common/set_process_title.cc +++ b/content/common/set_process_title.cc @@ -87,4 +87,10 @@ void SetProcessTitleFromCommandLine(const char** /* main_argv */) { #endif +#if defined(OS_TIZEN_MOBILE) +void StoreArgvPointerAddress(const char** main_argv) { + setproctitle_init(main_argv); +} +#endif + } // namespace content diff --git a/content/common/set_process_title.h b/content/common/set_process_title.h index 91ea61a89a1a5..d53c6ef09d831 100644 --- a/content/common/set_process_title.h +++ b/content/common/set_process_title.h @@ -22,6 +22,10 @@ namespace content { // will try to fix it so the "effective" command line shows up instead. void SetProcessTitleFromCommandLine(const char** main_argv); +#if defined(OS_TIZEN_MOBILE) +void StoreArgvPointerAddress(const char** main_argv); +#endif + } // namespace content #endif // CONTENT_COMMON_SET_PROCESS_TITLE_H_