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

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: Changes suggested by comments. Created 8 years, 2 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 1da278c25b04d705366dd3cf51128aa41062ffbe..c45653453d7b5b39d2bb7ef69513babf62c37d15 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -210,6 +210,7 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
ChromeNetworkDelegate::InitializePrefsOnUIThread(
&enable_referrers_,
&enable_do_not_track_,
+ &force_safesearch_,
pref_service);
#if defined(ENABLE_PRINTING)
@@ -546,6 +547,7 @@ void ProfileIOData::LazyInitialize() const {
profile_params_->cookie_settings,
&enable_referrers_,
&enable_do_not_track_,
+ &force_safesearch_,
load_time_stats_));
fraudulent_certificate_reporter_.reset(
@@ -668,6 +670,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