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

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: Inc'ed id of new policy to 346 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 ad1e21a7da4b57efc0ce88fdfbc1cc9215ed722e..3b2b0de8576baed25c689005d1c71b6307698c0d 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -478,7 +478,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);
@@ -1069,7 +1069,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());
@@ -1287,7 +1287,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