DescriptionEnable 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 #
Messages
Total messages: 17 (6 generated)
|