Index: chrome/browser/profiles/profile_impl_io_data.cc |
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
index 091f2f969326c59079bb8dc8b1f9597290bd7b3c..fb22c3c34299d8f1b98dd4b5709c3378ce1f9664 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -717,9 +717,7 @@ net::URLRequestContext* ProfileImplIOData::InitializeAppRequestContext( |
// Transfer ownership of the cookies and cache to AppRequestContext. |
context->SetCookieStore(cookie_store.get()); |
- context->SetHttpTransactionFactory( |
- scoped_ptr<net::HttpTransactionFactory>( |
- app_http_cache.PassAs<net::HttpTransactionFactory>())); |
+ context->SetHttpTransactionFactory(app_http_cache.Pass()); |
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory( |
new net::URLRequestJobFactoryImpl()); |
@@ -775,8 +773,7 @@ ProfileImplIOData::InitializeMediaRequestContext( |
CreateHttpFactory(main_network_session, media_backend); |
// Transfer ownership of the cache to MediaRequestContext. |
- context->SetHttpTransactionFactory( |
- media_http_cache.PassAs<net::HttpTransactionFactory>()); |
+ context->SetHttpTransactionFactory(media_http_cache.Pass()); |
// Note that we do not create a new URLRequestJobFactory because |
// the media context should behave exactly like its parent context |