Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index 3b7e943bf469373a538d441e57b258381d59e18d..fc8188303dc9d8796851f2c7376475f4f4f2de66 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -129,6 +129,12 @@ void ProfileIOData::InitializeProfileParams(Profile* profile, |
params->is_incognito = profile->IsOffTheRecord(); |
params->clear_local_state_on_exit = |
pref_service->GetBoolean(prefs::kClearSiteDataOnExit); |
+ params->enable_referrers.reset(new BooleanPrefMember()); |
+ params->enable_referrers->Init(prefs::kEnableReferrers, |
+ profile->GetPrefs(), |
+ NULL); |
+ params->enable_referrers->MoveToThread(BrowserThread::IO); |
+ params->enable_referrers->ObserveProfileDestruction(profile); |
willchan no longer on Chromium
2011/04/05 13:10:41
Why is this necessary? The associated ProfileIODat
Bernhard Bauer
2011/04/05 14:49:02
Sadly, not soon enough. When the PrefMember is des
willchan no longer on Chromium
2011/04/05 15:06:18
Wait, but this BooleanPrefMember lives in the Chro
Bernhard Bauer
2011/04/05 16:12:59
We specifically added support for reading prefs wi
willchan no longer on Chromium
2011/04/05 17:12:51
Which PrefService? Sorry, there seem to be a whole
Bernhard Bauer
2011/04/05 18:24:47
The one returned by |GetPrefs()| (which is the inc
willchan no longer on Chromium
2011/04/08 19:10:37
I don't think I like adding implicit notifications
|
params->appcache_service = profile->GetAppCacheService(); |