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

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

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix grammar Created 9 years, 9 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_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();

Powered by Google App Engine
This is Rietveld 408576698