| Index: chrome/browser/profiles/profile_manager_unittest.cc
|
| diff --git a/chrome/browser/profiles/profile_manager_unittest.cc b/chrome/browser/profiles/profile_manager_unittest.cc
|
| index 48463fa2299919f8c0c1625ddb4464e4cad6424e..6ff0e54c240b786643b600a580ca255015a11c9e 100644
|
| --- a/chrome/browser/profiles/profile_manager_unittest.cc
|
| +++ b/chrome/browser/profiles/profile_manager_unittest.cc
|
| @@ -103,6 +103,16 @@ class ProfileManagerTest : public testing::Test {
|
| : local_state_(TestingBrowserProcess::GetGlobal()) {
|
| }
|
|
|
| + static void SetUpTestCase() {
|
| + // Checking last used profile checks for incognito, requiring platform
|
| + // parental controls initialization.
|
| + IncognitoModePrefs::InitializePlatformParentalControls();
|
| + }
|
| +
|
| + static void TearDownTestCase() {
|
| + IncognitoModePrefs::UninitializePlatformParentalControls();
|
| + }
|
| +
|
| void SetUp() override {
|
| // Create a new temporary directory, and store the path
|
| ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
|
|
|