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

Unified Diff: content/common/mojo/static_application_loader.cc

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
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
« no previous file with comments | « content/common/mojo/static_application_loader.h ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/static_application_loader.cc
diff --git a/content/common/mojo/static_application_loader.cc b/content/common/mojo/static_application_loader.cc
index 263236c48258616b190d2daceecbb8157aca2438..b4011b0842560f493f75186b0c48f30d23bad2de 100644
--- a/content/common/mojo/static_application_loader.cc
+++ b/content/common/mojo/static_application_loader.cc
@@ -23,12 +23,12 @@ namespace {
class RunnerThread : public base::SimpleThread {
public:
- RunnerThread(const GURL& url,
+ RunnerThread(const std::string& name,
mojo::shell::mojom::ShellClientRequest request,
scoped_refptr<base::TaskRunner> exit_task_runner,
const base::Closure& exit_callback,
const StaticApplicationLoader::ApplicationFactory& factory)
- : base::SimpleThread("Mojo Application: " + url.spec()),
+ : base::SimpleThread("Mojo Application: " + name),
request_(std::move(request)),
exit_task_runner_(exit_task_runner),
exit_callback_(exit_callback),
@@ -70,7 +70,7 @@ StaticApplicationLoader::~StaticApplicationLoader() {
}
void StaticApplicationLoader::Load(
- const GURL& url,
+ const std::string& name,
mojo::shell::mojom::ShellClientRequest request) {
if (thread_)
return;
@@ -80,7 +80,7 @@ void StaticApplicationLoader::Load(
// with a new app instance.
auto exit_callback = base::Bind(&StaticApplicationLoader::StopAppThread,
weak_factory_.GetWeakPtr());
- thread_.reset(new RunnerThread(url, std::move(request),
+ thread_.reset(new RunnerThread(name, std::move(request),
base::ThreadTaskRunnerHandle::Get(),
exit_callback, factory_));
thread_->Start();
« no previous file with comments | « content/common/mojo/static_application_loader.h ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698