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

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: Minor last changes. Merged with the latest version from the tree. 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 a03ed9295913636f84230cd2b6d17064652a4c8f..53f3a99c0d7a30580b1490f13c59f5c45edbd838 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -197,6 +197,7 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
ChromeNetworkDelegate::InitializePrefsOnUIThread(
&enable_referrers_,
&enable_do_not_track_,
+ &force_safesearch_,
pref_service);
#if defined(ENABLE_PRINTING)
@@ -537,6 +538,7 @@ void ProfileIOData::LazyInitialize() const {
profile_params_->cookie_settings,
&enable_referrers_,
&enable_do_not_track_,
+ &force_safesearch_,
load_time_stats_));
fraudulent_certificate_reporter_.reset(
@@ -658,6 +660,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