| Index: mojo/tools/mopy/android.py
|
| diff --git a/mojo/tools/mopy/android.py b/mojo/tools/mopy/android.py
|
| index f29bc60630efa0d0af6d2feb34834965b25a9650..50d7df4dacc49b0df72fabf986e2f2bde128646c 100644
|
| --- a/mojo/tools/mopy/android.py
|
| +++ b/mojo/tools/mopy/android.py
|
| @@ -4,7 +4,6 @@
|
|
|
| import atexit
|
| import itertools
|
| -import json
|
| import logging
|
| import os
|
| import shutil
|
| @@ -256,13 +255,13 @@ class AndroidShell(object):
|
| max_attempts = 200 if '--wait-for-debugger' in arguments else 5
|
| self._ReadFifo(fifo_path, stdout, on_application_stop, max_attempts)
|
|
|
| - # Extract map-origin arguments.
|
| + # Extract map-origin args and add the extras array with commas escaped.
|
| parameters = [a for a in arguments if not a.startswith(MAPPING_PREFIX)]
|
| map_parameters = [a for a in arguments if a.startswith(MAPPING_PREFIX)]
|
| parameters += self._StartHttpServerForOriginMappings(map_parameters)
|
| -
|
| + parameters = [p.replace(',', '\,') for p in parameters]
|
| if parameters:
|
| - cmd += ['--es', 'encodedParameters', json.dumps(parameters)]
|
| + cmd += ['--esa', 'org.chromium.mojo.shell.extras', ','.join(parameters)]
|
|
|
| atexit.register(self.StopShell)
|
| with open(os.devnull, 'w') as devnull:
|
|
|