[Android] Fix a few issues related to old lib deletion.
    
Discovered following issues:
1. after each native library load, the code starts a thread
   to delete old libs;
2. render process also tries to delete old libs;
3. Context.getDir(...) creates the directory if not
   existing, so existence test is always successful,
   and assertion may fail;
    
The CL fixes these issues. LibraryLoader.ensureInitialized
and LibraryLoader.loadNow have a second boolean parameter,
inBrowserProcess, used by caller to indicate whether the code should try to delete old libs.

BUG=357655

Review URL: https://codereview.chromium.org/217283005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261382 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: eb4319e9a9d5088660f465b652c54b187bf951c8
3 files changed
tree: 8b79b7967cb8d341198b77c433fba603248e0bb8
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. mojo/
  7. testing/
  8. third_party/
  9. ui/