Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: chrome/browser/profiles/profile_manager_unittest.cc

Issue 950053002: Cache the Windows Parental Controls Platform Answer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Isolation Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698