Index: content/public/test/test_browser_context.cc |
diff --git a/content/public/test/test_browser_context.cc b/content/public/test/test_browser_context.cc |
index 2269812aeb678d6709108cd923bba29ec48f8eb7..f4f026468c3445e84ce92fc0631a5394ccd19171 100644 |
--- a/content/public/test/test_browser_context.cc |
+++ b/content/public/test/test_browser_context.cc |
@@ -97,11 +97,22 @@ DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() { |
} |
net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() { |
- if (!request_context_.get()) { |
- request_context_ = new TestContextURLRequestContextGetter( |
- GetResourceContext()->GetRequestContext()); |
- } |
+ DCHECK(request_context_.get()); |
+ return request_context_.get(); |
+} |
+ |
+net::URLRequestContextGetter* TestBrowserContext::CreateRequestContext( |
+ scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
+ blob_protocol_handler, |
+ scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
+ file_system_protocol_handler, |
+ scoped_ptr<net::URLRequestJobFactory::Interceptor> |
+ developer_protocol_handler) { |
+ DCHECK(!request_context_); |
+ request_context_ = new TestContextURLRequestContextGetter( |
+ GetResourceContext()->GetRequestContext()); |
return request_context_.get(); |
+ |
} |
net::URLRequestContextGetter* |
@@ -111,9 +122,15 @@ TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { |
net::URLRequestContextGetter* |
-TestBrowserContext::GetRequestContextForStoragePartition( |
+TestBrowserContext::CreateRequestContextForStoragePartition( |
const FilePath& partition_path, |
- bool in_memory) { |
+ bool in_memory, |
+ scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
+ blob_protocol_handler, |
+ scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
+ file_system_protocol_handler, |
+ scoped_ptr<net::URLRequestJobFactory::Interceptor> |
+ developer_protocol_handler) { |
return NULL; |
} |