Fix tests

This commit is contained in:
sergei
2023-04-18 16:04:30 +03:00
parent 6747af085f
commit 07ea8b5880
2 changed files with 2 additions and 2 deletions
@@ -68,7 +68,8 @@ BraveVpnServiceFactory::~BraveVpnServiceFactory() = default;
KeyedService* BraveVpnServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
if (!brave_vpn::IsAllowedForContext(context)) {
if (!brave_vpn::IsAllowedForContext(context) ||
!g_brave_browser_process->brave_vpn_os_connection_api()) {
return nullptr;
}
@@ -155,7 +155,6 @@ TestingBraveBrowserProcess::brave_farbling_service() {
#if BUILDFLAG(ENABLE_BRAVE_VPN)
brave_vpn::BraveVPNOSConnectionAPI*
TestingBraveBrowserProcess::brave_vpn_os_connection_api() {
NOTREACHED();
return nullptr;
}
#endif