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

Issue 1180653002: Build Mojo apps in subdirectories, like application packages. (Closed)

Created:
5 years, 6 months ago by msw
Modified:
5 years, 6 months ago
Reviewers:
sky, scottmg
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Build Mojo apps in subdirectories, like application packages. Build all <foo>.mojo targets in a <foo> sub-directory. Support resources bundled in mojo_native_application. Remove mojo_application_package (now redundant). Update hard-coded paths and simplify URL resolution code. Remove apps bundled in core_services from Mandoline.apk (network service, surfaces service, view manager) This would help NetworkFetcher resolve app locations. (Android apptests host the build dir on a local server) (but apptests should instead bundle apps in an apk) BUG=498020 TEST=Mojo runner and Mandoline still work (as much as they currently do :-/) R=scottmg@chromium.org,sky@chromium.org Committed: https://crrev.com/e6439a2c956a2f09f40f10e8394a53437ad269ed Cr-Commit-Position: refs/heads/master@{#334455}

Patch Set 1 #

Patch Set 2 : Cleanup, fix some loading... #

Patch Set 3 : Network service mapping. #

Patch Set 4 : Revise output paths. #

Patch Set 5 : Remove mojo_application_package. #

Patch Set 6 : Fix android build. #

Total comments: 4

Patch Set 7 : Address comment. #

Patch Set 8 : Sync and rebase; update tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -208 lines) Patch
M components/html_viewer/BUILD.gn View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M components/resource_provider/BUILD.gn View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M mandoline/app/android/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +9 lines, -12 lines 0 comments Download
M mandoline/ui/browser/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M mandoline/ui/omnibox/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/mojo_application_package.gni View 1 2 3 4 1 chunk +0 lines, -113 lines 0 comments Download
M mojo/public/mojo_application.gni View 1 2 3 4 5 6 7 chunks +36 lines, -21 lines 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +11 lines, -5 lines 0 comments Download
M mojo/runner/context.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/runner/url_resolver.cc View 1 2 chunks +2 lines, -16 lines 0 comments Download
M mojo/runner/url_resolver_unittest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -30 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
scottmg
https://codereview.chromium.org/1180653002/diff/120001/mandoline/app/android/BUILD.gn File mandoline/app/android/BUILD.gn (left): https://codereview.chromium.org/1180653002/diff/120001/mandoline/app/android/BUILD.gn#oldcode57 mandoline/app/android/BUILD.gn:57: "//components/view_manager", these are gone on purpose? https://codereview.chromium.org/1180653002/diff/120001/mojo/public/mojo_application.gni File mojo/public/mojo_application.gni ...
5 years, 6 months ago (2015-06-12 22:40:10 UTC) #3
msw
Let me test this some more next week. https://codereview.chromium.org/1180653002/diff/120001/mandoline/app/android/BUILD.gn File mandoline/app/android/BUILD.gn (left): https://codereview.chromium.org/1180653002/diff/120001/mandoline/app/android/BUILD.gn#oldcode57 mandoline/app/android/BUILD.gn:57: "//components/view_manager", ...
5 years, 6 months ago (2015-06-12 22:57:03 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180653002/160001
5 years, 6 months ago (2015-06-15 18:30:34 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-15 19:05:33 UTC) #8
msw
Hey Scotts, please take a look; thanks! ToT Mandoline crashes on Android for me, this ...
5 years, 6 months ago (2015-06-15 20:25:02 UTC) #10
msw
On 2015/06/15 20:25:02, msw wrote: > Hey Scotts, please take a look; thanks! > > ...
5 years, 6 months ago (2015-06-15 20:40:10 UTC) #11
scottmg
lgtm
5 years, 6 months ago (2015-06-15 20:50:00 UTC) #12
sky
LGTM
5 years, 6 months ago (2015-06-15 20:56:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180653002/160001
5 years, 6 months ago (2015-06-15 21:02:56 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 6 months ago (2015-06-15 21:10:28 UTC) #16
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e6439a2c956a2f09f40f10e8394a53437ad269ed Cr-Commit-Position: refs/heads/master@{#334455}
5 years, 6 months ago (2015-06-15 21:11:16 UTC) #17
msw
5 years, 6 months ago (2015-06-15 22:21:55 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:160001) has been created in
https://codereview.chromium.org/1186683008/ by msw@chromium.org.

The reason for reverting is: This makes mojo_runner_unittests fail:
http://build.chromium.org/p/chromium.mojo/builders/Chromium%20Mojo%20Android/...

First failure repro steps and output:
build/android/test_runner.py gtest -s mojo_runner_unittests
--output-directory=/work/chrome-git/src/out/android_Debug
--gtest_filter=ShellTestBaseTest.ConnectBasic

[==========] Running 20 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 7 tests from ShellTestBaseTest
[ RUN      ] ShellTestBaseTest.ConnectBasic
[ERROR:application_manager.cc(409)] Library not started because library path
'/data/app/org.chromium.native_test-1/lib/arm/tracing/tracing.mojo' does not
exist.
[ERROR:application_manager.cc(409)] Library not started because library path
'/data/data/org.chromium.native_test/app_test_apps/test_app/test_app.mojo' does
not exist.
../../mojo/runner/shell_test_base_unittest.cc:96: Failure
Value of: was_run
  Actual: false
Expected: true
../../mojo/runner/shell_test_base_unittest.cc:97: Failure
Value of: service.encountered_error()
  Actual: true
Expected: false
E  254.854s 6d40  Test terminated after 120 second timeout..

Powered by Google App Engine
This is Rietveld 408576698