1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ash / edusumer / graduation_prefs.cc [blame]
// 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 "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