Chromium Code Reviews| Index: content/app/android/library_loader_hooks.cc |
| diff --git a/content/app/android/library_loader_hooks.cc b/content/app/android/library_loader_hooks.cc |
| index 837bfaa445eaffaef01c069ed20dc0fcd84d9e73..f4fedea5a9816300f897928c313473570393323a 100644 |
| --- a/content/app/android/library_loader_hooks.cc |
| +++ b/content/app/android/library_loader_hooks.cc |
| @@ -2,6 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include <string.h> |
|
joth
2013/11/18 19:45:23
nit - remove
aberent
2013/11/25 18:31:47
Done.
|
| + |
| #include "content/public/app/android_library_loader_hooks.h" |
| #include "base/android/base_jni_registrar.h" |
| @@ -36,6 +38,7 @@ namespace content { |
| namespace { |
| base::AtExitManager* g_at_exit_manager = NULL; |
| +const char* g_library_version_number = ""; |
| } |
| bool EnsureJniRegistered(JNIEnv* env) { |
| @@ -146,4 +149,12 @@ bool RegisterLibraryLoaderEntryHook(JNIEnv* env) { |
| return RegisterNativesImpl(env); |
| } |
| +void SetVersionNumber(const char* version_number) { |
| + g_library_version_number = strdup(version_number); |
| +} |
| + |
| +jstring GetVersionNumber(JNIEnv* env, jclass clazz) { |
| + return env->NewStringUTF(g_library_version_number); |
| +} |
| + |
| } // namespace content |