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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 902833003: Add a HostContentSettingsMap layer for Supervised Users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 10 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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 75d2c5ca8736137cc198e0598aa7709594136293..32792a18ebadc498ba3daee4316887230f4bc0fc 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -909,6 +909,12 @@ HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() {
host_content_settings_map_.get());
}
#endif
+#if defined(ENABLE_SUPERVISED_USERS)
+ SupervisedUserSettingsService* supervised_service =
+ SupervisedUserSettingsServiceFactory::GetForProfile(this);
+ supervised_service->RegisterContentSettings(
+ host_content_settings_map_.get());
+#endif
}
return host_content_settings_map_.get();
}

Powered by Google App Engine
This is Rietveld 408576698