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

Issue 816473002: Update mojo shell so that --args-for can be used on android (Closed)

Created:
6 years ago by qsr
Modified:
6 years ago
Reviewers:
sky
CC:
mojo-reviews_chromium.org, 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://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Update mojo shell so that --args-for can be used on android This refactor the shell startup to factorize the parsing of --args-for argument so that it can be reused on android. It also changes the way android gets its application argument. Instead of expecting it as a specific intent parameter, it does exactly as the desktop version and looks for it in the generic argument list. R=sky@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/4fc210c67386a0700d25a30e1bd7282dfc753ca2

Patch Set 1 #

Patch Set 2 : Remove spurious print #

Total comments: 19

Patch Set 3 : Refactor and add unit tests #

Total comments: 8

Patch Set 4 : Follow review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -120 lines) Patch
M mojo/tools/android_mojo_shell.py View 1 3 chunks +2 lines, -15 lines 0 comments Download
M shell/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java View 1 2 3 chunks +13 lines, -4 lines 0 comments Download
M shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java View 2 chunks +15 lines, -19 lines 0 comments Download
M shell/android/mojo_main.cc View 1 2 3 6 chunks +26 lines, -16 lines 0 comments Download
A shell/command_line_util.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A shell/command_line_util.cc View 1 2 3 1 chunk +89 lines, -0 lines 0 comments Download
A shell/command_line_util_unittest.cc View 1 2 3 1 chunk +78 lines, -0 lines 0 comments Download
M shell/desktop/mojo_main.cc View 4 chunks +5 lines, -66 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
qsr
6 years ago (2014-12-17 16:03:58 UTC) #1
sky
I'm LGTMing, but I think it would be good to split things out for ease ...
6 years ago (2014-12-17 16:44:05 UTC) #2
qsr
https://codereview.chromium.org/816473002/diff/20001/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java File shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java (right): https://codereview.chromium.org/816473002/diff/20001/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java#newcode77 shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java:77: * @return <code>true</code> if an application has been launcher. ...
6 years ago (2014-12-18 14:21:36 UTC) #3
sky
LGTM https://codereview.chromium.org/816473002/diff/20001/shell/command_line_util.cc File shell/command_line_util.cc (right): https://codereview.chromium.org/816473002/diff/20001/shell/command_line_util.cc#newcode34 shell/command_line_util.cc:34: return GURL::EmptyGURL(); On 2014/12/18 14:21:35, qsr wrote: > ...
6 years ago (2014-12-18 17:01:15 UTC) #4
qsr
https://codereview.chromium.org/816473002/diff/40001/shell/android/mojo_main.cc File shell/android/mojo_main.cc (right): https://codereview.chromium.org/816473002/diff/40001/shell/android/mojo_main.cc#newcode96 shell/android/mojo_main.cc:96: for (auto& args : parameters) { On 2014/12/18 17:01:15, ...
6 years ago (2014-12-18 17:17:56 UTC) #5
qsr
6 years ago (2014-12-18 17:18:10 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
4fc210c67386a0700d25a30e1bd7282dfc753ca2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698