Create a new API to trump IE security settings if desired
This commit is contained in:
parent
2c21f1a304
commit
d123c8613d
4 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue