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 4df068db2e8ab59c96abf0b040accd2cc8430a1c..06ae0cfea9c38c15be30511fbbfe046752760f2a 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -109,6 +109,8 @@ OffTheRecordProfileImpl::OffTheRecordProfileImpl(Profile* real_profile) |
} |
void OffTheRecordProfileImpl::Init() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
+ |
// The construction of OffTheRecordProfileIOData::Handle needs the profile |
// type returned by this->GetProfileType(). Since GetProfileType() is a |
// virtual member function, we cannot call the function defined in the most |
@@ -145,6 +147,9 @@ void OffTheRecordProfileImpl::Init() { |
InitHostZoomMap(); |
+ // Make sure HostContentSettingsMap is created on the UI thread. |
+ GetHostContentSettingsMap(); |
+ |
#if defined(ENABLE_PLUGINS) |
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( |
PluginPrefs::GetForProfile(this).get(), |