Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 19c0ff8cfad1bf3b1bd6adc44a3aff68f206dbe8..2f5d42f60ff035f6f83e89232e067e0433c621c5 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -793,6 +793,18 @@ FilePath ProfileImpl::GetPrefFilePath() { |
return pref_file_path; |
} |
+net::URLRequestContextGetter* ProfileImpl::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) { |
+ return io_data_.CreateMainRequestContextGetter( |
+ blob_protocol_handler.Pass(), file_system_protocol_handler.Pass(), |
+ developer_protocol_handler.Pass()); |
+} |
+ |
net::URLRequestContextGetter* ProfileImpl::GetRequestContext() { |
return io_data_.GetMainRequestContextGetter(); |
} |
@@ -836,10 +848,19 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { |
return io_data_.GetExtensionsRequestContextGetter(); |
} |
-net::URLRequestContextGetter* ProfileImpl::GetRequestContextForStoragePartition( |
+net::URLRequestContextGetter* |
+ProfileImpl::CreateRequestContextForStoragePartition( |
const FilePath& partition_path, |
- bool in_memory) { |
- return io_data_.GetIsolatedAppRequestContextGetter(partition_path, 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 io_data_.CreateIsolatedAppRequestContextGetter( |
+ partition_path, in_memory, blob_protocol_handler.Pass(), |
+ file_system_protocol_handler.Pass(), developer_protocol_handler.Pass()); |
} |
net::SSLConfigService* ProfileImpl::GetSSLConfigService() { |