910e62b5创建于 1月15日历史提交
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/edusumer/graduation_prefs.h"

#include "ash/constants/ash_pref_names.h"
#include "base/time/time.h"
#include "components/prefs/pref_registry_simple.h"

namespace ash::graduation_prefs {

void RegisterProfilePrefs(PrefRegistrySimple* registry) {
  registry->RegisterDictionaryPref(prefs::kGraduationEnablementStatus);
  registry->RegisterIntegerPref(prefs::kGraduationNudgeShownCount,
                                /*default_value=*/0);
  registry->RegisterTimePref(prefs::kGraduationNudgeLastShownTime,
                             base::Time());

  // TODO(b:374164026): Clean up this deprecated pref.
  registry->RegisterBooleanPref(prefs::kGraduationNudgeShownDeprecated, false);
}

}  // namespace ash::graduation_prefs