diff options
author | feng@chromium.org <feng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 14:42:19 +0000 |
---|---|---|
committer | feng@chromium.org <feng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 14:42:19 +0000 |
commit | eb4319e9a9d5088660f465b652c54b187bf951c8 (patch) | |
tree | 8f07237ace42653e54b1cc2d1e67b7bcd5751ed9 /mojo/shell | |
parent | 9e49614d56fe1369ecaec4f802e3001f6a6b0638 (diff) | |
download | chromium_src-eb4319e9a9d5088660f465b652c54b187bf951c8.zip chromium_src-eb4319e9a9d5088660f465b652c54b187bf951c8.tar.gz chromium_src-eb4319e9a9d5088660f465b652c54b187bf951c8.tar.bz2 |
[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
Diffstat (limited to 'mojo/shell')
-rw-r--r-- | mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java b/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java index c697f5e..15a5861 100644 --- a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java +++ b/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java @@ -26,7 +26,7 @@ public class MojoShellActivity extends Activity { super.onCreate(savedInstanceState); try { - LibraryLoader.ensureInitialized(null); + LibraryLoader.ensureInitialized(); } catch (ProcessInitException e) { Log.e(TAG, "libmojo_shell initialization failed.", e); finish(); |