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

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

Issue 2045303002: Update to Chromium //base at Chromium commit 3e81715e6d3a4324362635aea46ce1f1a163cca1. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: Created 4 years, 6 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 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/android/library_loader/library_prefetcher.h" 10 #include "base/android/library_loader/library_prefetcher.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 147
148 bool RegisterLibraryLoaderEntryHook(JNIEnv* env) { 148 bool RegisterLibraryLoaderEntryHook(JNIEnv* env) {
149 return RegisterNativesImpl(env); 149 return RegisterNativesImpl(env);
150 } 150 }
151 151
152 void SetVersionNumber(const char* version_number) { 152 void SetVersionNumber(const char* version_number) {
153 g_library_version_number = strdup(version_number); 153 g_library_version_number = strdup(version_number);
154 } 154 }
155 155
156 jstring GetVersionNumber(JNIEnv* env, jobject jcaller) { 156 ScopedJavaLocalRef<jstring> GetVersionNumber(JNIEnv* env, jobject jcaller) {
157 return ConvertUTF8ToJavaString(env, g_library_version_number).Release(); 157 return ConvertUTF8ToJavaString(env, g_library_version_number);
158 } 158 }
159 159
160 LibraryProcessType GetLibraryProcessType(JNIEnv* env) { 160 LibraryProcessType GetLibraryProcessType(JNIEnv* env) {
161 return static_cast<LibraryProcessType>( 161 return static_cast<LibraryProcessType>(
162 Java_LibraryLoader_getLibraryProcessType(env)); 162 Java_LibraryLoader_getLibraryProcessType(env));
163 } 163 }
164 164
165 void InitAtExitManager() { 165 void InitAtExitManager() {
166 g_at_exit_manager = new base::AtExitManager(); 166 g_at_exit_manager = new base::AtExitManager();
167 } 167 }
168 168
169 } // namespace android 169 } // namespace android
170 } // namespace base 170 } // namespace base
OLDNEW
« no previous file with comments | « android/junit/src/org/chromium/base/BaseChromiumApplicationTest.java ('k') | android/linker/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698