comment out all of the safe browsing stuff because nothing works
This commit is contained in:
parent
0f17a4a6e7
commit
59eda3d503
9 changed files with 400 additions and 18 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue