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

Side by Side Diff: content/common/android/hash_set.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <jni.h> 5 #include <jni.h>
6 6
7 #include "base/android/scoped_java_ref.h" 7 #include "base/android/scoped_java_ref.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 bool RegisterHashSet(JNIEnv* env);
12
13 void JNI_Java_HashSet_add(JNIEnv* env, 11 void JNI_Java_HashSet_add(JNIEnv* env,
14 const base::android::JavaRef<jobject>& hash_set, 12 const base::android::JavaRef<jobject>& hash_set,
15 const base::android::JavaRef<jobject>& object); 13 const base::android::JavaRef<jobject>& object);
16 14
17 void JNI_Java_HashSet_remove(JNIEnv* env, 15 void JNI_Java_HashSet_remove(JNIEnv* env,
18 const base::android::JavaRef<jobject>& hash_set, 16 const base::android::JavaRef<jobject>& hash_set,
19 const base::android::JavaRef<jobject>& object); 17 const base::android::JavaRef<jobject>& object);
20 18
21 void JNI_Java_HashSet_clear(JNIEnv* env, 19 void JNI_Java_HashSet_clear(JNIEnv* env,
22 const base::android::JavaRef<jobject>& hash_set); 20 const base::android::JavaRef<jobject>& hash_set);
23 21
24 } // namespace content 22 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698