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

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

Issue 615083004: Use ThreadChecker rather than DCHECK_CURRENTLY_ON. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 5219a9f25616d7d31b1c2fa1a90d2e7ccc3e8459..e2ca8732fc559ceb715cd02a99a7d1ed0abfe5be 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -511,6 +511,7 @@ ProfileImpl::ProfileImpl(
void ProfileImpl::DoFinalInit() {
TRACE_EVENT0("browser", "ProfileImpl::DoFinalInit")
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
PrefService* prefs = GetPrefs();
pref_change_registrar_.Init(prefs);
pref_change_registrar_.Add(
@@ -631,6 +632,9 @@ void ProfileImpl::DoFinalInit() {
InitHostZoomMap();
+ // Make sure HostContentSettingsMap is created on the UI thread.
vabr (Chromium) 2014/10/01 11:14:48 This only really makes sure that HCSM is created o
vabr (Chromium) 2014/10/01 11:14:48 Also, should chrome/test/base/testing_profile.cc g
Bernhard Bauer 2014/10/01 11:41:09 Really, if we have a defined place where we constr
Jun Mukai 2014/10/14 23:53:13 Indeed, I was confused previously but we can add D
+ GetHostContentSettingsMap();
+
base::Callback<void(bool)> data_reduction_proxy_unavailable;
scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
data_reduction_proxy_params;

Powered by Google App Engine
This is Rietveld 408576698