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

Unified Diff: mojo/shell/runner/host/in_process_native_runner.cc

Issue 1736663003: Eliminate Quit() from Shell, and roll Shell & Connector together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@14cf
Patch Set: . Created 4 years, 10 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: 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);
}
« mojo/shell/public/cpp/lib/shell_connection.cc ('K') | « mojo/shell/runner/child/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698