public ICookieGetter CreateDefaultCookieGetter() { FirefoxProfile prof = FirefoxProfile.GetDefaultProfile( CookieUtil.ReplacePathSymbols(DATAFOLDER), INIFILE_NAME); return(CreateCookieGetter(prof)); }
public ICookieGetter CreateDefaultCookieGetter() { string path = CookieUtil.ReplacePathSymbols(COOKIEPATH); if (!File.Exists(path)) { path = null; } CookieStatus status = new CookieStatus( BrowserType.ToString(), path, BrowserType, PathType.File); return(new GoogleChromeCookieGetter(status)); }
public ICookieGetter[] CreateCookieGetters() { FirefoxProfile[] profs = FirefoxProfile.GetProfiles( CookieUtil.ReplacePathSymbols(DATAFOLDER), INIFILE_NAME); if (profs.Length == 0) { return(new ICookieGetter[] { CreateCookieGetter(null) }); } ICookieGetter[] cgs = new ICookieGetter[profs.Length]; for (int i = 0; i < profs.Length; i++) { cgs[i] = CreateCookieGetter(profs[i]); } return(cgs); }