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

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

Issue 959773005: Share sky::PlatformImpl bettween sky_viewer and SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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') | sky/viewer/BUILD.gn » ('j') | 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
deleted file mode 100644
index 6701555469ecdf174f6937b95a1b175369d146d3..0000000000000000000000000000000000000000
--- a/sky/shell/ui/platform_impl.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/shell/ui/platform_impl.h"
-
-#include "mojo/public/cpp/application/connect.h"
-
-namespace sky {
-namespace shell {
-
-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() {
-}
-
-blink::WebString PlatformImpl::defaultLocale() {
- return blink::WebString::fromUTF8("en-US");
-}
-
-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') | sky/viewer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698