comment out all of the safe browsing stuff because nothing works

This commit is contained in:
RandomHuman 2023-06-25 19:04:56 -06:00
parent 0f17a4a6e7
commit 59eda3d503
No known key found for this signature in database
GPG key ID: 6003A79AC08E8F3B
9 changed files with 400 additions and 18 deletions

View file

@ -9,15 +9,22 @@ using Google.Apis.Safebrowsing.v4.Data;
using Google.Apis.Services;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Linq.Expressions;
namespace XeroBrowser
{
public static class Program
{
public static async Task<bool> IsUrlUnsafe(string url, string apiKey)
//safebrowsing integration
/* public static async Task<bool> IsUrlUnsafe(string url, string apiKey)
{
// ignore any file stored locally
if (url.StartsWith("file://"))
{
return false;
}
var safeBrowsingService = new SafebrowsingService(new BaseClientService.Initializer
{
ApiKey = "AIzaSyCQV - s52iNah - il6T5iFuqo6M_JzcLyaxs",
@ -43,10 +50,12 @@ namespace XeroBrowser
};
var response = await safeBrowsingService.ThreatMatches.Find(request).ExecuteAsync();
try { }
catch(System.Net.Http.HttpRequestException) { }
return response != null && response.Matches != null && response.Matches.Count > 0;
}
*/
public static AppContainer Container;
private static TitleBarTabsApplicationContext _applicationContext;