Plumb the method back

This commit is contained in:
Paul Betts 2015-10-19 13:07:14 -07:00
parent 489090fcf8
commit b3c7e2bf33
2 changed files with 10 additions and 2 deletions

View file

@ -61,7 +61,8 @@ AtomBrowserContext::AtomBrowserContext(const std::string& partition,
bool in_memory) bool in_memory)
: brightray::BrowserContext(partition, in_memory), : brightray::BrowserContext(partition, in_memory),
job_factory_(new AtomURLRequestJobFactory), job_factory_(new AtomURLRequestJobFactory),
allow_ntlm_everywhere_(false) : { } allow_ntlm_everywhere_(false) {
}
AtomBrowserContext::~AtomBrowserContext() { AtomBrowserContext::~AtomBrowserContext() {
} }
@ -174,6 +175,11 @@ bool AtomBrowserContext::AllowNTLMCredentialsForDomain(const GURL& auth_origin)
return brightray::URLRequestContextGetter::Delegate::AllowNTLMCredentialsForDomain(auth_origin); return brightray::URLRequestContextGetter::Delegate::AllowNTLMCredentialsForDomain(auth_origin);
} }
void AtomBrowserContext::AllowNTLMCredentialsForAllDomains(bool should_allow) {
allow_ntlm_everywhere_ = should_allow;
}
} // namespace atom } // namespace atom
namespace brightray { namespace brightray {

View file

@ -19,7 +19,7 @@ class AtomBrowserContext : public brightray::BrowserContext {
public: public:
AtomBrowserContext(const std::string& partition, bool in_memory); AtomBrowserContext(const std::string& partition, bool in_memory);
~AtomBrowserContext() override; ~AtomBrowserContext() override;
// brightray::URLRequestContextGetter::Delegate: // brightray::URLRequestContextGetter::Delegate:
std::string GetUserAgent() override; std::string GetUserAgent() override;
net::URLRequestJobFactory* CreateURLRequestJobFactory( net::URLRequestJobFactory* CreateURLRequestJobFactory(
@ -36,6 +36,8 @@ class AtomBrowserContext : public brightray::BrowserContext {
// brightray::BrowserContext: // brightray::BrowserContext:
void RegisterPrefs(PrefRegistrySimple* pref_registry) override; void RegisterPrefs(PrefRegistrySimple* pref_registry) override;
void AllowNTLMCredentialsForAllDomains(bool should_allow);
AtomURLRequestJobFactory* job_factory() const { return job_factory_; } AtomURLRequestJobFactory* job_factory() const { return job_factory_; }