| Index: base/android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java
|
| diff --git a/base/android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java b/base/android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java
|
| index 7eeb2c8c3421774464ad1694fd80196eadec2d29..0751beb44123f6fa97ec776b9e3f2bc9ef485521 100644
|
| --- a/base/android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java
|
| +++ b/base/android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java
|
| @@ -133,10 +133,7 @@ public class LibraryLoaderHelper {
|
| sLibrariesWereUnpacked = true;
|
|
|
| File libDir = getWorkaroundLibDir(context);
|
| - if (libDir.exists()) {
|
| - assert libDir.isDirectory();
|
| - deleteDirectorySync(libDir);
|
| - }
|
| + deleteDirectorySync(libDir);
|
|
|
| try {
|
| ApplicationInfo appInfo = context.getApplicationInfo();
|
| @@ -210,19 +207,14 @@ public class LibraryLoaderHelper {
|
| *
|
| * @param context
|
| */
|
| - static void deleteWorkaroundLibrariesAsynchronously(Context context) {
|
| + static void deleteWorkaroundLibrariesAsynchronously(final Context context) {
|
| // Child process should not reach here.
|
| - final File libDir = getWorkaroundLibDir(context);
|
| - if (libDir.exists()) {
|
| - assert libDir.isDirectory();
|
| - // Async deletion
|
| - new Thread() {
|
| - @Override
|
| - public void run() {
|
| - deleteDirectorySync(libDir);
|
| - }
|
| - }.start();
|
| - }
|
| + new Thread() {
|
| + @Override
|
| + public void run() {
|
| + deleteWorkaroundLibrariesSynchronously(context);
|
| + }
|
| + }.start();
|
| }
|
|
|
| /**
|
| @@ -232,9 +224,7 @@ public class LibraryLoaderHelper {
|
| */
|
| public static void deleteWorkaroundLibrariesSynchronously(Context context) {
|
| File libDir = getWorkaroundLibDir(context);
|
| - if (libDir.exists()) {
|
| - deleteDirectorySync(libDir);
|
| - }
|
| + deleteDirectorySync(libDir);
|
| }
|
|
|
| private static void deleteDirectorySync(File dir) {
|
|
|