diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-05-11 16:58:58 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-05-12 08:51:14 +0000 |
commit | 9b42c2b1275e61e4533f59157d4114509d46be55 (patch) | |
tree | ef5866668e865171beb587954b7068ffbc6e76c8 /src/core/browser_context_qt.cpp | |
parent | 4db8c2c92ae8bc722de70e4bd317dce17dea2f74 (diff) |
Remove unneeded ResourceContextQt::set_url_request_context_getter
This is an ancient relic that can be removed.
Change-Id: Ia6926fff65d0e4d0769de940516866a2c51d9a0c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/core/browser_context_qt.cpp')
-rw-r--r-- | src/core/browser_context_qt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp index 3fa0f672d..7f285b1e5 100644 --- a/src/core/browser_context_qt.cpp +++ b/src/core/browser_context_qt.cpp @@ -78,7 +78,7 @@ bool BrowserContextQt::IsOffTheRecord() const net::URLRequestContextGetter *BrowserContextQt::GetRequestContext() { - return GetDefaultStoragePartition(this)->GetURLRequestContext(); + return url_request_getter_.get(); } net::URLRequestContextGetter *BrowserContextQt::GetRequestContextForRenderProcess(int) @@ -137,7 +137,6 @@ content::SSLHostStateDelegate* BrowserContextQt::GetSSLHostStateDelegate() net::URLRequestContextGetter *BrowserContextQt::CreateRequestContext(content::ProtocolHandlerMap *protocol_handlers) { url_request_getter_ = new URLRequestContextGetterQt(m_adapter, protocol_handlers); - static_cast<ResourceContextQt*>(GetResourceContext())->set_url_request_context_getter(url_request_getter_.get()); return url_request_getter_.get(); } |