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

Review URL: https://codereview.chromium.org/617943002

Cr-Commit-Position: refs/heads/master@{#297924}


CrOS-Libchrome-Original-Commit: 00b23e2a533a185c672f3cbacbc61176cd2800e4
4 files changed
tree: cb88ef962f713fa24c3651779fae166e6603a21c
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/