#include "components/supervised_user/core/browser/supervised_user_preferences.h"
#include <vector>
#include "base/logging.h"
#include "base/notreached.h"
#include "components/google/core/common/google_util.h"
#include "components/prefs/pref_service.h"
#include "components/supervised_user/core/browser/proto/kidsmanagement_messages.pb.h"
#include "components/supervised_user/core/browser/supervised_user_utils.h"
#include "components/supervised_user/core/common/features.h"
#include "components/supervised_user/core/common/pref_names.h"
#include "components/supervised_user/core/common/supervised_user_constants.h"
namespace supervised_user {
namespace {
struct Family { … };
struct Custodian { … };
const Custodian first_custodian{ … };
const Custodian second_custodian{ … };
void SetCustodianPrefs(PrefService& pref_service,
const Custodian& custodian,
const kidsmanagement::FamilyMember& member) { … }
void ClearCustodianPrefs(PrefService& pref_service,
const Custodian& custodian) { … }
void SetIsChildAccountStatusKnown(PrefService& pref_service) { … }
}
void RegisterFamilyPrefs(PrefService& pref_service,
const kidsmanagement::ListMembersResponse& response) { … }
void RegisterProfilePrefs(PrefRegistrySimple* registry) { … }
void EnableParentalControls(PrefService& pref_service) { … }
void DisableParentalControls(PrefService& pref_service) { … }
bool IsChildAccountStatusKnown(const PrefService& pref_service) { … }
bool IsSafeSitesEnabled(const PrefService& pref_service) { … }
bool IsSubjectToParentalControls(const PrefService& pref_service) { … }
}