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

Side by Side Diff: mojo/system/android/javatests/core_test.cc

Issue 228723002: Java API for mojo system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 "mojo/system/android/javatests/core_test.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/scoped_java_ref.h"
9 #include "jni/CoreTest_jni.h"
10
11 namespace mojo {
12 namespace android {
13
14 static void InitApplicationContext(JNIEnv* env,
15 jobject jcaller,
16 jobject context) {
17 base::android::ScopedJavaLocalRef<jobject> scoped_context(
18 env, env->NewLocalRef(context));
bulach 2014/04/17 13:15:42 nit: I suppose just context, without NewLocalRef,
qsr 2014/04/17 13:50:24 Done.
19 base::android::InitApplicationContext(env, scoped_context);
20 }
21
22 bool RegisterCoreTest(JNIEnv* env) {
23 return RegisterNativesImpl(env);
24 }
25
26 } // namespace android
27 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698