Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame^] | 1 | // Copyright 2020 The Chromium Authors |
James Cook | 3bd49ab | 2020-04-02 23:47:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chrome/browser/supervised_user/supervised_user_test_util.h" |
| 6 | |
| 7 | #include "chrome/browser/profiles/profile.h" |
| 8 | #include "chrome/common/pref_names.h" |
| 9 | #include "components/prefs/pref_service.h" |
| 10 | |
| 11 | namespace supervised_user_test_util { |
| 12 | |
| 13 | void AddCustodians(Profile* profile) { |
Nohemi Fernandez | 1ee7df1 | 2021-12-06 10:34:05 | [diff] [blame] | 14 | DCHECK(profile->IsChild()); |
James Cook | 3bd49ab | 2020-04-02 23:47:55 | [diff] [blame] | 15 | PrefService* prefs = profile->GetPrefs(); |
| 16 | prefs->SetString(prefs::kSupervisedUserCustodianEmail, |
| 17 | "[email protected]"); |
| 18 | prefs->SetString(prefs::kSupervisedUserCustodianObfuscatedGaiaId, |
| 19 | "239029320"); |
| 20 | |
| 21 | prefs->SetString(prefs::kSupervisedUserSecondCustodianEmail, |
| 22 | "[email protected]"); |
| 23 | prefs->SetString(prefs::kSupervisedUserSecondCustodianObfuscatedGaiaId, |
| 24 | "85948533"); |
| 25 | } |
| 26 | |
| 27 | } // namespace supervised_user_test_util |