| Index: sky/shell/ui/platform_impl.cc
|
| diff --git a/sky/shell/ui/platform_impl.cc b/sky/shell/ui/platform_impl.cc
|
| index dca0039fd3c9ae519dad810816db5f92768d19c4..6701555469ecdf174f6937b95a1b175369d146d3 100644
|
| --- a/sky/shell/ui/platform_impl.cc
|
| +++ b/sky/shell/ui/platform_impl.cc
|
| @@ -4,11 +4,15 @@
|
|
|
| #include "sky/shell/ui/platform_impl.h"
|
|
|
| +#include "mojo/public/cpp/application/connect.h"
|
| +
|
| namespace sky {
|
| namespace shell {
|
|
|
| -PlatformImpl::PlatformImpl()
|
| - : main_thread_task_runner_(base::MessageLoop::current()->task_runner()) {
|
| +PlatformImpl::PlatformImpl(mojo::ServiceProviderPtr service_provider)
|
| + : main_thread_task_runner_(base::MessageLoop::current()->task_runner()),
|
| + service_provider_(service_provider.Pass()) {
|
| + mojo::ConnectToService(service_provider_.get(), &network_service_);
|
| }
|
|
|
| PlatformImpl::~PlatformImpl() {
|
| @@ -22,5 +26,9 @@ base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() {
|
| return main_thread_task_runner_.get();
|
| }
|
|
|
| +mojo::NetworkService* PlatformImpl::networkService() {
|
| + return network_service_.get();
|
| +}
|
| +
|
| } // namespace shell
|
| } // namespace sky
|
|
|