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/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "jni/LibraryLoader_jni.h" | 9 #include "jni/LibraryLoader_jni.h" |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 } | 57 } |
58 | 58 |
59 void SetVersionNumber(const char* version_number) { | 59 void SetVersionNumber(const char* version_number) { |
60 g_library_version_number = strdup(version_number); | 60 g_library_version_number = strdup(version_number); |
61 } | 61 } |
62 | 62 |
63 jstring GetVersionNumber(JNIEnv* env, jclass clazz) { | 63 jstring GetVersionNumber(JNIEnv* env, jclass clazz) { |
64 return env->NewStringUTF(g_library_version_number); | 64 return env->NewStringUTF(g_library_version_number); |
65 } | 65 } |
66 | 66 |
67 static void RecordNativeLibraryHack(JNIEnv*, jclass, jboolean usedHack) { | |
68 UMA_HISTOGRAM_BOOLEAN("MobileStart.NativeLibraryHack", usedHack); | |
Yaron
2014/03/20 18:34:47
I'm fine with this but could be named LibraryLoade
| |
69 } | |
70 | |
67 } // namespace android | 71 } // namespace android |
68 } // namespace base | 72 } // namespace base |
OLD | NEW |