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

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

Issue 11186002: Add a SafeSearch preference, policy and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased with the latest tree version Created 8 years, 1 month 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 dab854fbc220f4e5b3c2eb5a98abb916f74af48c..f54b5d4f20082fbcf48b1d4de0701b2d52e3b005 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -191,6 +191,7 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
ChromeNetworkDelegate::InitializePrefsOnUIThread(
&enable_referrers_,
&enable_do_not_track_,
+ &force_safesearch_,
pref_service);
#if defined(ENABLE_PRINTING)
@@ -533,6 +534,7 @@ void ProfileIOData::LazyInitialize() const {
profile_params_->cookie_settings,
&enable_referrers_,
&enable_do_not_track_,
+ &force_safesearch_,
load_time_stats_));
fraudulent_certificate_reporter_.reset(
@@ -654,6 +656,7 @@ void ProfileIOData::ShutdownOnUIThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
enable_referrers_.Destroy();
enable_do_not_track_.Destroy();
+ force_safesearch_.Destroy();
#if !defined(OS_CHROMEOS)
enable_metrics_.Destroy();
#endif

Powered by Google App Engine
This is Rietveld 408576698