Chromium Code Reviews
Description[Cronet] Call System.loadLibrary() from impl not API
When a shared library is loaded, the caller's ClassLoader is used for two
important things:
1. to load classes for JNI bindings, and
2. to find the shared library
Since Cronet's shared library is tied to the implementation, Cronet should
be sure to call System.loadLibrary() from the implementation, not the API.
This way the impl's ClassLoader will be used which could be different from
the API's ClassLoader, and the impl's ClassLoader is the one that will be
able to load the impl classes and locate the shared library.
Committed: https://crrev.com/ae2265a39356fdec3fe217293c6e93e77893be15
Cr-Commit-Position: refs/heads/master@{#407452}
Patch Set 1 #
Total comments: 3
Patch Set 2 : sync #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 10 (3 generated)
|
||||||||||||||||||||||||||||