def chrome_cli(opts)
    # The Chromium wiki recommends this page for available flags:
    #     http://peter.sh/experiments/chromium-command-line-switches/
    [
      opts[:chrome_binary] || self.class.chrome_binary,
    ] + chrome_cli_flags(opts) + [
      "--remote-debugging-port=#{@port}",  # Webkit remote debugging
      "--user-data-dir=#{@data_dir}",  # really ensure a clean slate
      "--window-position=#{@window[:left]},#{@window[:top]}",
      "--window-size=#{@window[:width]},#{@window[:height]}",

      'about:blank',  # don't load the homepage
      {
        chdir: @data_dir,
        in: '/dev/null',
        out: File.join(@data_dir, '.stdout'),
        err: File.join(@data_dir, '.stderr'),
        close_others: true,
      },
    ]
  end
def chrome_cli(opts)
    # The Chromium wiki recommends this page for available flags:
    #     http://peter.sh/experiments/chromium-command-line-switches/
    [
      opts[:chrome_binary] || self.class.chrome_binary,
    ] + chrome_cli_flags(opts) + [
      "--remote-debugging-port=#{@port}",  # Webkit remote debugging
      "--user-data-dir=#{@data_dir}",  # really ensure a clean slate
      "--window-position=#{@window[:left]},#{@window[:top]}",
      "--window-size=#{@window[:width]},#{@window[:height]}",

      'about:blank',  # don't load the homepage
      {
        chdir: @data_dir,
        in: '/dev/null',
        out: File.join(@data_dir, '.stdout'),
        err: File.join(@data_dir, '.stderr'),
        close_others: true,
      },
    ]
  end
Command-line that launches Google Chrome / Chromium

 @param [Hash] opts options passed to the WebkitRemote::Process constructor
 @return [Array<String>] command line for launching Chrome