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

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

Issue 2239753002: Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyMode policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upped id to 347 and chrome version to 55 Created 4 years, 3 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 995cdf946cac1d316a781373888b584c39c35bd5..8c9da35ba9d239615a317113ce56896ae827a365 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -479,7 +479,7 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
&enable_referrers_,
&enable_do_not_track_,
&force_google_safesearch_,
- &force_youtube_safety_mode_,
+ &force_youtube_restrict_,
&allowed_domains_for_apps_,
pref_service);
@@ -1075,7 +1075,7 @@ void ProfileIOData::Init(
network_delegate->set_cookie_settings(profile_params_->cookie_settings.get());
network_delegate->set_enable_do_not_track(&enable_do_not_track_);
network_delegate->set_force_google_safe_search(&force_google_safesearch_);
- network_delegate->set_force_youtube_safety_mode(&force_youtube_safety_mode_);
+ network_delegate->set_force_youtube_restrict(&force_youtube_restrict_);
network_delegate->set_allowed_domains_for_apps(&allowed_domains_for_apps_);
network_delegate->set_data_use_aggregator(
io_thread_globals->data_use_aggregator.get(), IsOffTheRecord());
@@ -1293,7 +1293,7 @@ void ProfileIOData::ShutdownOnUIThread(
enable_referrers_.Destroy();
enable_do_not_track_.Destroy();
force_google_safesearch_.Destroy();
- force_youtube_safety_mode_.Destroy();
+ force_youtube_restrict_.Destroy();
allowed_domains_for_apps_.Destroy();
enable_metrics_.Destroy();
safe_browsing_enabled_.Destroy();

Powered by Google App Engine
This is Rietveld 408576698