| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "base/android/library_loader/library_loader_hooks.h" | 5 #include "base/android/library_loader/library_loader_hooks.h" |
| 6 | 6 |
| 7 #include "base/android/command_line_android.h" | 7 #include "base/android/command_line_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/android/library_loader/library_load_from_apk_status_codes.h" | 9 #include "base/android/library_loader/library_load_from_apk_status_codes.h" |
| 10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 | 130 |
| 131 void SetVersionNumber(const char* version_number) { | 131 void SetVersionNumber(const char* version_number) { |
| 132 g_library_version_number = strdup(version_number); | 132 g_library_version_number = strdup(version_number); |
| 133 } | 133 } |
| 134 | 134 |
| 135 jstring GetVersionNumber(JNIEnv* env, jclass clazz) { | 135 jstring GetVersionNumber(JNIEnv* env, jclass clazz) { |
| 136 return ConvertUTF8ToJavaString(env, g_library_version_number).Release(); | 136 return ConvertUTF8ToJavaString(env, g_library_version_number).Release(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 static void RecordNativeLibraryHack(JNIEnv*, jclass, jboolean usedHack) { | |
| 140 UMA_HISTOGRAM_BOOLEAN("LibraryLoader.NativeLibraryHack", usedHack); | |
| 141 } | |
| 142 | |
| 143 } // namespace android | 139 } // namespace android |
| 144 } // namespace base | 140 } // namespace base |
| OLD | NEW |