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

Unified Diff: chrome/browser/profiles/profile_impl.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_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index eb3077806a2ebb5e7d12ad227e4d48542848a26e..58b1e7104b7c627bcd65fe979d96dbfa4f41694f 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -326,7 +326,8 @@ void ProfileImpl::RegisterProfilePrefs(
registry->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, false);
registry->RegisterBooleanPref(prefs::kAllowDeletingBrowserHistory, true);
registry->RegisterBooleanPref(prefs::kForceGoogleSafeSearch, false);
- registry->RegisterBooleanPref(prefs::kForceYouTubeSafetyMode, false);
+ registry->RegisterIntegerPref(prefs::kForceYouTubeRestrict,
+ safe_search_util::YOUTUBE_OFF);
registry->RegisterBooleanPref(prefs::kForceSessionSync, false);
registry->RegisterStringPref(prefs::kAllowedDomainsForApps, std::string());

Powered by Google App Engine
This is Rietveld 408576698