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

Unified Diff: base/android/library_loader/library_loader_hooks.cc

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/library_loader/library_loader_hooks.h ('k') | base/android/trace_event_binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/library_loader/library_loader_hooks.cc
diff --git a/base/android/library_loader/library_loader_hooks.cc b/base/android/library_loader/library_loader_hooks.cc
index 97aec8c56ad5c9c9cc758fc74f7ab70c6473580c..555420a5aa5e65bab2dac58afee9d6a01aa39ceb 100644
--- a/base/android/library_loader/library_loader_hooks.cc
+++ b/base/android/library_loader/library_loader_hooks.cc
@@ -123,9 +123,6 @@ void LibraryLoaderExitHook() {
}
bool RegisterLibraryLoaderEntryHook(JNIEnv* env) {
- // We need the AtExitManager to be created at the very beginning.
- g_at_exit_manager = new base::AtExitManager();
-
return RegisterNativesImpl(env);
}
@@ -142,5 +139,9 @@ LibraryProcessType GetLibraryProcessType(JNIEnv* env) {
Java_LibraryLoader_getLibraryProcessType(env));
}
+void InitAtExitManager() {
+ g_at_exit_manager = new base::AtExitManager();
+}
+
} // namespace android
} // namespace base
« no previous file with comments | « base/android/library_loader/library_loader_hooks.h ('k') | base/android/trace_event_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698