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();
|
return permission_manager_.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BrowserContext::AllowNTLMCredentialsForAllDomains(bool should_allow) {
|
||||||
|
url_request_getter_->AllowNTLMCredentialsForAllDomains(should_allow);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace brightray
|
} // namespace brightray
|
||||||
|
|
|
@ -71,6 +71,8 @@ class BrowserContext : public base::RefCounted<BrowserContext>,
|
||||||
void InitPrefs();
|
void InitPrefs();
|
||||||
PrefService* prefs() { return prefs_.get(); }
|
PrefService* prefs() { return prefs_.get(); }
|
||||||
|
|
||||||
|
void AllowNTLMCredentialsForAllDomains(bool should_allow);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BrowserContext(const std::string& partition, bool in_memory);
|
BrowserContext(const std::string& partition, bool in_memory);
|
||||||
~BrowserContext() override;
|
~BrowserContext() override;
|
||||||
|
|
|
@ -330,4 +330,8 @@ scoped_refptr<base::SingleThreadTaskRunner> URLRequestContextGetter::GetNetworkT
|
||||||
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
|
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void URLRequestContextGetter::AllowNTLMCredentialsForAllDomains(bool should_allow) {
|
||||||
|
url_sec_mgr_->AllowNTLMCredentialsForAllDomains(should_allow);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace brightray
|
} // namespace brightray
|
||||||
|
|
|
@ -78,6 +78,8 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
|
||||||
net::URLRequestContext* GetURLRequestContext() override;
|
net::URLRequestContext* GetURLRequestContext() override;
|
||||||
scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() const override;
|
scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() const override;
|
||||||
|
|
||||||
|
void AllowNTLMCredentialsForAllDomains(bool should_allow);
|
||||||
|
|
||||||
net::HostResolver* host_resolver();
|
net::HostResolver* host_resolver();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue