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 /android_webview/java/src | |
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 'android_webview/java/src')
-rw-r--r-- | android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java index 589ca62..b3aa4f8 100644 --- a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java +++ b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java @@ -33,7 +33,7 @@ public abstract class AwBrowserProcess { public static void loadLibrary() { PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); try { - LibraryLoader.loadNow(null); + LibraryLoader.loadNow(); initTraceEvent(); } catch (ProcessInitException e) { throw new RuntimeException("Cannot load WebView", e); |