| Index: mojo/shell/runner/host/in_process_native_runner.cc
|
| diff --git a/mojo/shell/runner/host/in_process_native_runner.cc b/mojo/shell/runner/host/in_process_native_runner.cc
|
| index 9dd19d0edf39217553530cc669c031872b577919..6a9c47e5006e8ae4b0c2d8a345b56fcac633dd6d 100644
|
| --- a/mojo/shell/runner/host/in_process_native_runner.cc
|
| +++ b/mojo/shell/runner/host/in_process_native_runner.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/bind.h"
|
| #include "base/callback_helpers.h"
|
| #include "base/location.h"
|
| +#include "base/strings/sys_string_conversions.h"
|
| #include "base/task_runner.h"
|
| #include "base/thread_task_runner_handle.h"
|
| #include "base/threading/platform_thread.h"
|
| @@ -50,7 +51,10 @@ void InProcessNativeRunner::Start(
|
| FROM_HERE, app_completed_callback);
|
|
|
| DCHECK(!thread_);
|
| - thread_.reset(new base::DelegateSimpleThread(this, "app_thread"));
|
| + std::string thread_name = base::SysWideToUTF8(app_path_.BaseName().value());
|
| + if (thread_name.empty())
|
| + thread_name = "mojo:app_thread";
|
| + thread_.reset(new base::DelegateSimpleThread(this, thread_name));
|
| thread_->Start();
|
| pid_available_callback.Run(base::kNullProcessId);
|
| }
|
|
|