Tidy up the debugger. Remove dependence on WindowManager. Remove unused profiling option. Fix crash in trace collector when it receives multiple connections. R=abarth@google.com, ppi@chromium.org Review URL: https://codereview.chromium.org/1532893003 . Cr-Mirrored-From: https://github.com/domokit/mojo Cr-Mirrored-Commit: e4f203d8a4dd9233e54de390a73f2e7c9094e687
diff --git a/mojo_debug b/mojo_debug index b3b786d..dc1000b 100755 --- a/mojo_debug +++ b/mojo_debug
@@ -109,27 +109,6 @@ stop_tracing_parser.set_defaults(func=_tracing_stop) -def _wm_load(args): - """Loads (embeds) the given url in the window manager.""" - if not _send_request('load', args.url): - return 1 - return 0 - - -def _add_wm_command(subparsers): - """Sets up the parser for the 'wm' command.""" - wm_parser = subparsers.add_parser('wm', help='window manager (requires ' - 'debugger.mojo)') - wm_subparser = wm_parser.add_subparsers( - help='the command to run') - - wm_load_parser = wm_subparser.add_parser('load', - help='load (embed) the given url') - wm_load_parser.add_argument('url', type=str, - help='the url to load') - wm_load_parser.set_defaults(func=_wm_load) - - def _device_stack(args): """Runs the device logcat through android_stack_parser.""" adb_path = args.adb_path if args.adb_path else 'adb' @@ -325,7 +304,6 @@ subparsers = parser.add_subparsers(help='the tool to run') _add_device_command(subparsers) _add_tracing_command(subparsers) - _add_wm_command(subparsers) _add_gdb_command(subparsers) args = parser.parse_args()