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

Side by Side Diff: sky/shell/java_service_provider.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 unified diff | Download patch
« no previous file with comments | « sky/shell/java_service_provider.h ('k') | sky/shell/library_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "sky/shell/java_service_provider.h"
6
7 #include "jni/JavaServiceProvider_jni.h"
8
9 namespace sky {
10 namespace shell {
11
12 bool RegisterJavaServiceProvider(JNIEnv* env) {
13 return RegisterNativesImpl(env);
14 }
15
16 mojo::ScopedMessagePipeHandle CreateJavaServiceProvider() {
17 JNIEnv* env = base::android::AttachCurrentThread();
18 return mojo::ScopedMessagePipeHandle(
19 mojo::MessagePipeHandle(Java_JavaServiceProvider_create(env)));
20 }
21
22 } // namespace shell
23 } // namespace sky
OLDNEW
« no previous file with comments | « sky/shell/java_service_provider.h ('k') | sky/shell/library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698