// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "ios/chrome/browser/content_suggestions/safety_check/model/safety_check_prefs.h"

#import "components/prefs/pref_registry_simple.h"
#import "components/prefs/pref_service.h"
#import "components/safety_check/safety_check_pref_names.h"
#import "ios/chrome/browser/shared/model/prefs/pref_names.h"
#import "ios/chrome/browser/shared/public/features/features.h"

namespace safety_check_prefs {

bool IsSafetyCheckInMagicStackDisabled(PrefService* prefs) {
  return !prefs->GetBoolean(safety_check::prefs::kSafetyCheckHomeModuleEnabled);
}

void DisableSafetyCheckInMagicStack(PrefService* prefs) {
  prefs->SetBoolean(safety_check::prefs::kSafetyCheckHomeModuleEnabled, false);
}

}  // namespace safety_check_prefs
