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

Unified Diff: content/app/android/library_loader_hooks.cc

Issue 10703130: Clean up the remaining diff in content/app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 8 years, 5 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 | « content/app/android/content_main.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/android/library_loader_hooks.cc
diff --git a/content/app/android/library_loader_hooks.cc b/content/app/android/library_loader_hooks.cc
index db61cb6ac5b80bb7dad01f31c96989ab5b5aaa46..2287a192b2cfa9d57415e0ca4a2f648d9334be3c 100644
--- a/content/app/android/library_loader_hooks.cc
+++ b/content/app/android/library_loader_hooks.cc
@@ -32,9 +32,6 @@ base::AtExitManager* g_at_exit_manager = NULL;
jboolean LibraryLoadedOnMainThread(JNIEnv* env, jclass clazz,
jobjectArray init_command_line) {
- // We need the Chrome AtExitManager to be created before we do any tracing or
- // logging.
- g_at_exit_manager = new base::AtExitManager();
InitNativeCommandLineFromJavaArray(env, init_command_line);
CommandLine* command_line = CommandLine::ForCurrentProcess();
@@ -91,6 +88,9 @@ 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);
}
« no previous file with comments | « content/app/android/content_main.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698