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

Issue 141223002: Move the android library loader from content to base (Closed)

Created:
6 years, 11 months ago by aberent
Modified:
6 years, 10 months ago
CC:
chromium-reviews, tim+watch_chromium.org, erikwright+watch_chromium.org, jam, haitaol+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, rsimha+watch_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move the android library loader from content to base The android library loader has no logical connection with content. Mojo shell, which doesn't depend on content, wants to use it. This CL moves it from content to base. BUG=225101 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250113

Patch Set 1 #

Total comments: 28

Patch Set 2 : Remove references to content, and move rest of linker to base #

Patch Set 3 : Minor, mainly editorial, fixes #

Patch Set 4 : Fix problems found by bots #

Patch Set 5 : Move Android Library Loader - Fix findbugs merge issue #

Total comments: 6

Patch Set 6 : Move Android Library Loader - fix nits #

Total comments: 2

Patch Set 7 : Fix final nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -2722 lines) Patch
A + android_webview/java/generated_src/org/chromium/base/library_loader/NativeLibraries.java View 1 1 chunk +6 lines, -3 lines 0 comments Download
D android_webview/java/generated_src/org/chromium/content/app/NativeLibraries.java View 1 1 chunk +0 lines, -25 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/lib/main/webview_entry_point.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
A + base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java View 1 8 chunks +20 lines, -24 lines 0 comments Download
A + base/android/java/src/org/chromium/base/library_loader/Linker.java View 1 7 chunks +8 lines, -8 lines 0 comments Download
A base/android/java/src/org/chromium/base/library_loader/LoaderErrors.java View 1 chunk +21 lines, -0 lines 0 comments Download
A base/android/java/src/org/chromium/base/library_loader/ProcessInitException.java View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A + base/android/java/src/org/chromium/content/common/ProcessInitException.java View 1 1 chunk +10 lines, -6 lines 0 comments Download
A + base/android/java/templates/NativeLibraries.template View 1 4 chunks +16 lines, -18 lines 0 comments Download
A + base/android/java/templates/native_libraries_array.h View 1 1 chunk +1 line, -1 line 0 comments Download
A + base/android/java/templates/native_libraries_version.h View 1 1 chunk +1 line, -1 line 0 comments Download
A base/android/library_loader/library_loader_hooks.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A base/android/library_loader/library_loader_hooks.cc View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A base/android/linker/DEPS View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A + base/android/linker/linker_jni.cc View 1 7 chunks +9 lines, -9 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 3 chunks +36 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 2 comments Download
M build/all.gyp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M build/android/findbugs_filter/findbugs_exclude.xml View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M build/android/pylib/linker/test_case.py View 1 2 3 4 5 6 3 chunks +7 lines, -7 lines 0 comments Download
M build/android/pylib/linker/test_runner.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A build/android/tests/multiple_proguards/src/dummy/NativeLibraries.java View 1 1 chunk +16 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 8 chunks +18 lines, -17 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/sync/ChromiumSyncAdapter.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/signin/AccountsChangedReceiver.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/testshell/javatests/src/org/chromium/chrome/testshell/ChromiumTestShellTestBase.java View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/android/chrome_android_initializer.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/app/android/child_process_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 5 chunks +2 lines, -46 lines 0 comments Download
D content/common/android/linker/DEPS View 1 1 chunk +0 lines, -5 lines 0 comments Download
D content/common/android/linker/linker_jni.cc View 1 1 chunk +0 lines, -457 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 3 chunks +0 lines, -35 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +13 lines, -13 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 4 chunks +6 lines, -3 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/app/ChromiumLinkerParams.java View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ContentApplication.java View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/LibraryLoader.java View 1 1 chunk +4 lines, -183 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/app/Linker.java View 1 1 chunk +0 lines, -1013 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/app/LinkerParams.java View 1 chunk +0 lines, -75 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java View 1 4 chunks +14 lines, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 6 chunks +12 lines, -10 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/common/ProcessInitException.java View 1 1 chunk +0 lines, -37 lines 0 comments Download
D content/public/android/java/templates/NativeLibraries.template View 1 chunk +0 lines, -75 lines 0 comments Download
D content/public/android/java/templates/native_libraries_array.h View 1 chunk +0 lines, -20 lines 0 comments Download
D content/public/android/java/templates/native_libraries_version.h View 1 chunk +0 lines, -9 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java View 2 chunks +7 lines, -3 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentCommandLineTest.java View 1 chunk +5 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ImportantFileWriterAndroidTest.java View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/app/android_library_loader_hooks.h View 1 2 1 chunk +8 lines, -16 lines 0 comments Download
M content/shell/android/browsertests_apk/content_browser_tests_android.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java View 1 chunk +5 lines, -2 lines 0 comments Download
M content/shell/android/linker_test_apk/AndroidManifest.xml View 1 1 chunk +4 lines, -4 lines 0 comments Download
A + content/shell/android/linker_test_apk/chromium_linker_test_android.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
A + content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D content/shell/android/linker_test_apk/content_linker_test_android.cc View 1 1 chunk +0 lines, -36 lines 0 comments Download
D content/shell/android/linker_test_apk/content_linker_test_linker_tests.h View 1 1 chunk +0 lines, -16 lines 0 comments Download
D content/shell/android/linker_test_apk/content_linker_test_linker_tests.cc View 1 1 chunk +0 lines, -185 lines 0 comments Download
A + content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 1 5 chunks +8 lines, -12 lines 0 comments Download
A + content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java View 1 1 chunk +6 lines, -4 lines 0 comments Download
A + content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.java View 1 1 chunk +7 lines, -4 lines 0 comments Download
D content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/ContentLinkerTestActivity.java View 1 1 chunk +0 lines, -198 lines 0 comments Download
D content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/ContentLinkerTestApplication.java View 1 1 chunk +0 lines, -29 lines 0 comments Download
D content/shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/LinkerTests.java View 1 1 chunk +0 lines, -61 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/android/shell_library_loader.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java View 1 2 3 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
aberent
yfriedman@chromium.org: Please review the whole CL. darin@chromium.org: I need an OWNER review for some of ...
6 years, 11 months ago (2014-01-16 21:47:49 UTC) #1
Yaron
Looks like there's still a bunch of comments and small bits to fix up. Please ...
6 years, 11 months ago (2014-01-17 02:18:24 UTC) #2
aberent
https://codereview.chromium.org/141223002/diff/1/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/141223002/diff/1/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java#newcode25 base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java:25: * See also content/app/android/library_loader_hooks.cc, which contains On 2014/01/17 02:18:25, ...
6 years, 10 months ago (2014-01-30 17:46:05 UTC) #3
aberent
Digit - FYI because I have moved and renamed the Content Linker as part of ...
6 years, 10 months ago (2014-01-30 17:49:25 UTC) #4
digit1
lgtm - excellent work!
6 years, 10 months ago (2014-01-30 18:15:21 UTC) #5
aberent
On 2014/01/30 18:15:21, digit1 wrote: > lgtm - excellent work! FYI - The Android downstream ...
6 years, 10 months ago (2014-02-03 11:31:17 UTC) #6
Yaron
lgtm https://codereview.chromium.org/141223002/diff/330001/base/android/library_loader/library_loader_hooks.h File base/android/library_loader/library_loader_hooks.h (right): https://codereview.chromium.org/141223002/diff/330001/base/android/library_loader/library_loader_hooks.h#newcode28 base/android/library_loader/library_loader_hooks.h:28: typedef bool LibraryLoadedHook(JNIEnv* env, jclass clazz, nit: one ...
6 years, 10 months ago (2014-02-04 05:50:00 UTC) #7
aberent
Adding benm@ as WebView reviewer:- Please check and approve the (trivial) changes to files in ...
6 years, 10 months ago (2014-02-05 13:40:13 UTC) #8
benm (inactive)
aw lgtm
6 years, 10 months ago (2014-02-05 16:28:52 UTC) #9
darin (slow to review)
LGTM https://codereview.chromium.org/141223002/diff/410001/base/android/library_loader/library_loader_hooks.cc File base/android/library_loader/library_loader_hooks.cc (right): https://codereview.chromium.org/141223002/diff/410001/base/android/library_loader/library_loader_hooks.cc#newcode30 base/android/library_loader/library_loader_hooks.cc:30: } else { nit: no need for else ...
6 years, 10 months ago (2014-02-07 20:48:26 UTC) #10
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 10 months ago (2014-02-10 11:01:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/141223002/540001
6 years, 10 months ago (2014-02-10 11:02:17 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 11:27:23 UTC) #13
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=49205
6 years, 10 months ago (2014-02-10 11:27:24 UTC) #14
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 10 months ago (2014-02-10 14:02:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/141223002/540001
6 years, 10 months ago (2014-02-10 14:03:05 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 14:29:21 UTC) #17
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=49223
6 years, 10 months ago (2014-02-10 14:29:22 UTC) #18
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 10 months ago (2014-02-10 14:50:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/141223002/540001
6 years, 10 months ago (2014-02-10 14:50:50 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 15:25:07 UTC) #21
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=49233
6 years, 10 months ago (2014-02-10 15:25:09 UTC) #22
aberent
On 2014/02/10 15:25:09, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 10 months ago (2014-02-10 16:15:53 UTC) #23
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 10 months ago (2014-02-10 16:16:40 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/141223002/540001
6 years, 10 months ago (2014-02-10 16:16:47 UTC) #25
commit-bot: I haz the power
Change committed as 250113
6 years, 10 months ago (2014-02-10 16:19:26 UTC) #26
Noel Gordon
https://codereview.chromium.org/141223002/diff/540001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/141223002/diff/540001/base/base.gypi#newcode67 base/base.gypi:67: 'android/library_loader/results_codes_list.h', http://src.chromium.org/viewvc/chrome/trunk/src/base/android/library_loader/?pathrev=250113 dose not seem to have results_codes.h, results_codes_list.h ...
6 years, 10 months ago (2014-02-12 00:33:54 UTC) #27
Yaron
https://codereview.chromium.org/141223002/diff/540001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/141223002/diff/540001/base/base.gypi#newcode67 base/base.gypi:67: 'android/library_loader/results_codes_list.h', On 2014/02/12 00:33:55, Noel Gordon (Google) wrote: > ...
6 years, 10 months ago (2014-02-12 01:16:11 UTC) #28
Noel Gordon
6 years, 10 months ago (2014-02-12 01:43:19 UTC) #29
Message was sent while issue was closed.
Let's try to remove them from base.gypi then. 
https://codereview.chromium.org/149773006

Powered by Google App Engine
This is Rietveld 408576698