| Index: chrome/app/mash/mash_runner.cc
|
| diff --git a/chrome/app/mash/mash_runner.cc b/chrome/app/mash/mash_runner.cc
|
| index 78d14daa6f318860186021870f1044fe0473144a..e3c1c7334794ac989a4656479a79b2f1b63be7c5 100644
|
| --- a/chrome/app/mash/mash_runner.cc
|
| +++ b/chrome/app/mash/mash_runner.cc
|
| @@ -126,7 +126,10 @@ void MashRunner::RunChild() {
|
|
|
| void MashRunner::StartChildApp(
|
| shell::mojom::ServiceRequest service_request) {
|
| - // TODO(sky): use MessagePumpMojo.
|
| + // TODO(sad): Normally, this would be a TYPE_DEFAULT message loop. However,
|
| + // TYPE_UI is needed for mojo:ui. But it is not known whether the child app is
|
| + // going to be mojo:ui at this point. So always create a TYPE_UI message loop
|
| + // for now.
|
| base::MessageLoop message_loop(base::MessageLoop::TYPE_UI);
|
| service_.reset(new mash::MashPackagedService);
|
| service_->set_context(base::MakeUnique<shell::ServiceContext>(
|
| @@ -148,7 +151,6 @@ int MashMain() {
|
| true, // Timestamp
|
| true); // Tick count
|
|
|
| - // TODO(sky): use MessagePumpMojo.
|
| std::unique_ptr<base::MessageLoop> message_loop;
|
| #if defined(OS_LINUX)
|
| base::AtExitManager exit_manager;
|
|
|