Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 217283005: [Android] Fix a few issues related to old lib deletion. (Closed)

Created:
6 years, 8 months ago by Feng Qian
Modified:
6 years, 8 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

[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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261382

Patch Set 1 #

Patch Set 2 : make the fix right #

Patch Set 3 : fix the wrong method name #

Patch Set 4 : rebase #

Total comments: 3

Patch Set 5 : address reviewer's comments and rebase #

Total comments: 5

Patch Set 6 : take cjhopman's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -41 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 1 chunk +1 line, -1 line 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java View 1 2 3 4 5 6 chunks +45 lines, -13 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java View 1 2 3 4 3 chunks +9 lines, -19 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentCommandLineTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ImportantFileWriterAndroidTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Feng Qian
6 years, 8 months ago (2014-04-02 18:20:25 UTC) #1
Yaron
lgtm This seems to actually break layering in some sense. base/ shouldn't be aware of ...
6 years, 8 months ago (2014-04-02 18:37:59 UTC) #2
sky
mojo LGTM
6 years, 8 months ago (2014-04-02 20:02:01 UTC) #3
Feng Qian
The CQ bit was checked by feng@chromium.org
6 years, 8 months ago (2014-04-02 20:38:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/feng@chromium.org/217283005/60001
6 years, 8 months ago (2014-04-02 20:40:10 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 21:05:08 UTC) #6
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=59144
6 years, 8 months ago (2014-04-02 21:05:08 UTC) #7
cjhopman
This change description really doesn't seem to match the change. https://codereview.chromium.org/217283005/diff/60001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java File base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java (right): https://codereview.chromium.org/217283005/diff/60001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java#newcode123 ...
6 years, 8 months ago (2014-04-02 22:24:23 UTC) #8
Feng Qian
Updated description to match the CL description. Add boliu@ as reviewer for AwBrowserProcess
6 years, 8 months ago (2014-04-03 00:47:30 UTC) #9
Feng Qian
https://codereview.chromium.org/217283005/diff/60001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java File base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java (right): https://codereview.chromium.org/217283005/diff/60001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java#newcode123 base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java:123: * the browser process. ok, I am fine with ...
6 years, 8 months ago (2014-04-03 00:50:41 UTC) #10
boliu
aw lgtm A comment in LibraryLoader but I have no power over there anyway... https://codereview.chromium.org/217283005/diff/60001/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java ...
6 years, 8 months ago (2014-04-03 01:03:22 UTC) #11
Feng Qian
The CQ bit was checked by feng@chromium.org
6 years, 8 months ago (2014-04-03 01:55:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/feng@chromium.org/217283005/80001
6 years, 8 months ago (2014-04-03 02:01:19 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 08:35:31 UTC) #14
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 08:35:32 UTC) #15
Feng Qian
The CQ bit was checked by feng@chromium.org
6 years, 8 months ago (2014-04-03 13:53:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/feng@chromium.org/217283005/80001
6 years, 8 months ago (2014-04-03 13:53:26 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 14:42:25 UTC) #18
Message was sent while issue was closed.
Change committed as 261382

Powered by Google App Engine
This is Rietveld 408576698