mirror of
https://github.com/electron/electron.git
synced 2026-01-24 23:08:10 -05:00
Upgrade brightray for new URLRequestContextGetter interface.
This commit is contained in:
@@ -25,8 +25,7 @@ AtomBrowserContext::AtomBrowserContext()
|
||||
AtomBrowserContext::~AtomBrowserContext() {
|
||||
}
|
||||
|
||||
scoped_ptr<net::URLRequestJobFactory>
|
||||
AtomBrowserContext::CreateURLRequestJobFactory(
|
||||
net::URLRequestJobFactory* AtomBrowserContext::CreateURLRequestJobFactory(
|
||||
content::ProtocolHandlerMap* handlers,
|
||||
content::ProtocolHandlerScopedVector* interceptors) {
|
||||
scoped_ptr<AtomURLRequestJobFactory> job_factory(job_factory_);
|
||||
@@ -52,7 +51,7 @@ AtomBrowserContext::CreateURLRequestJobFactory(
|
||||
top_job_factory.Pass(), make_scoped_ptr(*it)));
|
||||
interceptors->weak_clear();
|
||||
|
||||
return top_job_factory.Pass();
|
||||
return top_job_factory.release();
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
@@ -22,8 +22,8 @@ class AtomBrowserContext : public brightray::BrowserContext {
|
||||
AtomURLRequestJobFactory* job_factory() const { return job_factory_; }
|
||||
|
||||
protected:
|
||||
// brightray::BrowserContext:
|
||||
virtual scoped_ptr<net::URLRequestJobFactory> CreateURLRequestJobFactory(
|
||||
// brightray::URLRequestContextGetter::Delegate:
|
||||
virtual net::URLRequestJobFactory* CreateURLRequestJobFactory(
|
||||
content::ProtocolHandlerMap* handlers,
|
||||
content::ProtocolHandlerScopedVector* interceptors) OVERRIDE;
|
||||
|
||||
|
||||
2
vendor/brightray
vendored
2
vendor/brightray
vendored
Submodule vendor/brightray updated: a3eba728ef...f0fe9b5a75
Reference in New Issue
Block a user