| Index: sky/viewer/viewer.cc
|
| diff --git a/sky/viewer/viewer.cc b/sky/viewer/viewer.cc
|
| index 192c83a48e4f82354d92ad07931a8b12ce05bfb9..61c92daf9a4f907f1bc2e2f29831b8efaec195a2 100644
|
| --- a/sky/viewer/viewer.cc
|
| +++ b/sky/viewer/viewer.cc
|
| @@ -15,9 +15,9 @@
|
| #include "mojo/public/cpp/application/interface_factory_impl.h"
|
| #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.h"
|
| #include "sky/engine/public/web/Sky.h"
|
| +#include "sky/services/platform/platform_impl.h"
|
| #include "sky/viewer/content_handler_impl.h"
|
| #include "sky/viewer/document_view.h"
|
| -#include "sky/viewer/platform/platform_impl.h"
|
| #include "sky/viewer/runtime_flags.h"
|
|
|
| namespace sky {
|
| @@ -34,7 +34,9 @@ class Viewer : public mojo::ApplicationDelegate,
|
| virtual void Initialize(mojo::ApplicationImpl* app) override {
|
| RuntimeFlags::Initialize(app);
|
|
|
| - platform_impl_.reset(new PlatformImpl(app));
|
| + mojo::NetworkServicePtr network_service;
|
| + app->ConnectToService("mojo:network_service", &network_service);
|
| + platform_impl_.reset(new PlatformImpl(network_service.Pass()));
|
| blink::initialize(platform_impl_.get());
|
|
|
| mojo::icu::Initialize(app);
|
|
|