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

Issue 617943002: Enable setting configuration arguments for Mojo applications with mojo_shell (Closed)

Created:
6 years, 2 months ago by hansmuller
Modified:
6 years, 2 months ago
Reviewers:
DaveMoore
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
Project:
chromium
Visibility:
Public.

Description

Enable setting configuration arguments for Mojo applications with mojo_shell. Applications can retrieve the configuration arguments with the ApplicationImpl args() method (see https://codereview.chromium.org/568173003). A Mojo application can be specified with a URL followed by one or more arguments, so long as the entire expression is within quotes: mojo_shell 'mojo://mojo_wget http://www.google.com' The "args-for" switch can be used to specify arguments for Mojo applications that are started by the specified app: mojo_shell args-for='mojo:mojo_native_viewport_service foo bar' mojo:mojo_surfaces_app The args-for switch can be used repeatedly to specify arguments for multiple Mojo apps. BUG=418797 Committed: https://crrev.com/00b23e2a533a185c672f3cbacbc61176cd2800e4 Cr-Commit-Position: refs/heads/master@{#297924}

Patch Set 1 #

Patch Set 2 : Replace StringVector usage #

Patch Set 3 : "Explicit support for std::wstring on Windows" #

Patch Set 4 : Use base::string16 instead std::wstring #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -11 lines) Patch
M mojo/examples/wget/wget.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/shell/desktop/mojo_main.cc View 1 2 3 3 chunks +36 lines, -8 lines 0 comments Download
M mojo/shell/switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
hansmuller
I modified the wget example app to use this feature. PTAL.
6 years, 2 months ago (2014-09-30 17:52:39 UTC) #2
DaveMoore
The code looks fine, but I'm not sure about the syntax. --args-for seems wordy. I'm ...
6 years, 2 months ago (2014-10-01 21:21:16 UTC) #3
hansmuller
On 2014/10/01 21:21:16, DaveMoore wrote: > The code looks fine, but I'm not sure about ...
6 years, 2 months ago (2014-10-01 21:32:51 UTC) #4
hansmuller
On 2014/10/01 21:21:16, DaveMoore wrote: > The code looks fine, but I'm not sure about ...
6 years, 2 months ago (2014-10-01 23:47:49 UTC) #5
DaveMoore
Ok. I can't think of anything better so moving forward with what you have is ...
6 years, 2 months ago (2014-10-02 15:06:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617943002/1
6 years, 2 months ago (2014-10-02 15:31:21 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/21119) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/18447)
6 years, 2 months ago (2014-10-02 16:05:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617943002/20001
6 years, 2 months ago (2014-10-02 18:06:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617943002/60001
6 years, 2 months ago (2014-10-02 21:28:14 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001) as b357ba4cb46fd7ccafa7df92c98d49456803681e
6 years, 2 months ago (2014-10-02 22:27:19 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 22:28:20 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/00b23e2a533a185c672f3cbacbc61176cd2800e4
Cr-Commit-Position: refs/heads/master@{#297924}

Powered by Google App Engine
This is Rietveld 408576698