class ChromeArguments {

  public static Builder defaults(boolean headless) {
    Builder builder =
        new Builder()
            .noFirstRun()
            .noDefaultBrowserCheck()
            .disableBackgroundNetworking()
            .disableBackgroundTimerThrottling()
            .disableClientSidePhishingDetection()
            .disableDefaultApps()
            .disableExtensions()
            .disableHangMonitor()
            .disablePopupBlocking()
            .disablePromptOnRepost()
            .disableSync()
            .disableTranslate()
            .metricsRecordingOnly()
            .safebrowsingDisableAutoUpdate();

    if (headless) {
      builder.headless().disableGpu().hideScrollbars().muteAudio();
    }

    return builder;
  }

}