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

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

Issue 2776493005: Convert SupervisedUserResourceThrottle to a NavigationThrottle. (Closed)
Patch Set: Response to comments Created 3 years, 9 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 fae638d184ff82acf80f2db7471f283ed6424ec8..1b3bb68df6ecfe1be38d5843cf0c2d1752b405a6 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -121,12 +121,6 @@
#include "extensions/common/constants.h"
#endif
-#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
-#include "chrome/browser/supervised_user/supervised_user_service.h"
-#include "chrome/browser/supervised_user/supervised_user_service_factory.h"
-#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
-#endif
-
#if defined(OS_ANDROID)
#include "content/public/browser/android/content_protocol_handler.h"
#endif // defined(OS_ANDROID)
@@ -422,12 +416,6 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
params->proxy_config_service = ProxyServiceFactory::CreateProxyConfigService(
profile->GetProxyConfigTracker());
-#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
- SupervisedUserService* supervised_user_service =
- SupervisedUserServiceFactory::GetForProfile(profile);
- params->supervised_user_url_filter =
- supervised_user_service->GetURLFilterForIOThread();
-#endif
#if defined(OS_CHROMEOS)
user_manager::UserManager* user_manager = user_manager::UserManager::Get();
if (user_manager) {
@@ -1078,10 +1066,6 @@ void ProfileIOData::Init(
profile_params_->resource_prefetch_predictor_observer_.release());
}
-#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
- supervised_user_url_filter_ = profile_params_->supervised_user_url_filter;
-#endif
-
#if defined(OS_CHROMEOS)
username_hash_ = profile_params_->username_hash;
use_system_key_slot_ = profile_params_->use_system_key_slot;

Powered by Google App Engine
This is Rietveld 408576698