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

Unified Diff: sky/shell/ui/platform_impl.cc

Issue 936883002: Connect Sky and Ganesh in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments Created 5 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 | « sky/shell/ui/platform_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sky/shell/ui/platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698