diff --git a/brightray/browser/browser_context.cc b/brightray/browser/browser_context.cc index 4bf558d4293b..82de4a621018 100644 --- a/brightray/browser/browser_context.cc +++ b/brightray/browser/browser_context.cc @@ -232,4 +232,8 @@ content::PermissionManager* BrowserContext::GetPermissionManager() { return permission_manager_.get(); } +void BrowserContext::AllowNTLMCredentialsForAllDomains(bool should_allow) { + url_request_getter_->AllowNTLMCredentialsForAllDomains(should_allow); +} + } // namespace brightray diff --git a/brightray/browser/browser_context.h b/brightray/browser/browser_context.h index 3c9b68d88385..5f16530d1071 100644 --- a/brightray/browser/browser_context.h +++ b/brightray/browser/browser_context.h @@ -71,6 +71,8 @@ class BrowserContext : public base::RefCounted, void InitPrefs(); PrefService* prefs() { return prefs_.get(); } + void AllowNTLMCredentialsForAllDomains(bool should_allow); + protected: BrowserContext(const std::string& partition, bool in_memory); ~BrowserContext() override; diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index cfe250d2dd1f..58df7ece6508 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -330,4 +330,8 @@ scoped_refptr URLRequestContextGetter::GetNetworkT return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); } +void URLRequestContextGetter::AllowNTLMCredentialsForAllDomains(bool should_allow) { + url_sec_mgr_->AllowNTLMCredentialsForAllDomains(should_allow); +} + } // namespace brightray diff --git a/brightray/browser/url_request_context_getter.h b/brightray/browser/url_request_context_getter.h index aab7207cc567..da2091fb6753 100644 --- a/brightray/browser/url_request_context_getter.h +++ b/brightray/browser/url_request_context_getter.h @@ -78,6 +78,8 @@ class URLRequestContextGetter : public net::URLRequestContextGetter { net::URLRequestContext* GetURLRequestContext() override; scoped_refptr GetNetworkTaskRunner() const override; + void AllowNTLMCredentialsForAllDomains(bool should_allow); + net::HostResolver* host_resolver(); private: