diff --git a/java/client/src/org/openqa/selenium/chrome/ChromeDriver.java b/java/client/src/org/openqa/selenium/chrome/ChromeDriver.java
index <HASH>..<HASH> 100644
--- a/java/client/src/org/openqa/selenium/chrome/ChromeDriver.java
+++ b/java/client/src/org/openqa/selenium/chrome/ChromeDriver.java
@@ -1,5 +1,6 @@
 package org.openqa.selenium.chrome;

 

+import org.openqa.selenium.Capabilities;

 import org.openqa.selenium.OutputType;

 import org.openqa.selenium.TakesScreenshot;

 import org.openqa.selenium.WebDriver;

@@ -96,6 +97,18 @@ public class ChromeDriver extends RemoteWebDriver implements TakesScreenshot {
     super(new ChromeCommandExecutor(service), DesiredCapabilities.chrome());

   }

 

+  /**

+   * Creates a new ChromeDriver instance. The {@code capabilities} will be passed to the

+   * chromedriver service.

+   *

+   * @param capabilities The capabilities required from the ChromeDriver.

+   */

+  public ChromeDriver(Capabilities capabilities) {

+    super(new ChromeCommandExecutor(ChromeDriverService.createDefaultService()),

+        capabilities);

+  }

+

+

   public <X> X getScreenshotAs(OutputType<X> target) {

     // Get the screenshot as base64.

     String base64 = execute(DriverCommand.SCREENSHOT).getValue().toString();
EranMes: Adding a constructor to the ChromeDriver class that accepts capabilities. This enables using features available on the recent chromedriver release, such as passing flags to Chrome.

r<I>