| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import shlex |
| 6 |
| 7 |
| 8 def EnableIgnition(options): |
| 9 existing_js_flags = [] |
| 10 for extra_arg in options.extra_browser_args: |
| 11 if extra_arg.startswith('--js-flags='): |
| 12 existing_js_flags.extend(shlex.split(extra_arg[len('--js-flags='):])) |
| 13 options.AppendExtraBrowserArgs([ |
| 14 # This overrides any existing --js-flags, hence we have to include the |
| 15 # previous flags as well. |
| 16 '--js-flags=--ignition %s' % (' '.join(existing_js_flags)) |
| 17 ]) |
| OLD | NEW |