RunnerType.CLIENT, FileUploader.CHUNK_SIZE);
}
public SlaveBrowser captureBrowser(String rawId, String name, String version, String os,
Long browserTimeout, String mode, RunnerType type, Integer uploadSize) {
BrowserInfo browserInfo = new BrowserInfo();
final Long id = parseBrowserId(rawId);
browserInfo.setId(id);
browserInfo.setName(name);
browserInfo.setVersion(version);
browserInfo.setOs(os);
browserInfo.setUploadSize(uploadSize != null ? uploadSize : FileUploader.CHUNK_SIZE);
// TODO(corysmith):move all browser timeout configuration to the proper place.
// TODO(corysmith):figure out where that is.
long computedBrowserTimeout = computeTimeout(browserTimeout);
SlaveBrowser slave =
new SlaveBrowser(time, id.toString(), browserInfo, computedBrowserTimeout, prefix, mode,