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 ba76575f0711917caca23dc9354e091fbff208d9..cbda251b3cc879504cb7b58c22b867f9a4f88e6e 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -114,7 +114,7 @@ void OffTheRecordProfileImpl::Init() { |
GetChromeURLDataManager()->AddDataSource(icon_source); |
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( |
- PluginPrefs::GetForProfile(this), &GetResourceContext()); |
+ PluginPrefs::GetForProfile(this), &io_data_.GetResourceContextNoInit()); |
BrowserThread::PostTask( |
BrowserThread::IO, FROM_HERE, |
@@ -127,7 +127,7 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() { |
content::NotificationService::NoDetails()); |
ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext( |
- &GetResourceContext()); |
+ &io_data_.GetResourceContextNoInit()); |
ProfileDependencyManager::GetInstance()->DestroyProfileServices(this); |
@@ -634,7 +634,7 @@ void OffTheRecordProfileImpl::CreateQuotaManagerAndClients() { |
appcache_service_.get(), |
IsOffTheRecord() |
? FilePath() : GetPath().Append(chrome::kAppCacheDirname), |
- &GetResourceContext(), |
+ &io_data_.GetResourceContextNoInit(), |
make_scoped_refptr(GetExtensionSpecialStoragePolicy()))); |
} |