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

Side by Side Diff: base/android/library_loader/library_loader_hooks.cc

Issue 200753002: [Android] Workaround of an android platform bug. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ChildProcessService needs to use the hack Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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("LibraryLoader.NativeLibraryHack", usedHack);
69 }
70
67 } // namespace android 71 } // namespace android
68 } // namespace base 72 } // namespace base
OLDNEW
« no previous file with comments | « base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java ('k') | build/android/gyp/delete_files.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698