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

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: Synced and All Unit Tests Fixed 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..a675bc87583e7cadb4094dfa639dc635b05fa7aa 100644
--- a/chrome/browser/profiles/profile_manager_unittest.cc
+++ b/chrome/browser/profiles/profile_manager_unittest.cc
@@ -55,6 +55,10 @@
#include "components/user_manager/user_manager.h"
#endif // defined(OS_CHROMEOS)
+#if defined(OS_WIN)
+#include "chrome/browser/prefs/incognito_mode_prefs.h"
+#endif // defined(OS_WIN)
+
using base::ASCIIToUTF16;
using content::BrowserThread;
@@ -103,6 +107,12 @@ class ProfileManagerTest : public testing::Test {
: local_state_(TestingBrowserProcess::GetGlobal()) {
}
+#if defined(OS_WIN)
+ static void SetUpTestCase() {
+ IncognitoModePrefs::InitializePlatformParentalControls();
+ }
+#endif // defined(OS_WIN)
+
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