Index: chrome/browser/profiles/off_the_record_profile_io_data.cc |
=================================================================== |
--- chrome/browser/profiles/off_the_record_profile_io_data.cc (revision 84527) |
+++ chrome/browser/profiles/off_the_record_profile_io_data.cc (working copy) |
@@ -49,7 +49,9 @@ |
const content::ResourceContext& |
OffTheRecordProfileIOData::Handle::GetResourceContext() const { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- LazyInitialize(); |
+ // Don't call LazyInitialize here, since the resource context is created at |
+ // the beginning of initalization and is used by some members while they're |
+ // being initialized (i.e. AppCacheService). |
return io_data_->GetResourceContext(); |
} |