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

Unified Diff: content/public/app/android_library_loader_hooks.h

Issue 59533009: Check library version and handle library load errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BrowserStartupControllerTest Created 7 years, 1 month 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: content/public/app/android_library_loader_hooks.h
diff --git a/content/public/app/android_library_loader_hooks.h b/content/public/app/android_library_loader_hooks.h
index a980005ee5697b1ccd6ce3ac6d909e6b61538d76..2ec5a194cfda76343d2205bb68b7fafdd197d77e 100644
--- a/content/public/app/android_library_loader_hooks.h
+++ b/content/public/app/android_library_loader_hooks.h
@@ -23,6 +23,11 @@ CONTENT_EXPORT bool RegisterLibraryLoaderEntryHook(JNIEnv* env);
// during JNI_OnLoad.
CONTENT_EXPORT bool EnsureJniRegistered(JNIEnv* env);
+// Pass the version name to Content. This used to check that the library version
+// matches the version expected by Java before completing JNI registration.
+// Note: argument must remain valid at least until library loading is complete.
+CONTENT_EXPORT void SetVersionNumber(const char* version_number);
+
// Call on exit to delete the AtExitManager which OnLibraryLoadedOnUIThread
// created.
CONTENT_EXPORT void LibraryLoaderExitHook();

Powered by Google App Engine
This is Rietveld 408576698