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

Unified Diff: chrome/app/android/chrome_android_initializer.cc

Issue 141223002: Move the android library loader from content to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 6 years, 10 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
Index: chrome/app/android/chrome_android_initializer.cc
diff --git a/chrome/app/android/chrome_android_initializer.cc b/chrome/app/android/chrome_android_initializer.cc
index de84812775dc1f6f32feb420e13fd61408930ec7..57dcb5e40337c35b508f4c3b93d49bc268890364 100644
--- a/chrome/app/android/chrome_android_initializer.cc
+++ b/chrome/app/android/chrome_android_initializer.cc
@@ -5,6 +5,7 @@
#include "chrome/app/android/chrome_android_initializer.h"
#include "base/android/jni_android.h"
+#include "base/android/library_loader/library_loader_hooks.h"
#include "base/logging.h"
#include "chrome/app/android/chrome_main_delegate_android.h"
#include "chrome/common/chrome_version_info.h"
@@ -15,13 +16,14 @@
jint RunChrome(JavaVM* vm, ChromeMainDelegateAndroid* main_delegate) {
base::android::InitVM(vm);
JNIEnv* env = base::android::AttachCurrentThread();
- if (!content::RegisterLibraryLoaderEntryHook(env))
+ if (!base::android::RegisterLibraryLoaderEntryHook(env))
return -1;
// Pass the library version number to content so that we can check it from the
// Java side before continuing initialization
chrome::VersionInfo vi;
- content::SetVersionNumber(vi.Version().c_str());
+ base::android::SetLibraryLoadedHook(&content::LibraryLoaded);
+ base::android::SetVersionNumber(vi.Version().c_str());
DCHECK(main_delegate);
content::SetContentMainDelegate(main_delegate);

Powered by Google App Engine
This is Rietveld 408576698