anchor.diff:          return "su - ${user} -c " + shlex.quote(cmd)
   
   
  +    def get_browser_binary():
  +        """Returns the name of the browser binary."""
  +        pname = "${getName chromiumPkg.name}"
  +        if pname.find("chromium") != -1:
  +            return "chromium"  # Same name for all channels and ungoogled-chromium
  +        if pname == "google-chrome":
  +            return "google-chrome-stable"
  +        if pname == "google-chrome-dev":
  +            return "google-chrome-unstable"
  +        # For google-chrome-beta and as fallback:
  +        return pname
  +
  +
       def create_new_win():
           with machine.nested("Creating a new Chromium window"):
               machine.execute(
  
positive.code: { system ? builtins.currentSystem
  , config ? {}
  , pkgs ? import ../.. { inherit system config; }
  , channelMap ? {
      stable = pkgs.chromium;
      beta   = pkgs.chromiumBeta;
      dev    = pkgs.chromiumDev;
    }
  }:
  
  
negative.code: mapAttrs (channel: chromiumPkg: makeTest rec {
    name = "chromium-${channel}";
    meta = {
      maintainers = with maintainers; [ aszlig primeos ];
      # https://github.com/NixOS/hydra/issues/591#issuecomment-435125621
      inherit (chromiumPkg.meta) timeout;
    };
  