Skip to content

Commit

Permalink
Removed Windows only DNS over HTTP work-around
Browse files Browse the repository at this point in the history
  • Loading branch information
spylogsster committed Sep 21, 2022
1 parent bbdc467 commit 81526a7
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 715 deletions.
20 changes: 2 additions & 18 deletions browser/brave_vpn/brave_vpn_service_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"

#if BUILDFLAG(IS_WIN)
#include "brave/browser/brave_vpn/dns/brave_vpn_dns_observer_factory.h"
#include "brave/browser/brave_vpn/dns/brave_vpn_dns_observer_service.h"
#endif

namespace brave_vpn {

// static
Expand Down Expand Up @@ -55,9 +50,6 @@ BraveVpnServiceFactory::BraveVpnServiceFactory()
"BraveVpnService",
BrowserContextDependencyManager::GetInstance()) {
DependsOn(skus::SkusServiceFactory::GetInstance());
#if BUILDFLAG(IS_WIN)
DependsOn(brave_vpn::BraveVpnDnsObserverFactory::GetInstance());
#endif
}

BraveVpnServiceFactory::~BraveVpnServiceFactory() = default;
Expand All @@ -78,16 +70,8 @@ KeyedService* BraveVpnServiceFactory::BuildServiceInstanceFor(
return skus::SkusServiceFactory::GetForContext(context);
},
context);
auto* vpn_service =
new BraveVpnService(shared_url_loader_factory, local_state, callback);
#if BUILDFLAG(IS_WIN)
auto* dns_observer_service =
brave_vpn::BraveVpnDnsObserverFactory::GetInstance()
->GetServiceForContext(context);
if (dns_observer_service)
dns_observer_service->Observe(vpn_service);
#endif
return vpn_service;

return new BraveVpnService(shared_url_loader_factory, local_state, callback);
}

void BraveVpnServiceFactory::RegisterProfilePrefs(
Expand Down
66 changes: 0 additions & 66 deletions browser/brave_vpn/dns/brave_vpn_dns_observer_factory.cc

This file was deleted.

43 changes: 0 additions & 43 deletions browser/brave_vpn/dns/brave_vpn_dns_observer_factory.h

This file was deleted.

175 changes: 0 additions & 175 deletions browser/brave_vpn/dns/brave_vpn_dns_observer_service.cc

This file was deleted.

Loading

0 comments on commit 81526a7

Please sign in to comment.