Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4652)

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 596613002: Remove content dependencies from content settings providers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser_tests fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ef044dffaf316c53e9cb128fe3da6e5f26402f30..3e557ac42ec0995b0cb3f3fd9fb436bec7d60203 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -354,6 +354,7 @@ HostContentSettingsMap* OffTheRecordProfileImpl::GetHostContentSettingsMap() {
// ensure the preferences have been migrated.
profile_->GetHostContentSettingsMap();
if (!host_content_settings_map_.get()) {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
rpetterson 2014/09/26 03:46:34 Is there a reason not to have this at the start of
Jun Mukai 2014/09/26 07:45:14 The motivation of this CL is to strip off the depe
blundell 2014/09/26 07:50:41 I think the question is why this DCHECK shouldn't
Jun Mukai 2014/09/26 18:37:37 Ah... HostContentSettings is thread-safe object an
host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), true);
#if defined(ENABLE_EXTENSIONS)
ExtensionService* extension_service =

Powered by Google App Engine
This is Rietveld 408576698