Create a new API to trump IE security settings if desired

This commit is contained in:
Paul Betts 2015-10-16 16:40:30 -07:00
parent 2c21f1a304
commit d123c8613d
4 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -71,6 +71,8 @@ class BrowserContext : public base::RefCounted<BrowserContext>,
void InitPrefs();
PrefService* prefs() { return prefs_.get(); }
void AllowNTLMCredentialsForAllDomains(bool should_allow);
protected:
BrowserContext(const std::string& partition, bool in_memory);
~BrowserContext() override;

View file

@ -330,4 +330,8 @@ scoped_refptr<base::SingleThreadTaskRunner> URLRequestContextGetter::GetNetworkT
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
}
void URLRequestContextGetter::AllowNTLMCredentialsForAllDomains(bool should_allow) {
url_sec_mgr_->AllowNTLMCredentialsForAllDomains(should_allow);
}
} // namespace brightray

View file

@ -78,6 +78,8 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
net::URLRequestContext* GetURLRequestContext() override;
scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() const override;
void AllowNTLMCredentialsForAllDomains(bool should_allow);
net::HostResolver* host_resolver();
private: