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

Unified Diff: mojo/tools/android_mojo_shell.py

Issue 1162923004: Move the logic to set up a local origin for shell run to shell_arguments.py. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/devtools/common/devtoolslib/shell_arguments.py ('k') | mojo/tools/apptest_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/android_mojo_shell.py
diff --git a/mojo/tools/android_mojo_shell.py b/mojo/tools/android_mojo_shell.py
index 7acd917059ed7a9eade2e47954267b94faccd663..c1a83b977c87cabc89e5557dd0467b35237e6388 100755
--- a/mojo/tools/android_mojo_shell.py
+++ b/mojo/tools/android_mojo_shell.py
@@ -64,11 +64,15 @@ def main():
logcat_tags=launcher_args.logcat_tags,
verbose_pipe=verbose_pipe)
shell.InstallApk(paths.target_mojo_shell_path)
- args.append("--origin=" + launcher_args.origin if launcher_args.origin else
- shell.SetUpLocalOrigin(paths.build_dir))
+
args = shell_arguments.RewriteMapOriginParameters(shell, args)
+ if launcher_args.origin:
+ args.append("--origin=" + launcher_args.origin)
+ else:
+ args.extend(shell_arguments.ConfigureLocalOrigin(shell, paths.build_dir))
if launcher_args.debugger:
args.extend(shell_arguments.ConfigureDebugger(shell))
+
shell.Run(args)
return 0
« no previous file with comments | « mojo/devtools/common/devtoolslib/shell_arguments.py ('k') | mojo/tools/apptest_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698