Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index 1212b877bd8f68a9e82db8167c580456e16ae2f3..592ed8499830131622d6ff528a54f60eb0057065 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -120,7 +120,8 @@ void OffTheRecordProfileImpl::Init() { |
#if defined(ENABLE_PLUGINS) |
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( |
- PluginPrefs::GetForProfile(this), io_data_.GetResourceContextNoInit()); |
+ PluginPrefs::GetForProfile(this).get(), |
+ io_data_.GetResourceContextNoInit()); |
#endif |
BrowserThread::PostTask( |
@@ -246,7 +247,7 @@ net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { |
net::URLRequestContextGetter* OffTheRecordProfileImpl::CreateRequestContext( |
content::ProtocolHandlerMap* protocol_handlers) { |
- return io_data_.CreateMainRequestContextGetter(protocol_handlers); |
+ return io_data_.CreateMainRequestContextGetter(protocol_handlers).get(); |
} |
net::URLRequestContextGetter* |
@@ -274,12 +275,13 @@ net::URLRequestContextGetter* |
OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( |
const base::FilePath& partition_path, |
bool in_memory) { |
- return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory); |
+ return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) |
+ .get(); |
} |
net::URLRequestContextGetter* |
OffTheRecordProfileImpl::GetRequestContextForExtensions() { |
- return io_data_.GetExtensionsRequestContextGetter(); |
+ return io_data_.GetExtensionsRequestContextGetter().get(); |
} |
net::URLRequestContextGetter* |
@@ -288,7 +290,7 @@ net::URLRequestContextGetter* |
bool in_memory, |
content::ProtocolHandlerMap* protocol_handlers) { |
return io_data_.CreateIsolatedAppRequestContextGetter( |
- partition_path, in_memory, protocol_handlers); |
+ partition_path, in_memory, protocol_handlers).get(); |
} |
content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext() { |