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

Side by Side Diff: android_webview/native/aw_resource.cc

Issue 2202783002: android_webview: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: android_webview: Remove unneeded RegisterNatives() calls 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "android_webview/native/aw_resource.h" 5 #include "android_webview/common/aw_resource.h"
6 6
7 #include "base/android/jni_array.h" 7 #include "base/android/jni_array.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "jni/AwResource_jni.h" 10 #include "jni/AwResource_jni.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 namespace AwResource { 13 namespace AwResource {
14 14
15 std::vector<std::string> GetConfigKeySystemUuidMapping() { 15 std::vector<std::string> GetConfigKeySystemUuidMapping() {
16 JNIEnv* env = base::android::AttachCurrentThread(); 16 JNIEnv* env = base::android::AttachCurrentThread();
17 std::vector<std::string> key_system_uuid_mappings; 17 std::vector<std::string> key_system_uuid_mappings;
18 ScopedJavaLocalRef<jobjectArray> mappings = 18 ScopedJavaLocalRef<jobjectArray> mappings =
19 Java_AwResource_getConfigKeySystemUuidMapping(env); 19 Java_AwResource_getConfigKeySystemUuidMapping(env);
20 base::android::AppendJavaStringArrayToStringVector(env, mappings.obj(), 20 base::android::AppendJavaStringArrayToStringVector(env, mappings.obj(),
21 &key_system_uuid_mappings); 21 &key_system_uuid_mappings);
22 return key_system_uuid_mappings; 22 return key_system_uuid_mappings;
23 } 23 }
24 24
25 bool RegisterAwResource(JNIEnv* env) {
26 return RegisterNativesImpl(env);
27 }
28
29 } // namespace AwResource 25 } // namespace AwResource
30 } // namespace android_webview 26 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_resource.h ('k') | android_webview/native/aw_web_resource_response_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698