Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index 74f94d81938228a36127195cb3c02179c75ab86f..0106758fb4a7dcd96fbf301ea92d97ffe20fd744 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -238,9 +238,9 @@ ProfileIOData::MediaRequestContext::MediaRequestContext( |
} |
void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory( |
- net::HttpTransactionFactory* http_factory) { |
- http_factory_.reset(http_factory); |
- set_http_transaction_factory(http_factory); |
+ scoped_ptr<net::HttpTransactionFactory> http_factory) { |
+ http_factory_ = http_factory.Pass(); |
+ set_http_transaction_factory(http_factory_.get()); |
} |
ProfileIOData::MediaRequestContext::~MediaRequestContext() {} |
@@ -258,9 +258,15 @@ void ProfileIOData::AppRequestContext::SetCookieStore( |
} |
void ProfileIOData::AppRequestContext::SetHttpTransactionFactory( |
- net::HttpTransactionFactory* http_factory) { |
- http_factory_.reset(http_factory); |
- set_http_transaction_factory(http_factory); |
+ scoped_ptr<net::HttpTransactionFactory> http_factory) { |
+ http_factory_ = http_factory.Pass(); |
+ set_http_transaction_factory(http_factory.get()); |
+} |
+ |
+void ProfileIOData::AppRequestContext::SetJobFactory( |
+ scoped_ptr<net::URLRequestJobFactory> job_factory) { |
+ job_factory_ = job_factory.Pass(); |
+ set_job_factory(job_factory_.get()); |
} |
ProfileIOData::AppRequestContext::~AppRequestContext() {} |