* **Electron Version:**
  * 5.0.0.beta-5
* **Electron Chromedriver-Version:**
  * 5.0.0.beta-5 ("2.45 (00a4da87a0fd24ec00619a53266498ff75ea033d)")
* **Operating System:**
  * macOS 10.12.6, same issues on win64 and linux64

### Expected Behavior
The electron-app should start and the the chromedriverdriver should connect

### Actual Behavior
The electron-app starts and the driver does not connect but fails with the general error "DevToolsActivePort file doesn't exist"

### To Reproduce
Using Java and current Selenium bindings:
```java
System.setProperty("webdriver.chrome.driver","/Users/pascal/Downloads/chromedriver-v5.0.0-beta.5-darwin-x64/chromedriver");

ChromeOptions options = new ChromeOptions();
options.setBinary("/data/common/electron/CarConfig 5.0.0-beta.5.app/Contents/MacOS/CarConfig");
WebDriver driver = new ChromeDriver(options);
System.out.println("I'm fine"); // Never reaches that point
driver.quit();
```

### Additional Information
Verbose Chromedriver log:
```
[1552406650.692][INFO]: [d79dce940eda52287dc2c3688c4f1556] COMMAND InitSession {
   "capabilities": {
      "firstMatch": [ {
         "browserName": "chrome",
         "goog:chromeOptions": {
            "args": [  ],
            "binary": "/data/common/electron/CarConfig 5.0.0-beta.5.app/Contents/MacOS/CarConfig",
            "extensions": [  ]
         }
      } ]
   },
   "desiredCapabilities": {
      "browserName": "chrome",
      "goog:chromeOptions": {
         "args": [  ],
         "binary": "/data/common/electron/CarConfig 5.0.0-beta.5.app/Contents/MacOS/CarConfig",
         "extensions": [  ]
      }
   }
}
[1552406650.693][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_setting_values": {
         "geolocation": 1
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[1552406650.693][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[1552406650.695][INFO]: Launching chrome: /data/common/electron/CarConfig 5.0.0-beta.5.app/Contents/MacOS/CarConfig --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --load-extension=/var/folders/j3/glwdgbj17jl3l1k1ps2tb34m000172/T/.org.chromium.Chromium.hDJyng/internal --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/var/folders/j3/glwdgbj17jl3l1k1ps2tb34m000172/T/.org.chromium.Chromium.Xxy1Ub data:,

DevTools listening on ws://127.0.0.1:52569/devtools/browser/bc197ed7-3033-40fb-8a28-67cb2107dd58
[1552406710.734][INFO]: Failed to connect to Chrome. Attempting to kill it.
[1552406710.903][INFO]: [d79dce940eda52287dc2c3688c4f1556] RESPONSE InitSession ERROR unknown error: DevToolsActivePort file doesn't exist
[1552406710.903][DEBUG]: Log type 'driver' lost 0 entries on destruction
[1552406710.903][DEBUG]: Log type 'browser' lost 0 entries on destruction
```
atom/browser/ui/devtools_manager_delegate.cc
std::string* name) override {
    return std::unique_ptr<net::ServerSocket>();
  }
  std::string address_;
  uint16_t port_;
  DISALLOW_COPY_AND_ASSIGN(TCPServerSocketFactory);
};
std::unique_ptr<content::DevToolsSocketFactory> CreateSocketFactory() {
  auto& command_line = *base::CommandLine::ForCurrentProcess();
  
  
  int port = 0;
  if (command_line.HasSwitch(switches::kRemoteDebuggingPort)) {
    int temp_port;
    std::string port_str =
        command_line.GetSwitchValueASCII(switches::kRemoteDebuggingPort);
    if (base::StringToInt(port_str, &temp_port) && temp_port > 0 &&
        temp_port < 65535) {
      port = temp_port;
    } else {
      DLOG(WARNING) << "Invalid http debugger port number " << temp_port;
    }
  }
  return std::unique_ptr<content::DevToolsSocketFactory>(
      new TCPServerSocketFactory("127.0.0.1", port));
}
}  
void DevToolsManagerDelegate::StartHttpHandler() {